I have troubles too with cookies, login inconsistent between WordPress and BBpress:
Login on WordPress -> Log out on BBpress and vice versa 
PD: Until the latest version, with the hack for 0.83, this was working fine
Web example: http://www.laguardiadejaen.com/web/
The bb->load_options = true brought the load of the cpu to 5 times that of the one with 30+ queries but I guess that comes from not having that many topics in the newly installed Db so I really don’t know what to make of this.
Turn on (or increase) your mysql caching. It’s fairly obvious you are running either without any or not enough of it if you can detect any load increase with load_options=true. The query to load all options would be exactly the same across all instances for all users and mysql would pick up on that immediately and keep it in the cache, always. At least that’s what happens on my installs. I don’t have a site with 50k views a day but I have a 0.8.2.1 version with 15k views a day and it runs very fast.
Also make sure you use a php opcode cache like eaccelerator, xcache, etc. Best thing you can do for bbPress or WordPress.
0.9 of bbPress is not some kind of radically different change since 0.8 – there are many bug fixes and a few features added but the db calls are almost identical (some plugins however can be sloppy about not caching queries so that can cause issues).
Try my bb-benchmark if you want to see what happening behind the scenes for each page generated.
at http://bbpress.org/documentation/integration-with-wordpress/ it says:
bbPress will not have access to WordPress’ functions unless you manually tell bbPress to load WordPress first. In order to do that, you need to put require_once(‘path/to/wp-blog-header.php’); in bbPress’ bb-config.php (wp-blog-header is in the same directory as WordPress’ wp-config.php file).
but if I do this, I can’t enter the admin area any more, cause, the relative path to the wp-blog-header.php isn’t right anymore. I can’t use the full url because of: URL file-access is disabled in the server configuration.
does this still work for latest versions (2.5, 9.0.1)?
It is probably less work to use bbPress than using other forum software if your intention is to re-skin to match your blog. You can actually “load” WordPress inside bbPress (check the documentation), but there is a definite performance penalty in doing that.
The best performance choice is to integrate your user tables and auth cookies. Then skin your forum to match your blog, but don’t “load” WordPress into bbPress unless you intend to use WordPress functions inside bbPress quite extensively.
You will probably find the exercise of skinning your bbPress install quite simple compared to other forum software. The templating system is similar to WordPress, so it will be a familiar environment if you have done that before.
We have been running revisions which are only slightly older than 0.9.0.1 at WordPress.org and WordPress.com for a while now without fault.
Why would anyone want the forum separated and have to do 2x the more work to redesign it all over? …
Integrating it fully in WP should be #1. Else one can use any other forum or just go with WP-united? …
Can we not just give bbPress the URL of our WordPress installation, and have it make a best guess as to the location of the wp-config.php file, and then let it read all that databasey stuff out of there?
Seems like it would take a LOT fewer steps to get bbPress integrated with WordPress this way.
silent1643,
You can’t just drop bbPress onto a blog page. bbPress is a totally separate installation and you have to link to it from your blog. You have to modify the bbPress templates to make it look like your blog. If this is done well, the user doesn’t realize they are jumping between two different programs.
Hi,
For some reason I can’t see at the moment, comments made on bbpress don’t show up in their respective posts in wordpress, but the comment count does reflect them. I tried deactivating all my plugins and changing the template just in case, but the problem persists.
No comments appear at all in WordPress in posts shared between forum and blog, but they appear correctly in bbpress. Older posts not in bbpress are not affected.
I’m using bbpress 0.9, last build of bbsync and WordPress 2.5. Ideas?
Thanks in advance
here is my latest theme
http://www.adityanaik.com/forums/
the site has a working integration of wp 2.5 and bb 0.9
I’ve installed bbPress 0.9.0.1 in a WordPress 2.5 site. It works for a while then when I try to access a topic I get:
Not Found
Sorry, but you are looking for something that isn’t here.
and the theme displayed is that of the WordPress blog. After that, only the bbPress front page is useable.
@ Nosgroth
The functionality you describe is not available in bbPress/WordPress without plugins. You probably need to report this problem to the plugin author (I’m guessing bbSync).
I guess I’ll use this post.
For some reason I can’t see at the moment, comments made on bbpress don’t show up in their respective posts in wordpress, but the comment count does reflect them. I tried deactivating all my plugins and changing the template just in case, but the problem persists.
I’m using bbpress 0.9 and WordPress 2.5. Ideas?
EDIT: Ah, it’s worse than that. No comments appear at all in WordPress in posts shared between forum and blog, but they appear correctly in bbpress. Older posts not in bbpress are not affected. Sigh, my head hurts. Sleeping may be a good idea.
Sat Apr 5 19:34:26 UTC 2008
I am getting a 500 error now, so maybe you’re working on it? I was going to see what version bbPress and WordPress you are running.
Why not move the forum to the domain where the blog is, so you can share cookies?
Hey all,
So I’ve searched both this forum and the WP forum. And there are a ton of avatar related threads, and I’ve read through most of them. It looks like there have been a few various implementations.
But most of those threads are almost a year old, and now we’re in 2.5 and .9.0.1 land… and so I’d love a definitive uptodate answer as to which plugin(s) to use to best integrate avatars into both sites.
Gravatars are cool and all (I do have an integrated user base) but pretty much the first question people asked is how they can upload an avatar without using gravatars (I think some people don’t want their image suddenly showing up all over the web wherever they’ve commented in the passt)
bbPress 0.9 requires WordPress 2.5 “out of the box” but I have just released a couple of plugins that allow for integration with earlier versions of WordPress (e.g. version 2.3).
Although you can use these plugins to get integration with earlier versions happening, it is still strongly recommended that you upgrade your WordPress installation to version 2.5!
Only follow this guide if you are using bbPress 0.9 or higher and are trying to integrate it with a WordPress installation with a version earlier than version 2.5!!!
The problem with using earlier versions of WordPress is two-fold:
- The password hashing algorithm has changed.
- The authentication cookie is now different.
The solution is to install these two plugins into bbPress:
- “MD5 Insecurity for bbPress” – downgrades bbPress’ password hashing back to MD5.
- “Mouldy Old Cookies for bbPress” – Reinstates use of the old cookie styles in bbPress.
Download and install each of these into bbPress. No plugins should be necessary in WordPress to enable integration.
I recommend you make these plugins “autoload” by pre-pending an underscore “_” to the plugin filename. This means the plugins will always load and can’t be deactivated from the plugin page in the admin area.
Hello,
Is there any good plugin for bbPress admins who don’t need a complete WordPress installation, but want a simple portal with news, forum stats, and articles? How about a “promote to frontpage” sort of plugin?
Thanks for the help!
I am new to bbPress. I was pulling my hair out all day trying to get integration with WordPress to work. The problem was the cookies not matching.
I had inserted the lines bbPress gave me to set COOKIE_DOMAIN and COOKIEPATH in my wp-config.php file at the very bottom. Examining my cookies I saw that the domain was not adjusting to the value I wanted. I thought my problems were elsewhere and spent hours barking up the wrong tree.
The solution is to insert the necessary lines higher up. When I put them just under the standard define lines (just under define(‘DB_COLLATE’, ”) ) the correct domain was then set properly in the cookie.
I hope this helps others.
I wish there was some wordpress plugin atleast to bridge this.
Is there a reason why you are loading WordPress inside bbPress? If not you should stop. There is no need to do this for standard integration to work.
Also, remove all your plugins and see if it stops. If it does, add them back one by one to see which one is causing the problem.
The short answer is no, it’s not possible out of the box, but it is probably possible using a tricky sequence of redirects between the domains.