• Main URL: (membership directory site) https://vitalitydirectory.com = BuddyPress 1.8.1, S2 Member 130816, and WP 3.6 – This is the registration site that contains the user profile that consists of both S2 Member and BuddyPress fields.

    To see main site’s function: https://vitalitydirectory.com/locator and use zip code search: 33756 to see the directory and select a member to see the profile.

    Did NOT want members to use WordPress for blogging. Our WordPress theme is NOT compatible with the BuddyPress Plug-ins for blogging or forums. (Wanted blogging from a tab within their profile, but theme doesn’t support)

    Here is what we have done so far: Created a Sub-domain (for member blog) https://blog.vitalitydirectory.com = BuddyPress 1.8.1, S2 Member 130816, and WP 3.6.
    Due to customization, can’t use WPMU. (this site is currently secured)

    Want the user to either login to main site and have automatic access to blog on sub-domain or IF they have to also login to blog on sub-domain, to be able to use same login from main site.

    Do NOT want duplicate profiles in each, but do want the blog post to link back to member profile page on main site.

    Each install has its own database.

    QUESTION: Can we share the member information from our MAIN site by pointing our sub-domain site to some of the tables in the main site database? How?

Viewing 1 replies (of 1 total)
  • In the blog site you can almost certainly make a second wbdb object that points to the main site’s database. I don’t see an easy way to switch the global $wpdb over to the second wpdb object just before user data is queried, and switch it back again just after, but I didn’t look very hard.

    For the shared login, there are several pluggable functions that you could look at modifying. I’d try either to make the main site set a second cookie that logs the user in to the blog site, or make both sites use the same cookie.

    As the problem is really a theme problem, I wonder if it would be easier to use one site and switch themes.

Viewing 1 replies (of 1 total)
  • The topic ‘Sharing User Login on Multiple WordPress Installs (NOT MultiSite)’ is closed to new replies.