Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 1.2   Updated Thursday, February 19th, 2009 at 7:19pm

Import Users Plugin for WordPress

This plugin was created for people who need to easily add multiple users to their WordPress installation. Simply give it a list of usernames and email addresses, specify the role of the users (subscriber, author, admin, etc.) and it does the rest. It will automatically email each user and give them their randomly generated password, or let you specify one. It also has validation in place to make sure the usernames do not already exist, that the email addresses are not already in use, that the usernames are valid, etc. After it processes the information, it tells you how many were added, and upon error, gives you the reason why each failed.

Download

  If you have found this page useful, please consider donating. Thanks!

Changelog

  • 02-19-09 Version 1.2 – Updated modified version with contributions by Robert McKenzie (Thanks Robert!). Changes include the ability to specify a password, as well as first/last names.
  • 06-12-07 – Modified version by Nicholas LaRacuente added (download link above).
  • 05-03-07 Version 1.1 – Updated to take advantage of the customizable roles feature in WordPress 2.1. This update was contributed by Tom Ransom.
  • 08-06-06 Version 1.0 – First release.

Instructions

  • Download the above file, rename it from .txt to .php, and upload it to your plugins directory.
  • Enable the plugin.
  • Use it by going to ‘Settings -> DDImport Users’

Usage

The userdata is entered in the following format:

username|firstname|lastname|password|email|role
username|firstname|lastname|password|email|role
username|firstname|lastname|password|email|role
etc…

To clarify, that is one user per line, with a pipe character between the values. Extra whitespace and empty lines are trimmed automatically. Be sure your data is entered properly! If you do not want to assign a password, first name, or last name, just do not enter them. The field separators are still required. Example:

username||||user@domain.com|

After you have added your user data, you can choose the role for the users with the drop down box. The choices are: Subscriber (default), Contributor, Author, Editor, and Administrator.

If the password is not specified, one will be randomly generated. In either case, the password is emailed to the user.

Pages: « 8 7 6 5 4 3 2 [1] Show All

  1. Admin,

    Thanks for the reply. Perhaps I’m overtaxing the capabilites of the system?

    Have you any experience with the Mailing-List plugin?

    Thanks,
    Chris

  2. Chris: That is a decent number of users :) Did the plugin appear to handle it properly? It might not hurt to take a look at the database just to be sure.

    I have no idea if WordPress can even properly handle that many – do you know for sure? :)

  3. I’m having a little difficulty. I’ve just imported 3500 users and now my users page doesn’t display. When I go to the Users tab and click on “Users & Authors” I get an error in IE and Firefox wants to download the file. Any suggestions?
    Thanks, great plugin.

  4. [...] Test import users plugin. DONE [...]

  5. [...] Wordpress: Iscrizione di massa Passare da un vecchio blog* alla piattaforma WordPress non è mai totalemnte indolore anche perchè se non esistono script per importare automaticamente i dati da vecchio blog* a WordPress sono dolori ed è quel che è capitato al sottoscritto. Situazione reale capitatami: Problema 1: …archivi, post, categorie? Importare archivi, categorie, porst, utenti, da vecchio a nuovo blog basato su WP: con qualche stratagemma tutto tranne gli utenti sono stati importati. Problema 2: …e gli user? Nel vecchi blog avevo quasi 400 utenti iscritti e non potevo assolutamente fare una cosa manuale, mi avrebbe portato via una giornata intera. Ecco che chi cerca trova: il plugin in questione è Dragon Design Import User ed in un colpo solo ed in 10 secondi ho importato quasi 400 utenti. Sia chiaro che poi ogni utente dovrà recuperarsi la password con il classico link "Ho dimenticato la password…" vistro che poi viene generata automaticamente Per la forza di WordPress * = il "vecchio blog" era basato su bBlog e lo script che ho usato per importare da bBlog a WP lo trovi al seguente link: http://www.shaolintiger.com/2006/07/…export-script/ (passate da bBlog a WP1.5 e poi aggiornate all’ ultima versione stabile quest’ ultimo se no non vi importa i nomi delle categorie __________________ >>> Segnala il tuo Feed su Aquileia Linux Project La tua recensione GEO taggata Pinguino di Linux e Open Source [...]

  6. Marcus: It sounds like some whitespace got added to the top of the file (before the PHP declaration). I would try re-downloading it the plugin.

  7. Ôªø
    Warning: Cannot modify header information - headers already sent by (output started at /home/vietwa/public_html/wp-content/plugins/dd-import-users.php:1) in /home/vietwa/public_html/wp-admin/plugins.php on line 16

    I got the above message when activate the plugin, and can’t seem to import anybody. Please help! Thanks.

  8. Natalie: I suppose it might be possible. The current version, as mentioned, just uses a lot of the built-in WP functions that it uses when new accounts are generated, and I do not recall off hand if you can specify a password in that manner. It just autogenerates one and emails it to the user.

    Gary: Good to hear!

  9. 7
    gary feng

    Thanks, Admin. I found out later that it’s a problem with my PHP setup. It’s working like a charm now. Thanks so much!

    – gary

  10. What a great idea! I would like to try this for a membership site I’m creating. We use a membership management software that bridges the registrations over to the discussion forums. I’d like to use this to import the user info into the WP front end. Is it possible to import the existing password as well so we have the same login info all across the board?
    Thanks again

  11. gary: To test, just try to log in using one of the accounts you created. To send the messages, it just uses the built-in functions that WordPress itself uses when a new account is registered. You could try to register an account manually and see if you receive the email, since it should send it the exact same way.

    For the record, it does not send out invitations per se, but rather confirmations that the accounts have been created.

    Also, you do not have to enable anon users.

  12. 4
    gary feng

    one more question — do you have to enable anomynous users to sign up in order to run this plug in?

  13. 3
    gary feng

    Hi, great work. I installed on WP2 with no problem. But I don’t think my invitations went out, even though it says successful. I invited myself on another email account but never got it. My question is — what email service does it use and how do I know the email is sent out? I don’t see anywhere to config an email server.

    Thanks!

  14. IBloon: This script is automatic. It does not redirect the admin anywhere. It just imports the users and assigns everything itself. Of course you could go in manually afterwards and adjust things. Some new code would have to be added to allow you to enter the ‘about me’ text, since user metadata is stored in a different location than the basic information.

  15. Hey, I have a question. Could this be modified to accept an about me paragraph? I havn’t tried it out yet but I am assuming from your description that after you do the whole “one person per line formatting” which gets their e-mail and sends them their password, it redirects the admin to a page that allows you to assign each new user their role. On that page how could I make it so that it also allowed me to edit each user’s about me paragraph? Thanks

Pages: « 8 7 6 5 4 3 2 [1] Show All

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.