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: « 9 [8] 7 6 5 4 3 2 1 » Show All

  1. 120
    Alberto Rodriguez

    I downloaded this plugin long time ago and worked like a charm. But with the new versions comming, it stoped working.

    To get it back to work, you have to replace the string “add_management_page” (without the quotes) for “add_options_page”. And that would be it.

    I renamed the plugin version as 1.2.a. Got it working on a privated blog.

    You shuld definetely upload this plugin to the WP repository.

  2. Minor point in documentation is that the menu shows up under “Tools”
    on Wp side bar, not “Settings”. Look for it there.

  3. i have install this dd-import-users plug(2.9.2 version) in successfully every thing is ok but getting following error message when trying to login by newly created user as per your direction format
    You do not have sufficient permissions to access this page.

    please asap help some one.

    Thanks,

    Dillip

  4. 117
    Trip

    Incompatible archive PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

    I renamed the txt php, and got this

  5. 116
    Joe

    Post # 115 is now solved. This script is working fine on MU 2.8.4a.
    Thanks to the developer[s].

  6. 115
    Joe

    Installed on WordPress MU 2.8.4a successfully. However have no luck in importing or pasting directly. See below….

    
    Errors!
    # Invalid email address: Username|Firstname|Lastname|first_last@yahoo.com|Subcriber|
    # Invalid username: Username|Firstname|Lastname|first_last@yahoo.com|Subcriber|
    

    Anyone has any success using this script on MU 2.8.4a? What causes the above errors? Thanks.

  7. I tried to run this plugin today. The email is not being sent to the newly created users (alerting them of their new username and password). Is this disabled by default or do I need to add something to the file to trigger the email notifications?

    Thanks in advance for your help.

  8. One more thing, in response to Jody post #106… What I do to get the bars is to import cvs file into text editor then export back out into word, do a find-replace (commas for bars) and then export back out into text file.. I know the system says you can override your default but you have to remember to do this every time you import and because the role import is being overridden I have to import by role ( I am using worpdress as a classroom management system for a large class (200 users) and am breaking them into teams of six.. roles=team designation and for specific private forums)

  9. I am using the plug in with 2.9 wordpress and works fine. However, when activating the plug in it disables some navigation and other mass changes, such as verifying users and the ability to move widgets into side panels. So I have to activate the plug in, import my users and then deactivate in order to regain all the navigation updating capabilities in wordpress. Lastly, the role I insert into the import file is being overridden by the drop down selection box on the plug-in panel.

  10. Hi: Your plugin is great. I have extra, custom User fields like City, State, Phone, etc.,etc. I’m using a plugin called Cimy User Extra Fields to generate these extra user fields. Is there a way I can populate these extra user fields using your plugin? Thanks! Mitch

  11. After import every user, it sends two emails, one to user, another to admin. I found code line which send email to user. How can i disable admin notification email for every user because i am going to import about fourty thousands users

    Thanks

  12. 109
    WWolf

    Small, but nice plugin; works very well and efficiently! Thank you very much.
    But: Could you configure it in such a way that the “Subscriber” – and not the “Administrator” – is specified as the default role in case no role is specified?
    Many thanks, WWolf

  13. 
    Hi,
    
    I have installed your plugin by renaming it to php and copying at the location specified by you. The plugin has been activated but it still does not show at "Settings" page in dashboard.
    
    My blog which in which ddimport is installed is:
    http://alrahmanpnp.com/blog
    
    I have another blog at http://islamicdepot.wordpress.com where i wish to install once i succeed in doing so.
    
    Thanks and regards
    Shahid
    
    

  14. Hi,

    I have installed your plugin by renaming it to php and copying at the location specified by you. The plugin has been activated but it still does not show at “Settings” page in dashboard.

    My blog which in which ddimport is installed is:
    http://alrahmanpnp.com/blog

    I have another blog at http://islamicdepot.wordpress.com where i wish to install once i succeed in doing so.

    Thanks and regards
    Shahid

  15. 106
    Jody

    OK, I may be an idiot, but I’m trying to figure out how to get a list of names and emails which is now in a .csv format into the proper format required for this plugin. Just how is this done? Between the instructions of “Enable the plugin” and “Use it” there is a bit of a knowledge gap for me. The plugin requires the proper formatting, but how do you apply it to a .csv file?

    Please, a step-by-step explanation for those of us who need it would be welcome!

Pages: « 9 [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.