Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: bbPress 1.0-alpha-2 released


sc0ttbeardsley
Member

@sc0ttbeardsley

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…

Skip to toolbar