bbPress RC1 with WordPress 2.8 shared login
-
Hi all,
Just wondering if anyone has a shared login working with bbPress RC1 & WordPress 2.8 beta?
I have WordPress installed at root level and bbPress in a sub directory using the WordPress users table.
When setting up bbPress I went through all the integration settings.
Now users can log in at either end no problem, it’s just that they are not logged in on the other end when visiting the forum/wordpress.
I then regenerated the keys using http://api.wordpress.org/secret-key/1.1/ and placed these in both config files with the required BB_ bit for the bbPress config.
I added the following to my bbPress config:
$bb->wp_siteurl = 'http://site.com/';
// that's your WordPress URL, not bbPress
$bb->wp_home = 'http://site.com/';
// almost always the same as siteurl unless you tinker
$bb->wp_table_prefix = 'wp_';
// should almost always be wp_ unless you tinkered
$bb->user_bbdb_name = 'xxxx';
// this is the MYSQL database name for *WordPress*
// you can copy it right out of WordPress !
$bb->user_bbdb_user = 'xxxx';
// this is the MYSQL user name for *WordPress*
// you can copy it right out of WordPress !
$bb->user_bbdb_password = 'xxxx';
// this is the MYSQL password for *WordPress*
// you can copy it right out of WordPress !
$bb->user_bbdb_host = 'localhost';
// 99.9% of the time it's going to be localhost, unless you are on DreamHost or some other weird ISP
$bb->custom_user_table = 'wp_users';
// 99.9% of the time it's going to be wp_users
$bb->custom_user_meta_table = 'wp_usermeta';
// 99.9% of the time it's going to be wp_usermeta
$bb->authcookie = 'auth code i set with wp plugin';
// in theory you should be able to leave this out
// but this is going to be copied from WordPress cookie
// this *must* match the WordPress setting
// do NOT use the 1234567 part, use your own cookiehash from WordPress - see the note at the very bottom
$bb->cookiedomain = '.site.com';
// note the leading DOT - this is important
// this *must* match the WordPress setting
$bb->cookiepath = '/';
// I *highly* recommend you set the cookie path to /
// this *must* match the WordPress setting
$bb->sitecookiepath = '/';
// I *highly* recommend you set the cookie path to /
// this *must* match the WordPress setting
$wp->cookiedomain = '.site.com';
define(COOKIE_DOMAIN,'.site.com');
// note the leading DOT - this is important
// we list both for WordPress legacy compatibility
$wp->cookiepath = '/';
$wp->sitecookiepath = '/';
define('COOKIEPATH', '/' );
define('SITECOOKIEPATH', '/');
// I *highly* recommend you set the cookie path to /Now when I log in at the bbPress side, a wordpress_logged_in_xxxxx cookie is created but then when I visit the wordpress end, I am not logged in.
When I do then log in on the WP end, it creates another wordpress_logged_in_xxxxx cookie, the cookie names are both the exact same but their values are different.
Anybody got any tips on how to fix this?
- You must be logged in to reply to this topic.