Forum Replies Created
-
In reply to: bbPress 1.0-alpha-2 released
OK, I’ve looked at the other thread and looked at the cookie interaction on my site and have it working. I did have to make a change to my wordpress installation to get it to work. Here is what I did:
My wordpress installation is at sacbikekitchen.org
My bbpress installation is at sacbikekitchen.org/forum/
I added the following to my /forum/bb-config.php:
$bb->cookiedomain = '.sacbikekitchen.org';
$bb->sitecookiepath = '/';
I added the following to my /wp-config.php:
define('COOKIE_DOMAIN', '.sacbikekitchen.org');
define('COOKIEPATH', '/');
Then I made a couple additions to the wp-includes/pluggable.php file:
Around line 596 I added:
setcookie(LOGGED_IN_COOKIE, $logged_in_cookie, $expire, '/forum/', COOKIE_DOMAIN);
setcookie($auth_cookie_name, $auth_cookie, $expire, '/forum/bb-plugins', COOKIE_DOMAIN);
setcookie($auth_cookie_name, $auth_cookie, $expire, '/forum/my-plugins', COOKIE_DOMAIN);
setcookie($auth_cookie_name, $auth_cookie, $expire, '/forum/bb-admin', COOKIE_DOMAIN);
Around line 620 I added:
setcookie(LOGGED_IN_COOKIE, ' ', time() - 31536000, '/forum/', COOKIE_DOMAIN);
setcookie(AUTH_COOKIE, ' ', time() - 31536000, '/forum/bb-plugins', COOKIE_DOMAIN);
setcookie(AUTH_COOKIE, ' ', time() - 31536000, '/forum/my-plugins', COOKIE_DOMAIN);
setcookie(AUTH_COOKIE, ' ', time() - 31536000, '/forum/bb-admin', COOKIE_DOMAIN);
Hope it helps…
In reply to: bbPress 1.0-alpha-2 releasedI seem to be having the admin login problem as well. I checked the salt settings and they match. I think this is a problem with the login integration. When I login to wordpress first I can post comments to bbpress but that is about it. The bbpress logout button is broken and wordpress doesn’t seem to recognize bbpress-originated logins.
It certainly is close though. I’ll dive into the code to see if I can’t figure it out.