The MU forums have moved to WordPress.org

BBPress & Wordpress Mu Cookie Sharing (10 posts)

  1. rcraddock
    Member
    Posted 16 years ago #

    Hi Guys,
    I’m trying to integrate Wordpress Mu (1.2.5) with BBPress (V 0.8.3) and have had success in following the instructions http://bbpress.org/blog/2006/09/simpler-integration-with-wordpress/ up to the cookie integration. I’ve got the forum running in a subfolder of the WPMU install and have separate databases with bbPress using the WPMU user information.

    I think my problem is due to the fact that WPMu cookies contain:

    Domain: .domain.tld
    Path: /

    Wheras BBPress cookies contain

    Host: domain.tld
    Path: /

    The rest of the cookie is the same for both. I think the .domain.tld can be explaned by the fact that the domain uses wildcard DNS (for Wordpress Mu subdomains to work). However I cant figure out a way for the two systems to create identical cookies.

    Any help would be greatly appreciated!

    Regards,

    Richard

  2. rcraddock
    Member
    Posted 16 years ago #

    I have now managed to get the cookies to appear identical - apart from expiry date. However the logins are not integrated yet.

    Any ideas appreciated!

    Richard

  3. nolageek
    Member
    Posted 16 years ago #

    Did you ever find a fix for this? WPMU and bbpress are fighting me. I keep getting errors when I try to add forums or delete posts. "You do not have permission to do that." (this is in bbpress) It seems to be an iusse with AJAX in bbpress, but no one really knows for sure.

  4. Trent
    Member
    Posted 16 years ago #

    What version of bbPress are you using? I have no problem with integration from the last stable release of bbPress. I will give you my example without having to change cookies around:

    base WPMU site: onvertigo.com
    base bbPress: forum.onvertigo.com

    I just have the wordpress install information as http://onvertigo.com/ for both entries and it works fine for me.

    Are you trying to integrate functions as well or just logins? Is the paths subdirectories or subdomains?

    Trent

  5. nolageek
    Member
    Posted 16 years ago #

    WPMU is using subdomains, but not my forum. could that be an issue?

    WPMU: geekdc.com
    bbpress: geekdc.com/forum

    bbpress config.php

    $bb->usercookie = ‘wordpressuser’;
    $bb->passcookie = ‘wordpresspass’;
    $bb->cookiepath = '/';
    $bb->cookiedomain = '.geekdc.com';
    $bb->path='/forum/';

    bbpress is all kinds of screwed up. cant add new forums or modify/delete posts.

  6. Trent
    Member
    Posted 16 years ago #

    If you don't define usercooke, passcookie, cookiepath and cookiedomain it won't work either? I had /forum/ for a little as well there and ended up changing it to the subdomain afterwards. I just found that permalinks wouldn't work correctly for me since WPMU was always getting in the way.

    Trent

  7. Trent
    Member
    Posted 16 years ago #

    Could it be the "www" that is screwing it up? I went to geekdc.com/forum and redirected me to http://www.geekdc.com/forum/. The "www" doesn't work well with WPMU.

    Trent

  8. nolageek
    Member
    Posted 16 years ago #

    that could be it. wonder why it's doing that. Im not telling it to. heh.

  9. nolageek
    Member
    Posted 16 years ago #

    took care of that with:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
    RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]

    But still haveing the crazy AJAX Problems.

    I think it's similar to this:

    http://sparepencil.com/code/ajax-referer-fix/

    but it's with bbpress, not wpmu.

  10. Trent
    Member
    Posted 16 years ago #

    You should ask Sam or _ck_ about it in #bbpress on freenode as they might even have a fix straight away nolageek.

    Trent

About this Topic