Search Results for 'test'
-
AuthorSearch Results
-
December 24, 2007 at 4:54 am #55394
In reply to: Pretty Permalinks Not Working
livibetter
Member(edit: How did you know it was working? I didn’t notice your 404 doesn’t give the url information. Please use the following code for testing
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule redir youcantfindme [R=301,L]
</IfModule>This time please check the browser’s address, and make sure you read http://make2for1.com/youcantfindme. If you do read that, please continue to the following testing.)
Please place
$bb->debug = 1;
to yourconfig.php
Add
exit;
right afterbb_repermalink();
inforum.php
like<?php
require_once('./bb-load.php');
$forum_id = 0;
bb_repermalink();
exit;Then navigate to
http://make2for1.com/forum.php?id=1
andhttp://www.make2for1.com/forum/general
, once you done, post the result and DO NOT REMOVE this modification (allow us to check it).December 24, 2007 at 4:16 am #55393In reply to: Pretty Permalinks Not Working
djuggler
MemberPerformed livibetter’s test. mod_rewrite undeniable works.
December 23, 2007 at 3:44 pm #62136In reply to: Fatal error: During Installation
goldfiinger
MemberYes i’ve changed it back now and its all working fine just completed the install.
Only thing now is that i can’t seem to post or read the test posts that are already there.
It’s saying :
The requested URL /home/bbpress/topic/1 was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
When i click on: your first topic
Or when i try to post a new topic
Any ideas ?
Correction I can post topics I just can’t view any. But it does show the new topics I’ve made. But doesn’t let me view them ?
December 23, 2007 at 4:40 am #55392In reply to: Pretty Permalinks Not Working
livibetter
MemberCould you test your
mod_rewrite
is really working on http://make2for1.com/Please add the following to the top of
.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule redir youcantfindme
</IfModule>Use browser and navigate to http://make2for1.com/redir
If you read
/youcantfindme
was not found, thenmod_rewrite
does work.December 21, 2007 at 12:21 pm #60868amiraziz
Membertesting
December 21, 2007 at 4:50 am #62116In reply to: I get this error message
chrishajer
ParticipantThis is a common problem with the latest release, especially on GoDaddy (and Dreamhost too, I think.) Anyway, the problem you’re describing has been fixed in the trunk releases but not in the public release. The best thing to do would be to download a later revision like r971 or r980. See these posts from sambauers:
Here is the page where you can download r971 (probably your best bet):
December 20, 2007 at 1:01 pm #60862Asbjørn Ulsberg
MemberAs I’ve written elsewhere, I’ve gotten everything up and running with trunk. As it might not be compatible with the release of WordPress I’m using (2.3.1), I’m wondering when a release of bbPress that fixes these problems and is compatible with WP 2.3.1 (or with the then latest available release of WP) will be available?
December 19, 2007 at 4:53 pm #60861Sam Bauers
ParticipantI’m not sure that’s the right advice. The latest development versions will definitely break integration as they are geared towards integration with the current WordPress trunk. There are lots of differences in password hashing and cookie storage.
Revision [971] might be OK to use for this specific problem, but I can’t guarantee it. And it won’t fix socket connection under MySQLi.
December 19, 2007 at 1:26 pm #60860chrishajer
ParticipantIt is fixed in the latest development version, I believe. There just hasn’t been a release that includes that functionality.
December 19, 2007 at 10:56 am #62093In reply to: Print out password instead of through email
livibetter
MemberI remember there is a post about this. Anyway, I made one.
Put this in plugin folder: http://bbpress.pastebin.com/f271761bf , use any filename you like
And this to
register-success.php
of template:<?php
global $STP_password;
if ($STP_password)
echo "<p>Your password is: $STP_password</p>";
?>Activate plugin and test.
December 18, 2007 at 2:58 am #61888In reply to: Limiting RSS Feed to First Post Only
livibetter
MemberI have no problems on my test forum.
When you see that error, right click, view source, then paste that source here.
December 17, 2007 at 4:08 pm #60855chrishajer
ParticipantWhen using a socket, you need something like this:
https://bbpress.org/forums/topic/cannot-select-db-error?replies=11#post-12434
It’s OK to start a new topic as well. All these recent topics dredging up old problems that are sort of close make it hard to solve the latest problem, your problem. A lot of the earlier advice in this thread doesn’t apply to your specific problem.
December 17, 2007 at 4:02 pm #61881In reply to: Limiting RSS Feed to First Post Only
Doobus
MemberI was testing your temp fix Livibetter, and I was running into this error:
XML Parsing Error: no element found
Location: http://localhost/wrdp2/bbp1/rss.php?forum=1
Line Number 12, Column 1:
Line 12 of rss.php reads: <link><?php bb_option( ‘uri’ ); ?></link>
December 17, 2007 at 9:09 am #60926In reply to: DB access problem in the first installation step.
Sam Bauers
ParticipantThe very latest trunk [988] is a little unstable.
You are better off with [980] the zip download of [980] can be found at the bottom of the following page:
December 17, 2007 at 6:38 am #60925In reply to: DB access problem in the first installation step.
chrishajer
ParticipantI hope there’s a new release soon as well, but it doesn’t look like a date has been set yet?
https://trac.bbpress.org/milestone/0.8.4%20%26%20Pings
raygene: you can always download the latest development release which generally has all the discussed patches applied:
https://trac.bbpress.org/changeset/988/trunk?old_path=%2F&format=zip
There is always a link to the zip archive at the bottom of the trac browser.
December 17, 2007 at 5:44 am #61877In reply to: Limiting RSS Feed to First Post Only
Doobus
MemberExactly what I wanted. I was under the impression that this was already doable, I first got the idea that it could already be done from 9rules.com. I was viewing the notes section, where it pulls all the latest topics from all the forums, the feed only shows the topics and not the comments within. Oddly enough, the individual forums themselves show the topic as well as comments within the topics.
Granted that what I’m looking for is in the trac you provided, but I’m still wondering how 9rules managed to get the front part working to only show the topic and not the replies within, and could this not be applied within forum feeds?
I did some digging around and found that the 9rule feed is just basically the latest discussion feed, unfortunately mine is still pulling replies within topics. I’m not interested in only being able to do that as it basically gimps what I’m trying to do, but I was curious why mine pulls replies into the feed. Thanks again.
Doobus
MemberAmazing work, however I haven’t tested this on a live server yet, so probable use based on speed is still up in the air. Thanks a lot for putting this together Livibetter.
December 16, 2007 at 11:16 pm #52695In reply to: Plugin: [REL] Signature
citizenkeith
ParticipantRunning the latest version of bbPress and the latest version of ck’s plugin.
Signatures won’t update when you try to change them in Edit Profile. No error messages to be found.
December 16, 2007 at 9:55 pm #62040In reply to: Having trouble integrating WP functions
livibetter
MemberThen, you should trace in bbPress’ code to find out where causes an exit.
BTW, you can also test
error_log(get_option('blogname'));
to make sure WordPress loaded database correctly.PS. debugging with no debugger is a crazy thing. You have to guess by experiences for best shot.
livibetter
Memberfel64 is right. So I made a change.
<?php
// from wp_trim_excerpt() in WordPress 2.3.1 formatting.php, just removed few lines
function make_excerpt($text) { // Fakes an excerpt if needed
$text = str_replace(']]>', ']]>', $text);
$text = strip_tags($text);
$excerpt_length = 55;
$words = explode(' ', $text, $excerpt_length + 1);
if (count($words) > $excerpt_length) {
array_pop($words);
array_push($words, '[...]');
$text = implode(' ', $words);
}
return $text;
}
if ( $topics ) :
$last_post_ids = array();
foreach ( $topics as $topic )
$last_post_ids[] = $topic->topic_last_post_id;
global $bbdb;
$post_ids = $bbdb->get_col( "SELECT post_id, post_text FROM $bbdb->posts WHERE post_id IN (" . implode(',', $last_post_ids) . ")");
$post_texts = $bbdb->get_col( null, 1 );
$post_excerpts = array();
foreach($post_ids as $idx => $post_id)
$post_excerpts[$post_id] = make_excerpt( $post_texts[$idx] );
endif;
?>
<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a>
<?php echo $post_excerpts[$topic->topic_last_post_id]; ?>
</td>
<td class="num"><?php topic_posts(); ?></td>
<td class="num"><?php topic_last_poster(); ?></td>
<td class="num"><small><?php topic_time(); ?></small></td>
</tr>
<?php endforeach; endif; // $topics ?>On my test forum, 15 posts, without excerpts takes .119 sec, with excerpts takes .127 sec. Previous code takes .140 sec.
livibetter
MemberReplace the similar part with it in front-page.php (Kakumei):
<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a>
<?php
// from wp_trim_excerpt() in WordPress 2.3.1 formatting.php, just removed few lines
function make_excerpt($text) { // Fakes an excerpt if needed
$text = str_replace(']]>', ']]>', $text);
$text = strip_tags($text);
$excerpt_length = 55;
$words = explode(' ', $text, $excerpt_length + 1);
if (count($words) > $excerpt_length) {
array_pop($words);
array_push($words, '[...]');
$text = implode(' ', $words);
}
return $text;
}
echo make_excerpt( get_post_text( $topic->topic_last_post_id ) );
?>
</td>
<td class="num"><?php topic_posts(); ?></td>
<td class="num"><?php topic_last_poster(); ?></td>
<td class="num"><small><?php topic_time(); ?></small></td>
</tr>
<?php endforeach; endif; // $topics ?>It generates an excerpt of latest reply of topic.
fel64
MemberYou may want to think quite carefully about doing this, as it’s not the simplest of tasks. The key issue is that bbpress does not have the data you want at the time you want it.
Basically bb only looks into the bb_topics table to see what the latest topics are. That tells it what the last post id was, what the last poster’s name was and all that, but it doesn’t tell it what the content of the last post was. To do that, you need to grab the ids of every last post being displayed, then write a database query to get the data from bb_posts. That can (*can*) be done in a single query though I think, much as bb grabs all the topics at once, so it’s not too bad. Then you have the data and can play with it however you want.
So it takes some neat hooking and querying.
December 15, 2007 at 11:19 pm #61977In reply to: how to disable registration ?
Trent Adams
MemberI don’t think so as the plugin adds them direct to the database (you can quickly test that). Without register.php there are no registrations going to happen for sure!
Trent
December 15, 2007 at 11:16 pm #2705Topic: database MINOR issue
in forum Troubleshootingassalychris
Memberhello (again)
I have noticed the same ‘problem’ with wp: whenever you create a user for testing purposes (his user ID is suppose X) and delete him you obiviously notice by creating another one (again) his NEW user ID is X+1 and so on. I don’t know if I made myself clear BUT how can you fix this issue? Even if there is no automatic solution what do I have to modify in the database by using phpmyadmin so only ACTUAL users have user IDs.
thanks
December 15, 2007 at 8:56 am #61966In reply to: Broken Profiles for users with spaces in the names.
Sam Bauers
ParticipantThis is addressed in the latest revisions and should be part of the next release.
-
AuthorSearch Results