Forums

Wordpress + bbPress + other (14 posts)

  1. pifantastic
    Member
    Posted 2 years ago #

    I have successfully integrated bbPress and Wordpress. I want to go a step further and integrate them with the rest of my site. Everything is set up as follows:

    mysite.com/root/
    mysite.com/root/wordpress/
    mysite.com/root/wordpress/bbpress

    I want to be able to use Wordpress authentication from the root/ of mysite. I can do this if I add the following to wp-config.php:

    define('COOKIEPATH', '/root/');
    define('SITECOOKIEPATH', '/root/');
    $cookiehash = md5("http://www.smysite.com/root);
    define('COOKIEHASH', $cookiehash); //define the hash

    When I do this, mysite and Wordpress share cookies, but it breaks bbPress. Is there a way to allow all three to share cookies?

    <3

  2. moshu
    Member
    Posted 2 years ago #

    Whenever I did a WP an bbpress integration I didn't have to mess with the wp-config file.
    Why do you have to? Explain..

  3. pifantastic
    Member
    Posted 2 years ago #

    The additions to wp-config.php aren't for bbPress. They allow mysite.com/root to access Wordpress cookies. I think. And when I edit wp-config.php, that's when bbPress breaks. I just need a way to share cookies across all three directories.

  4. moshu
    Member
    Posted 2 years ago #

    Well, to be honest, I can't follow you.
    There is a plugin to integrate WP and bbpress, so you don't have to reinvent the wheel...

    I have installed WP for one of my clients in a subfolder (wordpres) but it appears at the root due to this technique:
    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
    and I have bbpress in another subfolder (NOT under WP, but under the root) - and using the integration plugin it works perfectly.

    So, I don't really see what your problem is...

  5. pifantastic
    Member
    Posted 2 years ago #

    I think taking bbPRess out of the Wordpress directory and placing it at the same directory as Wordpress will allow all three to share the same cookies. I'll see.

  6. moshu
    Member
    Posted 2 years ago #

    I did NOT do anything in the wp-config file - the plugin does everything: the users of WP and the users of bbpress are shared and it places the cookies too.
    You are overcomplicating everything...

  7. pifantastic
    Member
    Posted 2 years ago #

    The problem is not bbPress and Wordpress. Those indeed work together perfectly. Its when I try to make a third location on the server share the same cookies. That is when things start messing up.

  8. moshu
    Member
    Posted 2 years ago #

    Obviously, that's not a WP issue to discuss in this forum. You should ask for help from that "third location".

  9. pifantastic
    Member
    Posted 2 years ago #

    You're right, trying to use WP cookies is in no way a WP issue.

  10. moshu
    Member
    Posted 2 years ago #

    Don't make me angry because I am known as the meanest person around here. I was trying to help you...

    Using anything WP in a third party application/script - is beyond the scope of this forum. Sorry.

  11. pifantastic
    Member
    Posted 2 years ago #

    Well now that I am removing bbPress from the Wordpress directory, I think you can help me. If installing bbPress to a directory that is not a subdirectory of Wordpress, how do integrate the two? From the documentation:

    If bbPress is not installed in a subdirectory of your WordPress install, you’ll probably need to adjust both bbPress’ and WordPress’ cookies to meet your specific requirements.

    So I don't know what those cookie adjustments are. What integration plugin do I need? The one I found just makes sure registrations are accurate between the two.

  12. moshu
    Member
    Posted 2 years ago #

    Honestly? I never bothered to read the text you quoted.
    I downloaded and installed this plugin:
    http://bbpress.org/plugins/topic/4
    and never looked back...

    I have to emphasize it again: it is only WP and bbpress. Yes, it shares the users db tabel but (I assume) it also shares the cookies since logging into WP you are logged into the bbpress froum, too. And vice-versa.

  13. pifantastic
    Member
    Posted 2 years ago #

    Okay, so I have bbPress and Wordpress installed to separate directories. They share the same database. Users in one work in the other. But a session in WP doesn't carry over to bbPress. Is the plugin supposed to make this happen?

  14. moshu
    Member
    Posted 2 years ago #

    It does in my install as I described before.
    If your cookies are supposed to do something else - don't ask me: I am just an "advanced" user and never bothered to code anything. However, when I post here a solution in 97% has been tested personally.

Topic Closed

This topic has been closed to new replies.

About this Topic