• Resolved progresst

    (@progresst)


    Is there a plugin available to import a list of new users via a csv file to the WordPress users database as a contributor?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    WordPress doesn’t have any way to do this, and I’m not aware of any plugins to do it either. However, if you connect to the database via some other tool like phpMyAdmin, you might be able to create your entries in the wp_users table that way.

    Thread Starter progresst

    (@progresst)

    Thanks Otto, actually hacked one out based on another similar plugin out there.

    Here is the script and description:

    I was having a hard time finding a plugin to import a delimited user file into the WordPress Users table. Luckily I stumbled over the Dagon script that allowed insertion of username and email but it still autogenerated the password when I needed to keep the password in my original text file. I hacked the script up to disable the hash password generation and added the password field to the import and it works great on WP 2.3.2. I am uploading the .txt file. Rename it to PHP and upload to your plugins directory, activate and you should be good to go.

    Download Script.

    Does is this work in 2.5?

    I want to use Progresst’s plugin above….

    But I want to feed it the information (the “delimited user file”) FROM my old WordPress 2.5 that has it’s own database.

    In other words I created a new blog, new directory, new database, and I want to migrate my user table from the old database, to the new database (that happens to have a different table prefix).

    How do I first EXPORT my old Users, so that I can use this plugin to Import them?

    OR, can I do this using phpMyAdmin (like Otto42 hinted)? I have access to phpMyAdmin, but I don’t know where to being “copying” and “pasting” if that’s possible with User Tables.

    Hi,
    i have tried progresst plugin in WP 2.6.2 and it doesn’t seem work.
    Anyone has the same problem?
    There is a way to add also name|surname?
    Thankyou

    I have auto-solved first part of mine problem ??

    Line 179 must be:
    wp_new_user_notification($user_id, $ud['password']);
    and not
    wp_new_user_notification($user_id, $password);

    But nothing about name|surname.

    @progresst: Thank you for the script.
    @profago: Thank you for the fix.

    The plugin works like magic! I’ve been looking for this! Thanks again!

    Peter Butler

    (@peterebutler)

    One last piece –

    There is a little bug in the script – the username is also set as the password, instead of the password.

    To fix it, change line 110 from:

    $u_n = trim($u_n);

    to:

    $u_p = trim($u_p);

    Thanks for the script guys! It was just what I was looking for. Who knew wp passwords were so tricky?

    I’ve just make some big updates to the script mentioned above.. it was a great script to start working with. I’m no PHP expert.. hell, I wouldn’t call myself a novice sometimes.. but the changes I’ve made have been quite extensive (but simple).

    See the write up of the changes on my blog, rather then reposting it all here..

    The summary of changes are you can now include first name, last name, password and user role

    https://www.uk-experience.com/2009/01/26/wordpress-mass-account-import/

    Enjoy, send me comments on my site about the script please, can’t be sure how often I’ll get back to check this forum..

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Import Users Plugin?’ is closed to new replies.