Having upgraded wordpress to v.2.8, I found intergration problem.
Log in bbpress, automatic log out from wordpress,
log in wordpress, automatic log out from bbpress.
my bbpress v. 0.9.0.5
What’s the cause of such a problem.
I’ll be greatly appreciated if any one solve the problem.
Thanks.
Is there one that shows a list of compatible/working plugins for the different versions? WordPress has something like that:
https://codex.wordpress.org/Themes/Theme_Compatibility/2.7
https://codex.wordpress.org/Plugins/Plugin_Compatibility/2.7
I’m asking because if it’s not there it might be a good addition.
Does anyone have links or documents on how I can convert WordPress’ Super Cache plugin for use with bbPress?
Or, has it already been done?
To achieve integration between 0.9.05 & WordPress 2.7.1, I overwrite the bb_capabilities in wp_usermeta for my user by sql query as I don’t have phpmyadmin and I am using custom table prefixes.
I’m at a loss why you would have to do that anyway… I’ve never heard of anyone having to go in via SQL and making those changes except in the case of ‘reverse’ integration (where by you started with bbPress and are now adding on a WP site). In theory, if you’re starting with everything brand new, you just do WP first and then bb and it should work.
Looking at your doc, you also mention changing the wp_ prefix to rocking_ which is totally fine, but later on you have this:
Add these two lines in bb-config.php
$bb->custom_user_table = 'wp_users';
$bb->custom_user_meta_table = 'wp_usermeta';
Those too should be rocking_users and rocking_metadata
When I log in through my wordpress site, I can’t delete topics or posts. I also cannot access the bb-admin page, I just get redirected to the forum page of my site.
When I am logged out, and type in the url for the bb-admin page, and log in directly, I can access it. I can also delete posts and topics.
So logging in through the forum directly – everything is fine. But logging into the site and then navigating to the forum – I get these problems.
People won’t be able to access the forum unless they’re logged in on the finished site, so it is really important that logging in through the site and accessing the forum allows everything to work properly.
I have no idea what could be going on.
Are you having the problem just when you login from bbPress? What is your problem exactly? Not being able to delete topics & posts when you login from bbPress? Can you do that when you login from WordPress?
bbpress – “Version 1.0-rc-1”
Wordpress – just a link to upgrade to version 2.8, it was set up about 4 weeks ago, so I’m guessing 2.7?
martenk, thanks so much. That plugin was what I was looking for. AMAZINGLY easy!
Here it is again for anyone that just wants to be able to create a page in the admin that links to the blog without editing the core files (which wouldn’t be fun to think about when you update).
http://txfx.net/code/wordpress/page-links-to/
Hi, I would like to display forum on wordpress page, and i used a gerink post, but when i put that code:
$bb->WP_BB = true;
if (file_exists(‘../wp-blog-header.php’))
require_once(‘../wp-blog-header.php’);
else
if (file_exists(‘../../wp-blog-header.php’))
require_once(‘../../wp-blog-header.php’);
In to the top of my bb-config.php file, i just can not login in to the bbpress. I try to create new account, but effect is the same. When I click “Log in >>” , the site is only refresh, and I still can only log in.
I have wp 2.8 and bbpress 0.9.0.5.
I used the Pages Links To plugin and it works perfectly for my needs
I am going to give my forums a different feel from the website. Thanks!
On Nginx, I am using this for WordPress
# WordPress pretty URLs: (as per dominiek.com)
if (-f $request_filename) {
break;
}
if (-d $request_filename) {
break;
}
rewrite ^(.+)$ /index.php?q=$1 last;
# Enable nice permalinks for WordPress: (as per Yawn.it)
error_page 404 = //index.php?q=$uri;
and I want something similar for bbPress. Please share the solution!
Sam, I’ve tried about 50 different changes and no matter what I do with the config files, the Integration plugin settings, or the bbPress WordPress Integration settings, nothing seems to change the fact that I cannot logout from WordPress if I have logged in from bbPress (that means I cannot logout period, I click logout there and can still go into either of the admins because the cookies are not removed). Everything else works fine. I could always redirect all my bbP login forms to wp-login.php I suppose, but it seems like that should be unnecessary. Could it be because my wordpress is in a subfolder of my site like /public_html/yawp/ ?
It seems when I login from bbP I get 2 wordpress_logged_in_* cookies, with identical values except that the ‘Path:’ of one is ‘/yawp/’ and the ‘Path:’ of the other is ‘/yawp’. When I login from WP I only get 1 wordpress_logged_in_* cookie, and it has a ‘Path:’ of ‘/yawp/’. I feel like this might be part of the problem.
I figured the integration speedup line $bb->sitecookiepath = '/yawp'; in bb-config.php might be to blame and added only that line, but changed it to $bb->sitecookiepath = '/yawp/';, cleared cache, deleted cookies, but still I get both logged_in cookies when logging in from bbP. That’s among trying a bunch of other different config changes to get that wp_login_* cookie unified.
Since you said in the RC-1 thread that I should be able to have this work if I just play with the cookie paths, have you any suggestions?
Thanks chrishajer, essentially I want to merge bbpress into my existing WP theme (same header & footer). Ideally the bbpress would be embedded into a wp page.
I’ve since found an article which achieves what I’m looking to do. http://www.adityanaik.com/integratepress-part-i/
I’ll also search this forum for updated threads on the topic.
Cheers.
pbarry4 – please post what you’re looking to do exactly. Since this post was made other posts have been made that explain how to do this as well.
@zappoman Any chance you can share the wealth and make the plugin available?
Cheers
No the prefixes should NOT be the same for integration. Use a different table prefix for bbPress tables, and when it comes to integration, the installer asks for your WordPress table prefix so it can use those tables for user data only.
Start a new topic for your new problem please.
As per my post here on my blog : http://blog.ashfame.com/2009/05/integrate-bbpress-forum-wordpress-setup/
To achieve integration between 0.9.05 & WordPress 2.7.1, I overwrite the bb_capabilities in wp_usermeta for my user by sql query as I don’t have phpmyadmin and I am using custom table prefixes.
I just followed the instructions again on a setup and got something into different.
My current password didn’t work. I manually updated it with a sql query from a known setup (I haven’t installed mail sending capabilities yet) and then I got access but now when I try to change the bb_capabilities of my admin user, it gets change, is reflected too but when I refresh the forum page, I still can’t see the link to dashboard. And now if I check the db again, the bbPress seems to have overwritten my entry to “a:1:{s:6:”member”;b:1;}” from “a:1:{s:9:.keymaster.;b:1;}”.
I am clueless at the point. I can try dropping tables and starting again would get my work done but I am curious that why it is happening.
Cookies
We should probably have a general writeup of how Cookies work in both WordPress and bbPress, across versions… how the WordPress cookie was changed in versions 2.5 and 2.6, and how the bbPress cookie was changed from 0.9 to 1.0 (and any other changes that you can think of!)
Of particular note would be which versions integrate well with each other (e.g. how bbPress 0.9 doesn’t have native support to integrate with the latest WordPress versions… so for a number of months, the only way to upgrade WordPress was to upgrade to the alpha 1.0).
Also, ck’s bbPress cookie upgrade plugin… and Superann’s WordPress cookie downgrade plugin (to allow 0.9 to talk to the latest WordPress cookies).
Anyone enough of a Cookie guru to draft a general writeup of how cookies work, and the general cookie compatibility issues we’ve seen? I think we can do better than the WordPress Codex, which seems really vague:
https://codex.wordpress.org/WordPress_Cookies
Integration
Might be worth sharing links to people who have integrated bbPress with non *Press user logins:
https://bbpress.org/forums/topic/bbpress-integration-2
Maybe also a writeup on “deep” *Press integration versus other more “shallow” forms of integration (shared login)… some useful links on that:
https://bbpress.org/forums/topic/first-pass-at-a-fix-for-deep-integration-in-trunk
Any other links on deep versus shallow integration?
I am installing bb press and wordpress mu in same database I install it successfully but when I am trying to login in admin panel of wordpress-mu I redirect to page I am not able to control my addmin panel cuold you help in that
When I try to have access to WordPress functions (including that line said on documentation) I get this error:
Fatal error: Cannot redeclare _mb_substr() (previously declared in /home/aedi/public_html/wp-includes/compat.php:86) in /home/aedi/public_html/bbpress/bb-includes/backpress/functions.compat.php on line 108
When I get to line 108, that’s what I see:
if ( !function_exists( ‘_mb_strcut’ ) ) {
function _mb_substr
_mb_strcut??? Shouldn’t be _mb_substr?
I am attempting to integrate bbpress rc-1 into a wp blog (2.7.1) so it utilizes the same header and footer, but I don’t need db or login integration.
I only need to load wordpress so I can call get_header() and get_footer(). When I add this to the top of bb-config.php require_once('/path/to/wp-blog-header.php'); it seems to destroy the ability to login. I am simply routed to another page (Add New Topic), without actually having been logged in. If I try to access bb-admin.php, it spits me back onto the index page.
Any guides suggestions?
See the blog post.
Lots of testing would be greatly appreciated.
A note for anyone integrating cookies with WordPress less than version 2.8, you need to add this to your bb-config.php file…
define('WP_AUTH_COOKIE_VERSION', 1);
When you upgrade WordPress to 2.8 that line will have to be removed.
Please can someone provide a “clean” guide using bbPress .9.x and WordPress 2.7.1?
Step #1
Step #2
.
.
.
…and so on.
I’ve been trying (very hard) to follow this guide, but there are so many contradictions and then links to external resources that say to do something else.
Needless to say, I’m ready right now to simply give up on bbPress and move on.
There needs to be so many edits, changes, fixes (and it still does not work). I truly hope the developers STOP… sit back and re-evaluate this project. In my opinion, it should integrate with WordPress easily as the option should be there during the install. I thought WordPress and bbPress were the same “organization” – As such, integration (I feel) should have been a natural fit! Currently it’s so difficult, that for some it’s become a deterrent to use bbPress. I think that is not good. (I personally know of two people who tried to integrate and after a frustrating period, opted for other solutions. One of them makes a point of telling others to stay away from bbPress, because he was more frustrated than I was – Which I think is not right! It bothers me because if he’s doing that, how many others are?)
Two things that have added to the confusion are:
1) Comments from other users, suggesting something else, or contradicting the information.
2) The guide needs to be updated to use current WordPress code and also to include more instruction. I’m very technically oriented, parts of this guide leave even me hanging in the breeze. Parts of the guide are too generalized.
I hope some of the developers hear me (and feel the frustration) , but more importantly, stand back and look (really look) at this issue.
Thanks for letting me have a say, I hope this helps bbPress in some way.
I think I almost solved it now. For some reason I had $bb->authcookie and $bb->logged_in_cookie set to ‘wordpress_logged_in_’. Probably due to some debugging oddysee. I removed the autcookie-setting and now cookie sharing and admin access are working. Yay! 
The only downside is that I can not access the admin area when I used WPMU to log in. But when I login over bbPress it works, so I guess that is an acceptable loss, since it affects only the admin and not all users…