Hi,
More info – if it might help resolve my problem:
bbpress: Version 1.0-alpha-6
wordpress: 2.7.1
Thanks
I have followed video integrating the database with ease. I now have your plug in for WP. I have copied the lines of code and have pasted them into my WPconfig file. What I have noticed with this code, I cant log out off bbpress, and every time I go back to wordpress it logs me out !
Any step by step directions on the integration would much appreciated !
Thanks to sambauers I got the login working across both systems now. The important trick is to add the following line to bb-config.php, unless you are using WordPress 2.8:
define(‘WP_AUTH_COOKIE_VERSION’, 1);
Now I have only one problem left: I cannot access the bbpress admin area anymore. I instantly get redirected to the forum. Any ideas what might cause this?
i have installed bbpress in the root directory itself! now the problem is i want a user to login from a different page say index2.php and before getting redirected to the forum’s mainpage i.e index.php he should be redirected to index3.php. All the 3 index pages are in the root directory itself.
Basically i need a login box on the mainpage of the website and then after being logged in the user should be redirected to the backend of the website! Not the forum mainpage. The forums have been installed in the root directory so as to overcome the problem of bbpress not being able to share cookies over sub directories apart from wordpress! I use the database of the bbpress itself still haven’t got any success!
Hoping for a quick response!
Thanks!
Vipul
I’ve just synced cookies on bbPress 0.9.04 and WordPressMU for the second time. I’ve read a few places that it doesn’t work or is difficult, so I wanted to share my solution. It’s really very easy. I wrote it up in a blog post:
http://www.callum-macdonald.com/2009/05/17/bbpress-09-and-wordpressmu-27/
It was remarkably simple (at least to me) to get it all working. Summary of steps:
1) Set all _KEY values to the same in WordPress and copy to bbPress.
2) Repeat for _SALT values.
3) Set COOKIE_DOMAIN and COOKIE_PATH
4) Settings > WordPress Integration > Show manual config settings, copy into bb-config.php.
5) From 4, change the authcookie value to wordpress_logged_in_
Step 5 won’t work exactly on WordPress standalone because it uses a hash in the cookie name. You can probably check the WordPress cookie in your browser and set it manually. Or maybe it’ll “just work”.
Then I whipped up a plugin to set / unset the other 2 WordPress cookies on bbPress login / out. It only works for WPMU right now. Somebody could probably improve it to work for WordPress. Code here:
http://www.callum-macdonald.com/download/wpmu-cookies.php-0.1.zip
This might be useful to somebody…
sambauers posted this in another thread:
Oh, I forgot, add this to your bb-config.php
define(‘WP_AUTH_COOKIE_VERSION’, 1);
When you upgrade to WordPress 2.8 later, you will need to remove that line.
Worked like a charm for me!
Looks like you integrated with WordPress 2.7.1 – did you integrate the logins? What version of bbPress did you install?
Oh, I forgot, add this to your bb-config.php
define('WP_AUTH_COOKIE_VERSION', 1);
When you upgrade to WordPress 2.8 later, you will need to remove that line.
Looks like your installation is missing the bb-load.php? Did you try to include bb-load.php into WordPress? If so, you probably just have the path to the file wrong.
Are the xxxx’s the path to bbPress or WordPress directories? Obfuscating that makes it hard to see what your error is really saying.
Also, what version of bbPress are you talking about?
Very nice. I see you’re using WordPress 2.7.1. Do you have integrated logins between the forum and the WordPress site, and if so, how did you integrate them?
I just launched my site on WordPress and am loving it. http://kingscast.net (We’re about 98% complete with integration)
I also launched our bbPress forums site found at http://kingscast.net/forums – custom theme but playing around with integration of plugins, etc.
I’d appreciate any feedback! Thanks!
Because bbPress is not a plugin for WordPress, it’s not really possible, as far as I know, to make your forum appear in a WordPress page. Someone posted here once about putting bbPress in an iFrame and putting that in a WordPress page, but I’ve still not seem it working at all.
Most people create a theme for bbPress that looks like your WordPress theme and then they integrate the logins so you can log in once for both bbPress and WordPress.
Ipstenu, my skip-akismet plugin works on wordpress installs too, though there is some kind of subtle bug I can’t seem to find where it doesn’t catch everyone on the wp side, works great on the bbpress side however.
If you meant what will notify users of comments being held, this will do it:
http://txfx.net/files/wordpress/notify-users-of-moderation.phps
What’s crazy is that was written back for WP 1.2, and yet it’s still needed, 5 years later.
I have the following:
Version 1.0-alpha-6 and WordPressMU 2.7.1 The problem lies with the instructions: Your video is excellent but when you read other posts they approach it different, and everyone has different ideas about this token, and the plug ins. Its just so dam confusing. I have two con fig files that have so much different code I just have no idea what is going on.
What did line 80 of wp-config.php look like, and how about the line just before that? Also, what version of WordPress so someone can check their wp-config.php and see what that might be.
A quick solution might be to just remove all links to the WordPress login and registration pages… and only have links to the bbPress registration and signin.
I did that for a long time, and it eliminated the problem with having two signups…
to be honest im not sure how to awnser that directly.
I had wordpress already.
I installed bbpress, went to the settings and filled in the intergration settings in hopes of having it work.
But.. alas it doesn’t.
Thanks.
When I go to phpMyAdmin, I do see bunch of tables under XXX-forum. For example, when I open bb_usermeta, it shows some entries such as umeta_id, User_id; but when I try to ‘browse’ them , I don’t see the the contents where I can see user name etc, instead I see something like:
SQL query:
SELECT COUNT( * ) AS Rows , user_id
FROM bb_usermeta
GROUP BY user_id
ORDER BY user_id
LIMIT 0 , 30
Is there a guide as to how I can work with this. Or do you know what is the best way to delete bbpress without affecting my wordpress, I will try to re-install it.
Thx.
I had WP2.7.1 and bbPress1.06a working perfectly.
Now I’ve replaced 1.06a with RC1. Kept exactly the same settings (apart from a duplicate bbp database – which is identical in all but name). Same wordpress integration bumpf in the bb-config file.
Then I run the database upgrade. And it all works as expected apart from the cookie integration.
Logging in via WP does log me into bbP but I can’t log into WP unless I go through /wp-admin (cookies spat out by each login all correspond.)
Anyone else had a similar problem or offer a solution?
I have upgraded the bb-integration plugin in WP and if I switch back to the previous version of the forum it all works fine again. So I can only pressume something odd is happening in RC1.
I am having the same problem as well. Using WordPress MU 2.7.1, bbPress 1.0-rc-1 and buddypress 1.0. WPMU and bbPress successfully share the user database, but users still have to log in seperately.
WPMU seems to store the login information in a cookie called “wordpress_logged_in_”, while bbpress uses “wordpress_logged_in_[bunch of letters and numbers]”.
I already tried adding “define(‘COOKIEHASH’, ‘[same bunch of letters and numbers]’ );” to wp-config.php, but it had no effect whatsoever. No hash appeared in the wp-login-cookie.
I also tried making bbPress use “wordpress_logged_in_” (without the bunch of numbers) as login cookie. This resulted in the same cookie name being used, but the logins were still not shared. When I switched between bbpress/wpmu, I got logged out from the application which was the last to be logged in to.
Interestingly, there is another hashlike string behind the user name in the value of the cookie. Like this: “admin%[bunch of letters and numbers]” This hashlike sting is different between wpmu and bbpress. Even for the same user.
I would guess that means that some hashgenerating constant is off, but I do not know which one. I synched those with their bbpress equivalents: AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, NONCE_KEY, AUTH_SALT, LOGGED_IN_SALT, SECURE_AUTH_SALT.
For AUTH_SALT, LOGGED_IN_SALT and SECURE_AUTH_SALT I did use the values from the wp-config.php because I could not find them in the WPMU admin interface. I guess that’s a difference between WP and WPMU?
What am I missing?
Hi Florian,
there was no problem with “Forum could not be created” in my case.
Manoj Kumar in BuddyPress forum helped me with this problem, here is the solution:
1. Delete all tables created by bbPress from your database
2. Install bbPress without integration with wordpress
3. Login with Key Master
4. Go to admin tab
5. Do wordpress integration
here is the link
Sounds like you have a separate database for WordPress and bbPress? The message says there is no wp_users table in the bbp01 database. Did you use separate databases or the same one for bbPress and WordPress?
bbPress database error: [Table ‘andreame_bbp01.wp_users’ doesn’t exist]
SELECT ID FROM wp_users WHERE user_login = ‘admin’
I tried following the integration steps properly.
WordPress Version: 2.6.5
BBpress Version: 0.9.0.4
My Regular WordPress login works.
If integration was successful wouldn’t it be the same login information for the BBpress?
How can i fix this?
You have to tell bb, when you set it up, where wp is
Default assumption is that it’s the same folder. You’re going to need phpMyAdmin or something to fix it.
Go into your XXX_forum database and open up the bb_meta table.
Look for:
user_bbdb_name
user_bbdb_user
user_bbdb_password
The first one is the NAME of your WordPress database (so XXX_wrdp1), the second is the ID used to access said database (sounds like XXX_wrdp1 from your post) and the third is (heh) your password for that ID.
Set those up to point to WP and you should be able to log in.