Integrating WPMu, BuddyPress, and bbPress

This is a tutorial documenting the steps I’ve been working through over the past week to integrate WPMu, BuddyPress, and bbPress. All of the applications versions I am currently using are either in beta, alpha, or taken from the trunk. So, needless to say, this tutorial will have to be updated regularly as the versions stabilize. Knowing this, I wrote this tutorial in a wiki, which I plan to update regularly as the version of each application changes. And once it’s all solid, I plan on moving it to any WordPress codex that will take it :)

Just about everything I document here comes from either the bbPress or BuddyPress forums. I just tried to organize the resources and instructions to help out anyone who is coming at this fresh, and needs pointers to the relevant resources such as forum threads, further tutorials, screencasts, etc. To see this insanely long tutorial, make the jump after the following link.

Integrating WPMu, BuddyPress, and bbPress tutorial

Contents



Requirements and Assumptions

This tutorial will be updated regularly as the versions of WPMu, BuddyPress, and bbPress are updated and stabilized. Currently, this tutorial assumes you have WPMu 2.7.1 installed (which can be found here), the BuddyPress Combo 1.0.2, and bbPress 1.0 RC 3. Also, I am running this setup on a LAMP server with PHP and MySQL 5+.


Installing WPMu

Installing WPMu is its own ball of wax, and it can be tricky if you decide to do dynamic domains as opposed to sub-directories (though I recommend sub-domains given the power of the Domain Mapping and the Sitewide Tags Pages plugins).

Nonetheless, Andrea_R has an excellent e-book tutorial for installing WPMu which you can download from the WPMU Tutorials site here. I’d start there, and then go to the WPMu forums as needed, where Andrea_R will answer all your questions :)

From here on out I will assume you have WPMu up and running without a hitch for the rest of this tutorial.


Installing BuddyPress

Installing BuddyPress is extremely straightforward once you have WPMu up and running. In fact, the beauty of BuddyPress is that it is a series of plugins, which means all you have to do is copy a series of files into the plugins folder in your WPMu installation. The only exceptions are the theme files and a bbPress plugin for the Group Forums which I will discuss further along.

Paraphrased From the BuddyPress installation documentation:

Move the themes to the correct locations. In the folder “plugins/buddypress” you will find “bp-themes” which has the the bphome, bpmember, bpskeletonmember directories. Move the entire “bp-themes” directory intto “wp-content.” If you want to use the default BuddyPress theme for your main site move the bphome directory into wp-content/themes and activate that them on your main blog.

You should now have the following folder locations “/wp-content/plugins/buddypress/” and “/wp-content/bp-themes/” (and wp-content/themes/bphome is you chose that option)

That’s it on the server side for BuddyPress, see the rest of the details for setup here.


Installing bbPress

When installing bbPress and opting for integration, you may come across a few questions. I tried to integrate right off the bat during the intallation, but hit a few snags with authentication keys and salts. I highly recommend Sam Bauers’s screencast tutorial of the process of integrating WP and bbpress here. Also, you can find the official documentation on the bbPress site here.

From what I’ve seen in the forums, you might want to consider putting the forums within your WPMu installation directory, it makes integration with WPMu easier, for example: public_html/my_wpmu_install/bbPress_forums/

In the event the integration of WPMu and bbPress didn’t go smooth during the install, don’t worry too much about it—just go on to the next section of this tutorial.


Integrating bbPress with WPMu

When we talk about integrating bbPress and WPMu, we are basically saying the following two things:

  • The two applications share a common database of users (the wp_users table in WPMu)
  • The two applications share cookies so that a user logged into the WPMu install is automatically logged into the bbPress forums (and if they log out of one they are automatically logged out of the other).

I got all of the information on how to do this from the bbPress support forums (with a special thanks to Sam Bauers). I’m just going to include the stuff I found useful for me during the integration, providing links out to the actual forum topics and other resources.

Also, for a far better tutorial, see the screencast Sam Bauers created that will take you through the basics of integration. It’s excellent, and you can find it here.

One last remark: if you are using LDAP for your WPMu installation, you may want to check out Joss Winn’s comment here.


Integration Plugins

You will need to install and activate the following plugins in your WPMu installation:

  • bbPress Integration: This is essential, but keep in mind that this plugin is only useful if you are running bbPress version 1.0-rc3 or later.
  • WPMU Enable bbPress Capabilities (0.1): (Please note that Mark Ghosh found a HUGE bug in this plugin and offers a fix here.) Enables bbPress member capabilities when a user is created within WPMU. This allows immediate login as a ‘member’ after a user is created in WPMU.


Resetting the secure keys in wp-config.php

One of the problems I had with integration was with the Authentication Unique keys in the wp-config.php and the bb-config.php files.

Warning: the recommendation below to delete the unique authentication keys may be terrible advice for existing sites for reasons I admittedly do not know, if this is the case please let me know.

What I would recommend if you have a pre-existing WPMu account, is that you delete all the Unique Authentication Key values from your wp-config.php files, and let WPMu generate new ones, which will show up in the admin Dashboard, something like this:

Click for larger version

Also, don’t be too concerned if you didn’t get all the keys listed below (you probably won’t see a couple of the salt values), just see the next section on the “bbPress Backend Integation Tab” to locate the rest of them.

 define( 'AUTH_KEY', 'unique-authentication key here' );
 define( 'LOGGED_IN_KEY', 'unique-authentication key here' );
 define( 'SECURE_AUTH_SALT', 'unique-authentication key here' );
 define( 'NONCE_KEY', 'unique-authentication key here' );
 define( 'AUTH_SALT', 'unique-authentication key here' );
 define( 'LOGGED_IN_SALT', 'unique-authentication key here' );
 define( 'SECURE_AUTH_KEY', 'unique-authentication key here' );
  /**#@-*/

Once you have all the values above defined in your wp-config.php file, put those very same values for each line in the corresponding space in your bb-config.php file:

 define( 'BB_AUTH_KEY', 'unique-authentication key here' );
 define( 'BB_LOGGED_IN_KEY', 'unique-authentication key here' );
 define( 'BB_SECURE_AUTH_SALT', 'unique-authentication key here' );
 define( 'BB_NONCE_KEY', 'unique-authentication key here' );
 define( 'BB_AUTH_SALT', 'unique-authentication key here' );
 define( 'BB_LOGGED_IN_SALT', 'unique-authentication key here' );
 define( 'BB_SECURE_AUTH_KEY', 'unique-authentication key here' );
 /**#@-*/


bbPress Backend Integration Tab

Once you have entered the unique authentication keys, login to the bbPress forums and find the Settings –> WordPress Integration subtab. Here you will need to enter a few values and adjust a couple of settings

First off, in the User Role Map section choose the role you want to map for particular levels of users. The rule of thumb I followed with WPMu is to make everyone a member at first (including administrators), and you (the uber-admin of the WPMu account) will be the keymaster of bbPress, and you can promote others as need be. (Once again, let me know if this misguided advice.)

After this, you will see the User Integration section.

Click on image for larger version

If you don’t have all the values needed here already in the config files, each of the fields has some text and links that will take you to the actual values in the WordPress Options.php section of the main blog of your WPMu install. Check there to see if any missing keys or salts can be found.


bbPress Integration Plugin

You should now download, install (in wp-content/plugins), and activate the bbPress integration plugin at this point.

When you activate it in your WPMu main blog and go to Settings–bbPress integration, you’ll be asked to add the URL to your forums as well as the URL to your my-plugins folder (which is you haven’t created in bbPress you should in the root of the bbPress directory).

After you add your URL you’ll see something like this to be added to your wp-config file:

  define( 'COOKIEHASH', '####################' );
  define( 'COOKIE_DOMAIN', '.yourdomain.org' );
  define( 'SITECOOKIEPATH', '/' );
  define( 'COOKIEPATH', '/' );

And another line to be added to your bb-config file (this is only for versions of bbPress running on WP/WPMu install that are versions prior to WP 2.8.

  define( 'WP_AUTH_COOKIE_VERSION', 1 );

Now, that setup didn;t work for me entirely, I had to change the COOKIE_DOMAIN in my wp-config file, and include the new COOKIE_DOMAIN, SITECOOKIEPATH and COOKIEPATH in my bb-config file. So, my wp-config looks like this (please remember this is for WPMu 2.7.1–your own mileage may vary with WP 2.8):

define( 'COOKIE_DOMAIN', '' );
define( 'SITECOOKIEPATH', '/' );
define( 'COOKIEPATH', '/' );
define( 'COOKIEHASH', '###################' );

And my bb-config looks like this:

define( 'WP_AUTH_COOKIE_VERSION', 1 );
define( 'COOKIE_DOMAIN', '' );
define( 'SITECOOKIEPATH', '/' );
define( 'COOKIEPATH', '/' );


The COOKIEHASH

I really think the bbPress 1.0-RC3 has made finding this a lot easier with the bbPress Integration plugin. Moreover, they give you the line of code you need. The Cookie Hash they had pre-populated for me there worked beautifully. But if it doesn’t, take a look at some of the ideas for finding it on your own below.

If you need to locate your Cookie Hash and you are using Firefox, that means going to the privacy tab in preferences and clicking on show cookies, then look for the domain you are integrating on. You should find something like this:

wordpress_f8jhg89q00w8j&hYG99

So, the line should be

define('COOKIEHASH', 'f8jhg89q00w8j&hYG99');

Here’s an additional trick, if for some reason the Cookie value in the browser doesn’t work. I found that you can take the cookies that show up in the Manual bbPress Config within the Settings–>WordPress Integration tab, specifically the value in the $bb->authcookie = (without the wordpress_) and give it a try. It might work, it did for me.


Integrating BuddyPress Group forums with bbPress

Getting the bbpress forums to work with BuddyPress Groups had me guessing for a bit, at least until I came across the great Trent Adams’s awesome play-by-play in the BuddyPress forums here.

I’m reproducing it verbatim below, because I couldn’t even begin to detail it any clearer or better:


bbPress Side (First):

1) you have bbpress installed and a new user created on the “bbPress” side which you granted “administrator” rights by the keymaster

2) you copy the “buddypress-enable.php” plugin out of the bp-forums folders and copy it into your /my-plugins/ folder (create if it doesn’t exist) so it is /my-plugins/buddypress-enable.php

3) Enable the plugin through your bbPress administration side for plugins

4) Edit “settings” to enable xmlrpc and pingbacks (both)

5) edit your bb-config.php and just before the closing php call at the bottom of the page put:

$bb->bb_xmlrpc_allow_user_switching = true;


buddypress Side (Second):

6) Go into your main blog dashboard and go to the BuddyPress Forums admin page sections of the sidebar. Put in the URL of your forum like http://yoursite.com/forums/ and make sure you have the ending slash on that one.

7) Put in the user that you created in step 1 with the bbPress “administration” rights and their password. I never changed the password, just used the random one it sent me, but it is up to you. I usually save it a couple of times to ensure it was entered due to a refreshing bug at time of writing this. (Actually, I think if the integration worked you can just put your WPMu login and password, no need to be confused here by a separate bbPress login.)

8) Go to one of your groups (new or existing) and go to the group admin page. Make sure “discussion” is turned off. If it was already off that is fine, but if it was enabled already, turn it off

9) Turn the group “discussion” back on and then physically go to your forums URL and see if it created the forum on the bbPress side without trying to create a new topic on the buddypress side.

If you have the new forum now, then you should skip to step 10. If not, go through steps 1-9 again and make sure you got all the steps perfectly.

10) If you have made it this far, it will work, but I like to create the first post in the new forum on the bbPress side and then see if it shows up in the buddypress group forum. Old habit, but for odd circumstance, it seems to work best for me. If it works, try creating a new topic on the group you have working.

  • Don’t forget that you have to do step 8 for every group that was created before you enabled the forum integration! Very important***


Other notes:

1) The refreshing bug in step 7 killed it for me a couple of times and I made sure I saved it at least 2 times.

2) Forgetting the line in bb-config.php killed it for me a couple of times as well.

3) In one install I had to change the bbPress “user” with administration rights password and on the bbPress side and then completing step 7 again.

4) I also found that through “previous testing” I had some bp_groupmeta entries that were screwing things up with duplicates for the same forum in the database. Shouldn’t happen to anyone else, but that screwed some things up for me as well.

In terms of having buddypress and bbPress working together, I am sure it works with buddypress on one server and bbPress on another since it works through the xmlrpc module which makes it very powerful.

Related posts

48 Responses to “Integrating WPMu, BuddyPress, and bbPress”


  • Thanks, Jim. I’m almost looking forward to getting back to work to try this out. When do you plan to put this into production use ? :-)

  • Wow, Rev. Just wow. I’m going to take the plunge on this very soon (probably during January) and I’ve been frightened. Thanks to you, I now have nothing to fear!

  • Very impressive, Jim. Thanks for blazing the trail. Looking forward to playing with this stuff.

  • Thanks, Jim — you rock. We’re going to be playing with this setup soon at CUNY.

  • @Joss,
    Let me know if you have an issues along the way, I’m particularly interested in your setup since it is working off an LDAP. That would be a most useful addition to this tutorial :)

    @Andrea_r,
    Well aren’t you one to talk! I have never seen anyone so amazingly present and helpful on the WPMu forums as you are. And, I know from your tweets you do all this while taking care of the brood and cooking and stringing popcorn for the Xmas tree, etc. Who’s the one that doesn’t sleep :)

    @Joe,
    Let me know how it goes. Although, I wouldn;t push this on production server just yet. A few things need to be cleaned up in WPMu and BuddyPress. It will work, but it may be a bit buggy. Then again, the bava has not been bad at all, so who knows. But let em know if I can help when you make the jump.

    @Mikhail,
    Yeah, I think this suite of tools will make a nice addition to BaruchBlogs :)

    @Matt,
    “No, you rock and you know it” See, you will never be able to get that quote, ever. Until you have kids. And then you too will be quoting Pixar films. Jesus christ! :)

  • This is excellent, Jim!

    BuddyPress is really sweet. Thanks for putting this together!

  • Jim, the roles.php plugin you mentioned isn’t needed with all the latest beta or trunk versions of mu and bbpress. I’ve used one that does the same thing and it came from Michael Eagan. He saved quite a few of our asses back when it was needed.

    http://www.michaeleagan.com/plugins/wpmu-enable-bbpress-capabilities/

    That relieved some of the overwhelming sense of utter confusion that reigned at the keyboard and on the forums.

    The integration of mu and bbress was a complete black art until recently. The docs (what scant dribs you could collect) were misleading and just plain wrong.

    Ten people had ten different methods and conflicting advice. I took all the how-to posts, readme.txts printed them out and cut them into smaller pieces. Then I put them in a can. Shaking them violently and sobbing, tears running down my cheeks, I flung the can against the wall.

    On hands and knees I quietly arranged them into a pleasing pattern. How nice. I see how those two pieces fit. Look. This goes to that! Of course. Stupid. I did it the other way yesterday.

    Try it. Just try it. Just try it like THAT.

    Oh shit. OH SHIT. its working. It’s working. ITSWORKING!

    DONTTOUCHIT!DONTTOUCHANYTHING!OHSHITDONTDOANYTHING!

    backitup.backitup.backitup.backitup

  • Burtadsit,

    I think you’re one of the reasons that the integration of bbPress and WPMu is no longer a black art. You’ve been a mensch on the forums, and I appreciate you clarifying the redundancy of the roles.php plugin, I thought I had read that—but I couldn’t find it again.

    See you on the forums ;)

  • thanks a lot!
    only one thing. I had problems with COOKIEHASH. The domain remained not set with the hash. The solution was putting the define command at the beginning of wp-config.php … i don’t know if there’s a better solution…

  • Mat_Jack1,

    Interesting, what do you mean by putting the define command at the beginning of the wp-config, is that the first line of code you include in wp-config? Let me know, it will help me troubleshoot this installation which is anything but stable.

  • yes, i solved my problem putting the define command as the first command in wp-config.php.

    probably thats could be put in other positions but i haven’t tested more, if you need some detail i can test…

  • I could have sworn I commented on this yesterday, but thanks for a great tutorial Jim!

  • Trent,

    You did, but it was on my other site here: http://jimgroom.umwblogs.org

    And I replied there, and I will here too. Your work is what sealed the grail for me with forums and BuddyPress. So thank you, not only for the comments, but for all your hard work with this stuff and sharing it back (or paying it forward) on the forums.

  • Thanks for providing this.

    If anyone is like me and is unable to stay online and watch the screen cast, the url for it is here:

    http://bbpress.videos.wordpress.com/VSHNDg1D/video/fmt_std

    Add on the *.avi extension to the resulting filename and it should play fine in winamp.

    Regards,
    -drmike

  • I’m just looking at this now. Cookies are working at last. Thanks. Role mapping is still not working. New users on WPMU are not assigned a role in bbPress. Any ideas? De-activating the LDAP plugin doesn’t make any difference.

    Cheers!

  • This plugin (link below) works as described, but as you didn’t mention it above, I didn’t think it was required.

    http://bbpress.org/plugins/topic/wpmu-enable-bbpress-capabilities/

    This gives me the functionality I was looking for. Are you using it? If not, how are you getting around it?

    Using the Sourceforge WPMU-LDAP plugin, shared login does not work from bbPress except for the Admin/KeyMaster user. I guess this is because only the Admin is a real WPMU user who does not query LDAP when logging in.

    Shared login does work from WPMU. Again, this is fine for my requirements as bbPress is the ‘child’ application of WPMU and it’s not unreasonable to expect users to be logged into WPMU in order to post to post to the support forum.

  • Joss,

    Thanks for this, turns out I am using it but left it out of the tutorial, so your comment here is much appreciated. i will update the tutorial now, my bad.

    Interesting about the LDAP limitations, this is also good to know, because we are not using LDAP and I can;t really test that, so thanks–I’ll add this as a caveat.

  • Hi, i’m happy and sad here. today i did a fresh instal of everything and it worked ok on the main blog.
    But when i create a second blog, the integration doesn’t work.
    don’t know what to do now…

    o yeah. i’m using the last wpmu trunk that came out (1620).

    By the way, thanks for the tutorial!

  • HI again!!! i forgot saying that i’m donig just the first part of the integration between WPMU and BBpress! i’ll try buddypress later!
    but so far not very good.. TNX!

  • AHA!! got it!
    i configured the bbpress integration plugin in inside a secondary blog and it told me that my Cookiedomain should be something like ‘.exemple.com’

    So it ends like this
    define(‘COOKIEHASH’,’3hb2gtrg2r24…’)
    define(‘COOKIE_DOMAIN’, ‘.exemple.com’);
    define(‘COOKIEPATH’, ‘/’);

    it worked nicely! now i’ll test it a little bit more! and later i’ll try he buddypress.

    TNX again. = )

  • Hi,

    Thanks so much for these tutorials! Between the screencast and what you wrote, I got it (almost) working!

    The cookie thing still does not seem to be working. The users are created in bbpress just fine, and they can log in to the forum manually, but once logged into the blog, and you change the address to the /forums/ the login info doesn’t get carried over and you arrive at the forum not logged in.

    The only thing I could not complete in this tutorial is the cookie hash. No matter which of the several cookie settings I put in the wp-config file, it doesn’t allow me to log in to the WPMU blog anymore. Only if I comment the defaint COOKIEHASH line I can login again.

    I have several cookies lised in Firefox:

    wordpress_
    admin%7C12337…….ff7
    path:/forums/bb-admin

    wordpress_
    admin%7C12337…..ff7
    path:/forums/bb-plugins

    wordpress_
    admin%7C12337…..ff7
    path:/forums/my-plugins

    wordpress_
    admin%7C12337……ff7
    path:/wp-content/plugins

    wordpress_
    admin%7C12337……ff7
    path:/wp-admin

    wordpress_logged_in_
    admin%7C12337…….504
    path:/

    Which cookie do I need for the cookie hash? Also, do I need the “admin” or “admin%” before it as well?

  • In my wp-config.php, this line works for me:

    define(‘COOKIEHASH’, ’75b85fdhdk73de5999f72fc03bc2hf6fgrj’ );

    (that’s not my hash, but you get the idea).

  • Thanks, but what I am saying is, is that no matter what value I put in between those quotes (there are 3 different cookie values listed in Firefox for my domain) on the “define(‘COOKIEHASH’,”); line, the WP system doesn’t allow me to log in anymore.

  • Erwin,

    Try clearing all your private data, cache, etc. from Firefox, and then restart the browser and go to your wpmu homepage (or the primary/first blog) and login, after that you should see only one cookie hash in the privacy settings in Firefox. Try that one, if it doesn’t work let me know.

  • Reverend,

    I cleared all private data with the cookies, and logged in. The result is 8 cookies:

    5 times “wordpress_”
    1 wordpress_test_cookie
    1 wordpress_is_logged_in_
    1 PHPSESSID

    The 5 wordpress_ cookies list the following paths:
    /forums/bb-admin
    /forums/bb-plugins
    /forums/my-plugins
    /wp-admin
    /wp-content/plugins

    These all list “wordpress_” for name and “admin%7C…..1a3″ for “content”.

    I tried the “7C…1a3″ in the define line, still no luck.

    Erwin

  • Erwin,

    I’m stumped, this is exactly what I have in my wp-config file underneath all the other secret code stuff:

    define(‘COOKIE_DOMAIN’, ”);
    define(‘COOKIEPATH’, ‘/’);

    define(‘COOKIEHASH’, ‘f5….8′);

    I don;t know why yours isn;t working, because you seem to be following the steps correctly. Are you using 1.0b2? I’m grasping at straws here….

  • Reverend,

    Thanks for your help.

    Well, I ended up creating an md5 of my site URL (literally) and used that as my COOKIEHASH instead of what is listed in the cookies, and it works like a charm!

    I found the hint here:

    http://comox.textdrive.com/pipermail/wpmu-trac/2008-October/002136.html

    Which is a COOKIEHASH NOT FOUND error solution, but it works for me.

    Leaves the question: why is the hash listed in my cookies not correct?

  • Erwin,

    Glad to hear that, and a special thanks for sharing it back here in the comments. I’ll include it in the original tutorial should anyone run up against the same difficulties.

  • THANK YOU SO MUCH! Yes, I really mean that in all caps! I have been struggling and struggling with this integration and thanks to you, it is working!

    On the bbPress forums, someone mentioned this: http://bbpress.org/forums/topic/share-solution-for-bbpress-10-alpha-6-wordpress-mu-27-cookie-integration#post-23773. I tried that while trying your tips, and the integration would NOT work. So I undid that one little tip (from the forums) and then the magic happened. I just thought I’d include a mention of that topic, in case it would be tripping up someone else.

    Thanks again!

  • Wardeh,

    Glad it worked for you, the setup can be a bear. And thanks for sharing back that tip, so if I have you right, don’t follow the tip from the forum post you linked, but stick with the bava plan? Is that right?

  • Has anyone had trouble getting their mu-plugins to work on the bbpress side??? I can’t get any of the buddypress core function calls to work on the forum side and for that matter any plugin in my mu-plugins folder is not being activated in bbpress, but everything else outside of that seems to be working just fine…

  • Hi, great article, thanks for the good work! I have still been unable to get this working, and have followed your steps closely (I think) I have a couple of questions:

    wpmu 2.7
    bbpress 0.9.0.4

    1) Cookie hash: when I include this I can no longer login to buddypress, with either my admin or a user I setup, but previously worked. When I remove the hash line, they work again…

    2) I do not have the following lines in my bb-config: (I just added them in)

    define( ‘BB_AUTH_KEY’, ‘unique-authentication key here’ );
    define( ‘BB_LOGGED_IN_KEY’, ‘unique-authentication key here’ );
    define( ‘BB_SECURE_AUTH_SALT’, ‘unique-authentication key here’ );
    define( ‘BB_NONCE_KEY’, ‘unique-authentication key here’ );
    define( ‘BB_AUTH_SALT’, ‘unique-authentication key here’ );
    define( ‘BB_LOGGED_IN_SALT’, ‘unique-authentication key here’ );
    define( ‘BB_SECURE_AUTH_KEY’, ‘unique-authentication key here’ );

    I only have: define(‘BB_SECRET_KEY’, ‘secret_key_here’); // Change this to a unique phrase.

    3) I do not see this in my bbpress settings page: Edit “settings” to enable xmlrpc and pingbacks (both)

    4) I do not see how to ‘add a user with admin rights’ in bbpress.
    None of my existing buddypress users are showing up.

    Integration and group forums do not seem to work, cannot login to bbpress with existing users other than keymaster (different password from buddypress)

    Any help would be much appreciated!

    Thanks!

  • Pythagoras,

    I think the issue is that you need to use the alpha version of bbPress, as far as I understand the integration doesn’t work with the 0.9x versions. Double-check on the bbPress forums, but I believe this is the case, and it would explain for me all of your questions.

  • Thanks, I will try that!

  • Thanks! integration worked! Still don’t have group forums working, but I’m alot more optimistic now, thanks!

  • Got it! you rock whoever you are, I was banging my head against the wall!

  • I’m the Reverend…and you are most welcome :)

  • Thanks for this detailed walk through and the real world warning signs to look out for. Very much appreciated. :)

  • After I post a topic in the group forum,I click the topic, but it give me “There are no posts for this topic”.
    any suggestion?

  • Yin,

    I had that same issue until I updated to the latest bbPress (alpha 6) and the latest Buddy Press which is rc2. I recommended doing that and seeing if it works–if you already haven’t.

    Also, WPMu 2.7 final is out, are you using that version?

  • Like everyone else, I’ve struggled with this big time! The big catch – WPMU Cookies Hash…. The only hash my cookies hash are generated by BBpress cookies, MU cookies contain no hash…. so I’m not sure where everyone is getting their hash from to use in define(‘COOKIE_DOMAIN’, ”); …… simply using the hash generated by BBpress cookies does not work for me…. So my big question for everyone…. where are you getting your mu cookies hash from???

    I saw Erwins suggestion above where he links to: http://comox.textdrive.com/pipermail/wpmu-trac/2008-October/002136.html

    So I simply took wp-settings.php and changed:

    // Used to guarantee unique hash cookies
    if ( !isset($cookiehash) )
    $cookiehash = ”;

    and inserted my cookie hash….

    // Used to guarantee unique hash cookies
    if ( !isset($cookiehash) )
    $cookiehash = ‘xxxxxxxxxxxxxxxxxxxx’;

    Which sucks because I will have to update with every upgrade…. not really my goal… also, can’t log out of bbpress with this, but it works and after three days of struggling with this and a mu reinstall I will take what I can get….

    Is my solution a bad idea ? And where in the heck are you guys getting your mu cookies hash from ???????? :)

  • I ended up using hash from bbpress and moving the following to the very top of wp-config… as far as I can tell that is the only difference between what I was doing before with no success before… somehow I’m feeling like there’s more pain ahead. :)

    Moved to top of wp-config from bottom made the difference (i think):

    define(‘COOKIEHASH’, ‘xxxxxxxxxxxxxxxxxxxxxxx’);
    define(‘COOKIE_DOMAIN’, ”);
    define(‘COOKIEPATH’, ‘/forums/’);

  • Trace,

    I wonder why you and Erwin can’t find your WPMu cookie hash. As for the switch from WPMu to bbPress cookies, this may work, but you’ll have to see if it translates cleanly from the wpmu user tables—as you can see, I am out of my depth here? :)

  • All,

    Here’s n additional trick, if for some reason the Cookie value in the browser doesn’t work. I found that you can take the cookies that show up in the Manual bbPress Config within the Settings–>WordPress Integration tab, specifically the value in the $bb->authcookie = (without the wordpress_) and give it a try. It might work, it did for me.

  • That cookiehash part of your tutorial solved that problem for me. Thanks so much for posting this!

  • Hello

    I manage tho fix the problem with cookies – on logging out from the bbpress by editing bb_clear_auth_cookie like this:

    setcookie($bb->logged_in_cookie, ‘ ‘, time() – 31536000, $bb->sitecookiepath, $bb->cookiedomain);
    setcookie($bb->secure_auth_cookie, ‘ ‘, time() – 31536000, $bb->sitecookiepath, $bb->cookiedomain);

  • Stefan,

    Good looking out, I am going to test this shortly. Thank you!

Leave a Reply