Skip to:
Content
Pages
Categories
Search
Top
Bottom

Site integration automatic login?

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m having the same problem! After integrating, I see how the “test user” I created shows up in both admin consoles. However, whether I login to wordpress or bbpress first, the login does not carry over to the other when navigating, which forces me to login twice. I followed all the steps, which also inlcuded adding the following to the wp-config.php file…

    define(‘COOKIE_DOMAIN’, ‘*******’);

    define(‘COOKIEPATH’, ‘/’);

    The only thing that comes to mind is a “minor error” that I received after walking through the “successful install” of bbPress…

    Duplicate key name ‘user_nicename’

    >>> User tables will already exist when performing a database integrated installation.

    I’m wondering if this is the problem. If so, I’m not sure how to fix it. : Can someone help?

    Adding

    define(‘COOKIE_DOMAIN’, ‘*******’);

    define(‘COOKIEPATH’, ‘/’);

    to both wp-config and bb-config fixed this for me.

    dgallinat-

    I added it to both and the login still doesn’t sync.

    Do I need to do anything with this in the bb-config.php file?

    /* Stop editing */

    if ( !defined(‘BB_PATH’) )

    define(‘BB_PATH’, dirname(__FILE__) . ‘/’ );

    require_once( BB_PATH . ‘bb-settings.php’ );

    ?>

    Ok. I figured out how to get the single login working for both bbPress and WordPress…

    I did understand the Function part of the setup.

    I made sure the bb-config.php file looked like this.

    if ( !defined(‘BB_PATH’) )

    define(‘BB_PATH’, dirname(__FILE__) . ‘/’ );

    require_once(‘path/to/wp-blog-header.php’);

    require_once( BB_PATH . ‘bb-settings.php’ );

    my site is http://www.picbi.com, so do I add to wp-config and bb-config: –

    define('COOKIE_DOMAIN', 'http://www.picbi.com');
    define('COOKIEPATH', '/');

    sorry im not that familiar with cookies and how to work them

    ????????

    I hadn’t read the guide on merging with wordpress – I am building it into a CMS built for a client.

    I had already adjusted pluggable.php instead of simply editing bb-config and adding the cookiepath, d’oh!

    I actually have a working solution now. Instead of ussing about with automatic login the main website can generate a cookie that BBpress likes. I did have to modify wp_validate_auth_cookie and wp_generate_auth_cookie to include my own hash and adjust the config as pointed out above but otherwise everything is unmodified… so far!

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