• I am trying to copy users from 1 site and add (not replace) them to the users on another site.

    Most plugins either do not export\import passwords or malfunction entirely.

    I did search the forum, but could not find a solution that still works. If you have seen a solution on here that is still current, PLEASE refer me.

    The solution does not need to be a plugin. I can use phpmyadmin if necessary.

    Suggestions???

    THANKS!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Marius L. J.

    (@clorith)

    Hi,

    To use phpMyAdmin both sites need to have the same secret keys (the ones defined in your wp-config.php file).

    I don’t know of any existing plugins that handle this transfer for you, but I can think of a few ways to achieve it.

    Could you describe a scenario where you need this duplication of users to us, as that would help guide you in the right direction?

    Thread Starter justravis

    (@justravis)

    We had 2 blogs, but decided to stop posting on 1. We want to combine the users on 1 site without changing the design.

    Does that answer your question?

    Moderator Marius L. J.

    (@clorith)

    Indeed it does.

    By default, you can’t do this, because the password salts between two sites are almost definitely going to be unique, but if you know some PHP you can create a temporary solution for your users, but there are potential pitfalls you should be aware of.

    If you move the users, remember to also move the wp_usermeta content for the users, keeping in mind that the ID numbers will not be the same on the new site.

    Once you’ve imported the old users and their usermeta content, you’ll want a plugin for user logins, hook into the user authentication, if the user exists, but password fails, re-define all the salt constants with your old ones, and re-test the password, if it still fails, just keep returning an error.

    If the password matches, re-set the old salt constants and update the users password with the same one they entered so they get the new salts.

    As you can see, it’s a bit of a convoluted approach, personally I’d reset users passwords, or ask them to re-sign up as you may have privacy concerned users being skeptical that their passwords etc just got moved to a new site they weren’t previously a member of, and that’s the kind of negative publicity that can become really dodgy 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Copying Users w/Passwords From 1 WP Site To Another?’ is closed to new replies.