sc0ttbeardsley (@sc0ttbeardsley)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • @sc0ttbeardsley

    Member

    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…

    @sc0ttbeardsley

    Member

    I 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.

Viewing 2 replies - 1 through 2 (of 2 total)