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. Great plug-in! The one addition I’d love to see is the ability to import additional fields. I’d like to import the users description field (and also address and phone number, which I have via the Extended Profile plugin).

  2. This plugin has been tested, and works, with the latest release of WordPress – 2.8

    To answer a few questions:

    - I have no idea how many it can handle at once to be honest – I have not ever tested it. The main issue would be script execution time, since depending on the server config, a PHP script will only run for so long before stopping (for security reasons), so it really just depends on the config, and speed of the server.

    - As far as security, it is just as secure as anything else in the admin panel – you have to be logged in as admin to use it

    - This plugin does not handle ecommerce, paid subscriptions, etc. You would have to find another plugin to handle all that, and a plugin that handles paid subscriptions would already handle user creation itself.

  3. Well, I solved (with quite a bit of research) the errors we were getting in the Dashboard and site: Warning: session_start() [function.session-start]: Cannot send session cache limiter

    I eddited your script, and removed all blanc (spaces) before the two tags: and i made sure they were all at the beginning of a line.

    As i am new to php, this syntax issue is not totally clear to me, but one thing is clear: now the plugin runs without conflict with the other plugins or 2.8 apparently.

    Thanks, it is saving me a lot of work.

  4. 87
    Olek

    The password is not working.
    It’s always send e-mail with generated password.
    I want to use old password from the previuse system :(

  5. I am running version 2.8 of WP, and i am getting the following errors:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/thewood3/public_html/wp-content/plugins/Users-Import/Dagon Import users modifed Rob.php:320) in /home/thewood3/public_html/wp-content/plugins/wp-e-commerce/wp-shopping-cart.php on line 166

    Warning: Cannot modify header information – headers already sent by (output started at /home/thewood3/public_html/wp-content/plugins/Users-Import/Dagon Import users modifed Rob.php:320) in /home/thewood3/public_html/wp-content/plugins/sidebar-login/sidebar-login.php on line 258

  6. 85
    Carey

    Hi,

    I like the script and am trying to use it to maintain our membership. I receive a list each month with active users and while the script is great at adding the users, I would like to be able to delete users that are no longer in the list. Basically syncing each month.

    I am willing to make a donation or pay.

  7. 84
    fluco

    I love the Plugin but I’ve realized that it doesn’t apply the Dashboard Blog assigned in options. If I manually add a new user through the WPMU interface then the Dashboard Blog is assigned. Any ideas on how this can be fixed?

  8. Hello, this looks like a great plug-in. I’m wondering if there is a way to export this information, too.

  9. Found it here /wordpress-mu/wp-includes/pluggable.php line 1125

  10. Just wanted to thank you — worked great on my buddypress/wordpressmu install!!

  11. 80
    Pablo

    Thanks a lot for the pluggin.
    Still don’t try this, but have one question.
    Can it be confiured to don’t sent an e-mail.

    I need the users to be added to the school wordpress, but I have to sent the information on my own.
    Can this plugin only add the user, assword, and role?

    Thanks

  12. Try again and count the spaces without info
    Regards
    Sebastian

  13. Ok..I tried this manually last night. The new users were added but an email was never sent out. I wanted it to be automatically generated? I left in the separators but put nothing in the space. I obviously left something out? This is what I used.

    username|firstname|lastname||email|

    Ideas? Did I do this wrong?

  14. This looks like it will be exactly what I need. I actually got it installed it seems to be working. I will be doing a test tonight. Thanks!

  15. Great plug-in and almost perfect for my needs. I added modifications to 1) not email the admin the new user information, 2)provide an option to turn off the email notice to the new user 3)and provide an option to add some text before the username/password in the email. I posted the code here: http://rodeworks.com/technology/wordpress-batch-import-users/ . I hope you find this useful.

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.