Skip to:

Help with integration

  • Hard Seat Sleeper


    I’m hoping someone can help me with integration of my wp 2.8 and bbpress 1.1. So far I have:

    1) Set everything correctly in bbpress admin for integration

    2) Created a “secret key” in wp-config, and copied it to the bbpress config file

    3) Installed the bbPress Integration plugin in wordpress

    4) Defined the cookie path in wp and bbpress

    5) set the AUTH_KEY in wp, and copied that to bbpress

    6) cleared cookies and cache numerous times

    and still, logging into one does not log me in to another. I see some mention of a SALT key in these forums, is that what I need?

    Any help would be appreciated.

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

  • buddha-trance


    I remember struggling a bit to make it work, and I have tried several different recommendations I found in these forums. Now there is this guide that may be very helpful

    Let me tell you what I have defined in my config files, to make it work seamlessly:

    1 – wp-config

    SECRET_KEY your value

    AUTH_KEY your value

    SECURE_AUTH_KEY your value

    LOGGED_IN_KEY your value

    NONCE_KEY your value

    then, at the end of the wp-config file

    define('COOKIEHASH', 'your value');
    define('COOKIE_DOMAIN', '');
    define('SITECOOKIEPATH', '/wp-admin');
    define('COOKIEPATH', '/');

    – on the cookie_domain there must be a . (period) before the url

    – sitecookiepath is for root installations, if you have WP in a subdirectory, then change the path to, for example /blog/wp-admin

    – cookiepath is OK with just ‘/’ (also if WP is in a subdirectory, at least this was my case, even if the integration plugin told me otherwise, which did not work for me)

    2 – bb-config

    BB_AUTH_KEY to match the WP key

    BB_SECURE_AUTH_KEY to match the WP key

    BB_LOGGED_IN_KEY to match the WP key

    BB_NONCE_KEY to match the WP key

    then, at the end of the bb-config file I have

    // Start integration speedups

    // WordPress database integration speedup
    $bb->wp_table_prefix = 'yourprefix_';

    // WordPress cookie integration speedup
    $bb->wp_siteurl = 'url to match what you have in WP general settings';
    $bb->wp_home = 'url to match what you have in WP general settings';
    $bb->cookiepath = '/';
    $bb->authcookie = 'wordpress_here goes the same sequence of numbers to match the cookiehash in wp-config';
    $bb->secure_auth_cookie = 'wordpress_sec_here goes the same sequence of numbers to match the cookiehash in wp-config';
    $bb->logged_in_cookie = 'wordpress_logged_in_here goes the same sequence of numbers to match the cookiehash in wp-config';
    $bb->admin_cookie_path = '/forums-directory/bb-admin';
    $bb->core_plugins_cookie_path = '/forums-directory/bb-plugins';
    $bb->user_plugins_cookie_path = '/forums-directory/my-plugins';
    $bb->sitecookiepath = '';
    $bb->wp_admin_cookie_path = '/wp-admin';
    $bb->wp_plugins_cookie_path = '/wp-content/plugins';

    // End integration speedups

    – the last two if WP is installed at the root, otherwise



    to get sets of keys

    I can’t remember how I got that cookiehash value…

    a possible helpful thread, just in case

    Currently on WP 2.8.6 and bbPress 1.0.2

    I hope this helps.

    Hard Seat Sleeper


    Thanks Buddha,

    I tried all of these, to no avail. I also tried that other page, worked my way through it, but that thread just kind of fizzed out with no resolution either. I’ve tried to read that 101 page before. it’s too long with too much conflicting info.

    One of them led me to this page, to generate a SALT:

    I tried that, put it in both config files, and it didn’t work.

    The only headway I made was that in adding your “speedup” rules, I was unable to log out of bbpress. At least it was something.

    The cookie hash I generated here:

    Some said to include the www. in these url values (cookiehash, COOKIE_DOMAIN, etc), some said not, I tried both and still couldn’t get it to work.

    I appreciate your help Buddha, it might be that I need to learn more about cookies; as it is, I’m just stabbing in the dark here, I’m not totally familiar with how all these things work.



    @HSeatSleeper – Setting the cookies right can be troublesome, also because there is so much conflicting information. When I set the forum up, I tried so many different things, and a lot of trial and error.

    One thing that worked for some, was also to completely regenerate the key values from the api.wordpress link, and put the new ones in both config files. Then flush cookies and cache from the browser, or even better, use a different browser that did not store the old cookies. I do recall trying with several browsers, until in the end it worked.

    Try this way, starting from scratch and without using the speedups.

    Hard Seat Sleeper


    With head hung low I come here to update:

    After a week off of this, I fired it up again and noticed that I had installed an older version of bbpress, .9. I upgraded to 1.1 and clicked a few things and was perfectly integrated.

    Thanks for helping, everyone, I appreciate it.

    Since you upgraded I wrote something, tell me if it works:

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar