WordPress.org

Ready to get started?Download WordPress

Forums

Sharing user's over two blogs on same domain + Buddypress (5 posts)

  1. Connor
    Member
    Posted 3 years ago #

    Hi,
    I my domain is (www.utraz.com) and I am creating another blog which is in a folder on that domain (www.utraz.com/community), I would like to share the users between the two databases... I've added the code below on my community folder blog, this will not allow me to access the admin panel and informs me I don't have access.
    define('CUSTOM_USER_TABLE', 'wp_users');
    define('CUSTOM_USER_META_TABLE', 'wp_usermeta');

    I tried adding the blog on my main domain but received some 'string error' so I reuploaded my backup of wp-config.php

    I checked the information on the MYSQL database and the correct names are there and have updated to wpxx_ which is the community blog.

    I am stuck now and don't know how to fix it...

    BUDDYPRESS ISSUE...
    If you check out my community blog (www.utraz.com/community) and go on one of the groups or activity's it will take you to the main domain (www.utraz.com) is there no way to keep all Buddypress plugin items and pages on the community blog.

    Thank you for any support if you can help it is greatly appreciated, I've been trying for hours now and really stuck on this.

  2. BuddyPress would need you to have used MultiSite. I don't believe you can do that with separate DBs.

  3. Connor
    Member
    Posted 3 years ago #

    @Ipstenu there is only one database between the two websites, preferably I would want to completely remove BuddyPress from the main domain

    Thanks for suggestion

  4. One DB, but a set of separate ... tables, right? Essentially they're two separate apps sharing the same DB but with different prefixs, which for all intents and purposes, makes them separate.

    I would like to share the users between the two databases

    the BEST way would be to make your main install MultiSite and then make a subfolder install for your community site.

    Alternately, you'll need something like WP-Hive to merge the back ends.

  5. templs
    Member
    Posted 2 years ago #

    Defining user tables in wp-config is not enough.
    You need solve trouble with cookies and prefixes for users and admin.

    Here is solution for separate WP 3.3.1 installations.

    I didn't checked it for buddypress yet.
    I'm going to find solution for WP + BP too.

    But my first idea is to set BP as main site. Other WP installations are secondary.

Topic Closed

This topic has been closed to new replies.

About this Topic