Forums

how to have unique ID for multiple installs (3 posts)

  1. ravemedics
    Member
    Posted 3 years ago #

    Hi there,
    I am expanding my website, and so, I need 2/3 individual wordoress blogs which will share a similar theme.

    I know of WPMU and that you can have as many blogs as you want that way, but I'm not sure it has what I need.

    When my users 'register', is it possible that that ONE time, on whichever install they register on, will give them their unique password and username, which can then be used without re-registering, on my other wordpress installations?

    Thanks!

  2. stvwlf
    Member
    Posted 3 years ago #

    Hi

    Here are some brief notes on how to share a user table between more than one installation. All installations must be in the same database, using different table name prefixes. The prefix is set in the wp-config.php file.

    Share users between two blogs
    Put them both in the same database with different prefixes. Then choose one of them to be the master user table. Then do this in both wp-config.php files:

    define(CUSTOM_USER_TABLE,'wp_users');
    define(CUSTOM_USER_META_TABLE,'wp_usermeta');

    Replace the wp_ with the prefix you want.

    In other words, you designate the user table from ONE installation as the master user table which will be used by the other installations instead of their own user table. This PHP code must go in the wp-config.php file in all the installations that you want sharing a single user table. You can have more than two installations set up the same way. Their tables must all be in a single database however.

  3. ravemedics
    Member
    Posted 3 years ago #

    Wicked stuff!
    Thanks for your help pal!

Topic Closed

This topic has been closed to new replies.

About this Topic