I was looking to do #3 as well. This solution works like a champ. Thanks!
I’d say try the nightly build ( https://bbpress.org/nightly-builds/bbpress-latest.zip ) but I’m not really sure when that’s updated anymore…
The SVN is open to be downloaded by anyone.
Hello all,
I run a small website called the Youth Bloggers Network (http://youthbloggers.net/) which is currently using WordPress and the Simple:Press forum plugin to run the forum. I’ve received some advice to switch to a “dedicated” forum software such as bbPress or phpBB to increase loading time and optimize the site structure (splitting up the forum and cms backend). If I were to switch, bbPress is the definite option for me seeing as I need my WordPress users to be members of the forum as well. I was able to install the latest bbPress version (1.0 alpha I believe) and integrate it perfectly with my WordPress install (cookies, users and everything). That was wonderful. The only two things holding me back from making the switch are:
1) Simple:Press is so easy to integrate into any page, just plug and play
2) I need a bbPress theme that matches my current WordPress theme
The problem is that I would like my forum to look and feel like just another page on the site. With Simple:Press this is easy (even when switching themes). With bbPress I need a new theme.
So here is what I would like to know:
Is it worth switching to bbPress even if it means a little extra work and designing?
And where can I find someone who could create a bbPress theme for me that fits my current design for a *low* price?
Please visit the site: http://youthbloggers.net/ and give me your advice and suggestions.
Thanks very much,
Patrick
This seems a great time to mention a new hidden feature in bbPress 1.0 based on a suggestion I made: “Safe Mode”
When you don’t know why something isn’t working, one quick and easy way to prove if it’s a plugin gone wrong or not is to temporarily try “Safe Mode”
The way to activate safe mode is to edit bb-config.php
and insert
$bb->safemode = true;
Then your forum will temporarily switch to the default theme (which you should never have tampered with) and disable all plugins, temporarily.
When you are done testing, remove the line from bb-config.php
This is far easier than deactivating 20+ plugins, one at a time and then having to activate them again.
There are issues with the latest versions. A new fixed version is imminent.
Confirmed working in 0.9.0.4 with apparent speed boost.
Those using my mini-plugin, you MUST delete it when using 0.9.0.4 or 1.0-alpha-5 or you’ll find that all topics disappear.
Thanks for the speedy reply. I just installed the Human Test plugin today, thankfully. I wish I knew about it sooner; perhaps I wouldn’t have this mess to clean up now. 
At any rate, I’m not integrated—it’s a stand-alone forum. I’m running MySQL 4.1.16, according to phpMyAdmin.
Hopefully, you’ve added the Human Test plugin to prevent spam registrations.
https://bbpress.org/plugins/topic/human-test/
I don’t know of a way to mass moderate users in bbPress. If you’re integrated with WordPress, I believe there is a mass edit for users available there.
If you’re not integrated, I think you need to use some SQL with the database directly. If you need that, please post the MySQL version you are using (since subqueries were added in MySQL 4.1, and the solution would be different if you’re using MySQL prior to 4.1)
I’ve been playing with the SQL to do this, but my MySQL version is 4.0.27, which does not support subqueries.
I’m on the current trunk as of writing this post. (1903) I’ll try testing the live forum.
Edit: Using the default theme made the problem go away, but the line of code that shows the edit/delete/undelete links is exactly the same as Kakumei’s and there’s no functions.php file.
Rather than trying your theme and plugins on another installation, how about turning off the plugins and trying the default theme on your live forums? Testing the other way is not a 100% test.
Do you know what revision of trunk you’re using? I installed trunk two years ago, but it was a much different version then.
Yes I do have the role map setup in the bbPress admin area. I also installed the additional role map plugin you made just to see what it was for, and retried these steps with and without it active.
I think this evening I’m going to retest this on stock installs of both to see if any of my plugins are conflicting. I am using the Register Plus plugin on the WP side, so I suppose it’s possible it could conflict (as far as I know it uses the stock WP registration and user activation methods to create them though.)
I am comparing the two right now to see if I deleted something important. Do you know which php file I should be looking in? I did not integrate the forum with WordPress and am using the latest version of bbPress (I just installed it a few days ago). The only plugins I am using is the Akismet plugin. I guess I must have deleted something although I’m not sure what!
Based on Scoun theme from Mike Lothar.
Plugins used:
– Akismet
– Human Test for bbPress
– bbpress SEO tools
– Allow Images
http://marinerodeaguadulce.com/foro/
Also, when I register a new user through WordPress as per normal, that user is still not assigned a role in bbPress. Not when they login, not when they hit the forum for the first time. Not ever.
My Steps:
- I used a Chrome browser window to register a new user through WordPress
- Logged in via WordPress
- Hit the forum
- User could not post, looks like has no role
- Logged out via WordPress
- Used FireFox to login as admin to check new user role
- No Role Assigned
- Used Chrome to login through bbPress
- Hit the forum
- User could not post, looks like has no role
- Used Firefox admin to edit Test user
- Received typical error message (noted below)
Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /forums/bb-includes/functions.bb-template.php on line 2009
Basically it looks like the exact same error message as before, with the same circumstances.
Round two using alpha 5 trunk from the SVN went exactly the same way, only this time when I logged in via bbPress, the above Warning
went away, but that user is still marked as Inactive by default when they should be a Member according to the role map.
When registering through bbPress, the new user still is not assigned a Role on the WordPress side either.
Sam, can you explain to me what was supposed to be different in alpha5? Maybe I misunderstood…
Untested code below:
<?php $bb_post = $posts[0]; unset($posts[0]); $del_class = post_del_class();?>
<div id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
<?php bb_post_template(); ?>
</div>
<h6>Responses</h6>
<ol id="thread" start="<?php echo $list_start; ?>">
<?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
<li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
<?php bb_post_template(); ?>
</li>
<?php endforeach; ?>
</ol>
Based on Scoun theme from Mike Lothar.
Plugins used:
– Akismet
– Human Test for bbPress
– bbpress SEO tools
– Allow Images
http://marinerodeaguadulce.com/foro/
Same implementation now in 0.9 branch, if someone could confirm 0.9 that would be great.
Changes are now in trunk, please test.
0.9 may be a little more hackish to implement.
Chris, My page went from loading in 2-8 seconds to 0.200 – 0.300 per request… So yes it was severe – as I said i use this function more than once in the theme…
Ahh there of course is the join filter… Thanks CK I will move this out, so I am able to update the core without a problem… I have another “extremely slow” issue, but I will get back to that later because that’s in the bb-admin part so only few people see that…
I’ll adjust core in trunk and 0.9 branch to implement this somehow.
>> The same performance gain is achieved using the existing forum_time index.
Ah so in that case, no ALTER required and there is zero extra storage required and the plugin can be used like this:
<?php
/*
Plugin Name: Topic Time Index
*/
add_filter('get_latest_topics_join','topic_time_index',99999);
function topic_time_index($join) {return " $join USE INDEX(forum_time) ";}
?>
Chris, you are missing the concept that if there are 100 people hitting the mysql server with the same or different queries and they can’t be cached, the load goes up exponentially.
Sam’s benchmark is on a high performance, dedicated mysql server.
Imagine someone with 40,000 records, non-indexed, on a shared server.
@chrishajer
It depends how many times that 1/10th of a second happens per second.
The same performance gain is achieved using the existing forum_time index.