Skip to:
Content
Pages
Categories
Search
Top
Bottom

One WordPress Vs Multiple bbPress

  • So, here exactly What I want,

    Suppose I’ve planned to run multiple discussion boards, and I’m using

    http://zptest.info/ ( WordPress )

    http://zptest.info/students/ [bbpress 1]

    http://zptest.info/teachers/ [bbpress 2]

    http://zptest.info/management/ [bbpress 3]

    I’ve done:

    -1: Shared User Integration ( Works )

    -2: Shared Database Integration ( Works )

    -3: Shared Cookies Integration (Not Works, that’s what I want)

    I’ve followed all instruction from bbpress Integration tutorial

    Now cookies not works, you can test it at zptest.info

    user: test

    pass: test

    (I can send also admin’s or ftp detail, if anyone really interested)

    cookies are conflicting, sometimes not logout from other boards.

    Suggestion:

    I’m hopping there should be a plugin, just for set cookies for multiple boards in same domain.

    People just do, user integration, and database integration.

    then install ( cookies plugin ), that’s all,

    Come on, _ck_, you can do it, :-)

    Thanks

    KB

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

  • _ck_
    Participant

    @_ck_

    You don’t even need a plugin for this.

    You just need to fix your cookie settings and it will work instantly.

    Set all cookie paths to the root /

    and make sure they are all using the same key/hash which is likely the problem.

    You didn’t say which version of bbPress you are using, it appears to be 1.0.2

    I don’t think I’ve ever bothered to figure out all the new variable names under 1.x which is why you can’t find them around here.


    Ashfame
    Participant

    @ashfame

    yes _ck_ is right

    integrate as many installs as you want. be it on sub-domains or sub-directories

    I’m using WordPress 3.0 and bbPress 1.0.2.

    Set all cookie paths to the root /

    Can you please explain little bit more about it?


    kevinjohngallagher
    Member

    @kevinjohngallagher

    In your bb-config.php file put this code:

    define( 'COOKIE_DOMAIN', '.your-domain-name.com' );
    define( 'SITECOOKIEPATH', '/' );
    define( 'COOKIEPATH', '/' );

    If you’re using WordPress, make sure you put the same in the wp-config.php too.

    Now, I know this isn’t supported or well-liked or even neccessary these days (was it ever), but I still put this legacy code into my bb-config

    $bb->wp_siteurl = 'http://www.my-wordpress-url.com';
    $bb->wp_home = 'http://www.my-wordpress-url.com';
    $bb->wp_table_prefix = 'wp_';
    $bb->user_bbdb_name = 'my-database-name';
    $bb->user_bbdb_user = 'my-database-username';
    $bb->user_bbdb_password = 'my-password';
    $bb->user_bbdb_host = 'localhost';
    $bb->custom_user_table = '';
    $bb->custom_user_meta_table = '';
    $bb->authcookie = 'wordpress_';
    $bb->cookiedomain = '';
    $bb->cookiepath = '/';
    $bb->sitecookiepath = '';
    $bb->wp_table_prefix = 'wp_';

    Does it make any difference? I doubt it. But with all the integration stuff over the years, I’ve become a big fan of covering the bases.

    @kevinjohngallagher thanks dear, I’ve done it already, its a part of integration, But I really surprised why its won’t work for me??

    but I’m curious that may be _ck_ tell me new thing.

    OK, I’m going to disclose my config files and cookies, check it dear buddies….

    for wordpress,

    http://pastebin.com/embed_iframe.php?i=hPpMiDyZ

    for zptest students

    http://pastebin.com/embed_iframe.php?i=jcS2377M

    If you need more things, I’ll share it..I really want to fix it….Thanks


    kevinjohngallagher
    Member

    @kevinjohngallagher

    Well I can see some things I’d change. Will they make a difference? i don’t know, probably not, but again, they’re what I use.

    (I wish the search function here was half decent so I could find the post I went into this in detail in…)

    1) Get your authentication Keys from https://api.wordpress.org/secret-key/1.1/bbpress/salt/

    2) Copy your WordPress authentications into your bbPrefig file

    define('AUTH_KEY',         '5G#If&OQrV:MfrjuU2;NKhfw|Z:|iU>@hw^LLTxv|~8KPC9S;-+r#J&|T=DS%#X8');
    define('SECURE_AUTH_KEY', 'u.p|C]A*s*@M%VGr4;_Cc-*d|I:QjTT&p6kcTL:^X+tzUT)7k-S]h)q^c|||$uy;');
    define('LOGGED_IN_KEY', 'xA+j,OZKD_*, 6|Jb7C6rS*3(oT4{-Y)R.E/|!xNtb8,GYzp,X-?i[HtTRE|81h=');
    define('NONCE_KEY', '4h035-4lx6-W.>dtZzRtA=XA+&G5v)llX[B>4--:>hX0h:Ey$afw|&[r_1zHQnZ^');
    define('AUTH_SALT', '+/poE0c>eRr#l54-r@:S.4HD^s3Zr%w-S;s++d,[ku5#Aj{N6g6T;.P>/UB8bIUn');
    define('SECURE_AUTH_SALT', 'ck.^(0_T5tON$lTy>dkPZ#]1wZ~yKBkE0m>60H_FRG r6yXd#E|dhJAVvPDu5Kf.');
    define('LOGGED_IN_SALT', 'Fz^)*aj<U[RxO3A][1K=pXX6a-4-<R7=[fe$1[hT5d!e-_onpNrk^t|j%!~a+;KP');
    define('NONCE_SALT', 'TEdXdR+g]&YY9/YtZX^[,e{_U+^fSGcgt JqKB<[sh:3Jg<7RG~f_.xLX(9e5FXV');

    define('BB_AUTH_KEY', 'f@X, B|4rcQ?sv#[]q+x;r =KO{r}i<|h%0=?>!/f|0A#[qzh9pNWdnZR8XadkFH');
    define('BB_SECURE_AUTH_KEY', 'X0*%@*wpp(A[/(4RD(TWAnW7N[:gYBZ:@r}-z;w),|fptIbt5 Ro}8Tr?}-c-y+m');
    define('BB_LOGGED_IN_KEY', 'cbal+zxea.]|C!ZsWQ6}cKy+?!eSs?@(t)qCz=H*4CDrZlXoC+-X#[h5Hl37LU~/');
    define('BB_NONCE_KEY', '4{ZC+__k{]MPr[I{~q$Muta#XghduMPBRQvNZqFIm-~-4-DaH|vH$6W~)wD!^92X');
    define('BB_AUTH_SALT', '?v&+?5?vnXoIPuc&%OQMNN#QP_Xf&ZA0J:FO;tY:JdEjT5xt^k$,-q!XvVS,E)$1');
    define('BB_SECURE_AUTH_SALT', 'n(M15M~Y<qg(A!x8ov,7]:+HZ>q0ajV3!feD){dLPhn2upN?;fIRE.@~14xH?v!8');
    define('BB_LOGGED_IN_SALT', '{Lu=[hq;BCEu j>n[Ejv%]w-k y?$@*sK@VcB<7E)wR/mrUIGj%9@*Q>.v]P|~#x');
    define('BB_NONCE_SALT', '*9Dv~}=@+k<g-w$WIsEXdxULL0yz0D{]!9@HY/e$7Ru|^dv?QF$gy!}dcLIC>@5P');

    3. With no disrespect to that screencast, it is 19 months old, and we’ve had a whole new version of bbPress since then. For integration I always use http://wpbbpthemes.org/integration/ as a starting guide.

    4. Check you’re not using “www” anywhere in the URLS you specify in the database, or that you installed any of the bbPress/WordPress systems while using “www”.

    kevinjohngallagher two more things?

    why not no need of “www”? reason?

    will exact formate be

    https://bbpress.org/?

    or

    bbpress.org (even no need of http:// ?)

    Second I was thinking there was no need of authentication keys from https://api.wordpress.org/secret-key/1.1/bbpress/salt/ because we copy keys/hashes from wp-config into bb-config, So I’m confuse why we need two separate authentications for both wp and bbP.

    Request:

    Can you please create two demo files for wp-config.php and bb-config.php with authentication keys, and make live them to pastebin.com & paste links here?

    I’ll be very thankful,

    Cheers


    kevinjohngallagher
    Member

    @kevinjohngallagher

    why not no need of “www”? reason?

    We’ve known that using “www” during installs has caused issues in the past. Especially if you used “www” for one isntall and not the other.

    Cookies are/were (been a long time since i looked into this) using the full URL so “www.bbpress.org”‘s cookie would be different from “bbpress.org”‘s cookie if you didn’t specify.

    99/100 it makes no difference. 1/100 it does :)

    .

    .

    You are right that there was no need for the salts when bbPress1.0 was released, but we’ve had 3 WP releases since then. I find its better to be safe than sorry.

    So I’m confuse why we need two separate authentications for both wp and bbP.

    In theory: You do not.

    In Practice: It doesn’t hurt at all.

    Request:

    Can you please create two demo files for wp-config.php and bb-config.php with authentication keys, and make live them to pastebin.com & paste links here?

    Sure, i’ll do that tonight when I get home.

    Am off to see Toy Story3 in 10 mins.

    ok kevinjohngallagher, I’ll wait, till then I’ll try for new integration with no “www”.

    Sure, i’ll do that tonight when I get home

    @kevinjohngallagher what about Toy Story3? I think that will be really interesting so that you’ve forget abt this topic :-)

    I’ve tried another integration with no “www”, it works 50%.

    Now I just can’t access my bb-admin and not able to logout from wp admin :D,

    I’ve installed _ck_ plugin fixed admin access, but its not working in this situation. I’ve find other ways from bbPress Search but still not solved. any idea?

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