by Manoj Kumar

Bulk Import Members (Users) Plugin for BuddyPress Site

We wanted to provide seekers at Unstructure , with a better experience and a richer profile. Keeping this in mind, we decided to include Buddypress .

While the site has been configured with Buddypress, one of the tasks that was required was to migrate users from a standard wordpress installation to the new buddypress members format. On finding, no plugin or tool available to do the same, I decided to write one.

The following defines how the plugin works, let me know your thoughts on this :)

1. You can import UserName, FirstName, Lastname and Email. Where FirstName + LastName becomes FullName for BuddyPress

2. Delimit your data with “[|]” (pipe sign) like username|firstname lastname|email@domainname.com

3. Paste your data in the given box

4. Choose any of the 3 Email notification options

5. Click on the import user button

Download plugin from here (Version 0.1)

Download For New BuddyPress 1.0.1

Categories: BuddyPress - Plugins
baron at 22:24 on 24 March 2009

Works great, thank you

Kyle at 02:45 on 26 March 2009

hey, great plugin!

this saved my day…

questions for you

I’ve changed the Full Name (buddypress) field to be just “First Name” and added an additional field for “Last Name”

how do I seperate the new user data to reflect that?
like this?
username|firstname|lastname|email@domainname.com

please email me
(thanks)

Kyle at 02:57 on 26 March 2009

upon activation of this plugin, no matter how i enter the user info,

I get “1 Error” & “Processing has been complete”

example:
username123|firstname lastname|email@emial.com

example:
username321|firstname|lastname|email@emial.com

both show 1 Error and processing has been completed…

what is the 1 Error ?

Manoj Kumar at 11:04 on 26 March 2009

Hi Kyle,

There is no need to rename or add any additional field to BuddyPress. Please rollback the changes to default installation and try again.

I am wondering how you have changed the Full Name (BuddyPress) field? Are you using RC1 or trunk?

Please try copy and past following line
newtestuser|Firstname Lastname|email@yourdomainname.com

Dheeraj at 14:31 on 26 March 2009

It gives an error

1 Error

Processing has been complete

Though it shows Processing has been complete it does not add the user

Manoj Kumar at 15:07 on 26 March 2009

@Dheeraj

Try copy and paste line from the top of the given box. i.e. username|Firstname Lastname|email@yourdomainname.com

Processing has been complete means that records submitted by user are processed with number of errors or number of records successfully imported or both.

Can you please provide me record(s) which you are importing?

Oliver at 16:53 on 26 March 2009

I get this error message when activating the plugin:

Warning: require_once(bp-core.php) [function.require-once]: failed to open stream: No such file or directory in /www/wpmu/wp-content/plugins/bulk-import-members-users/bp-user-import.php on line 29

Manoj Kumar at 19:19 on 26 March 2009

@Oliver

You have pasted plugin in wrong directory. Please move to mu-plugins directory

It should look like :

/wp-content/mu-plugins/bp-user-import.php
/wp-content/mu-plugins/bp-user-import/
/wp-content/mu-plugins/bp-user-import/bp-user-import-functions.php

There is no need to activate it.

Samrat Kakkar at 19:23 on 26 March 2009

Good plugin.

Manoj Kumar at 19:24 on 26 March 2009

Thanks! Samrat

Kyle at 01:58 on 28 March 2009

Got it working! thanks again…

I would like to pay you to customize this for me…

instead of just:

username|firstname lastname|email@email.com

i want to add additional fields/xprofile fields that can be inported

like this:

username|firstname|lastname|extra_field|email@email.com

the Extra_field would be a xprofile field

I’ve got $25-$100 for you if you can do this asap

please email me… I will also be posting this to the buddypress forum

thanks!

Manoj Kumar at 10:42 on 30 March 2009

@Kyle

I am working on it. May be in couple of days I will release a new plugin for users who wants to import more fields.

Thanks

Johan at 18:39 on 3 April 2009

Hi Manoj

I noticed that my users on mu that joined before I had BD are not *available* on BP. For example I know the user exist but when you search for a user it says that you user without an update profile will not be found.

I then got your plugin working. Thanks. To import my current mu users to become bp users on the same site.

Can I use your plugin to do that?

Manoj Kumar at 10:19 on 7 April 2009

@ Johan

For that you have to recreate those users through my plugin.

Alternatively whenever any user perform any activity they will automatically start appearing in search.

Sorry for the late reply (akismet marked your comment as spam)

wpblogger at 12:05 on 7 April 2009

ok,thanks.
I was tested this plug-in, if possible according to the user to import will be even better.

Manoj Kumar at 13:07 on 7 April 2009

@wpblogger

All suggestions are welcome!

Internet Marketing Optimization at 20:27 on 16 April 2009

Thanks a million….does this only work for previous wp users? I am trying to move a whole db of people from a directory (has those fields) over to a BP site…think it will work?

Manoj Kumar at 10:16 on 17 April 2009

@Internet Marketing Optimization

It will work seamlessly if you have same fields.

Even if you want to import more fields you can use my other plugin User Import for BuddyPress (All Fields)

Shelley at 01:00 on 25 April 2009

Do you know if there is a conflict with BP RC-2 and WPMU 2.7.1? I’m trying to figure out if the plugin needs an update or I’m doing something wrong.

Manoj Kumar at 01:22 on 25 April 2009

@Shelley

Sorry Shelley, I haven’t tried it yet on BP RC-2.

Will let you know soon.

Shelley at 19:40 on 26 April 2009

@manoj There have been so many sweeping changes between RC1 and RC2, I’d bet the plugin needs tweaking to reflect them. Specifically the directory changes could easily throw off the code.

Macopoly at 02:25 on 4 May 2009

Hi, I am so excited to find this plugin.
However I am trying to import multiple users but it is only importing one out of time.

This is how I have the data set:
username|firstname |email@domainname.com
username|firstname |email@domainname.com
username|firstname |email@domainname.com

etc…

Also, is there a way to allow capital letters in the username?

Thanks

Manoj Kumar at 11:24 on 4 May 2009

@ Macoploy

Thanks for using my plugin!

Time-out is something that is related to the server, please check your server settings, as far as plugin is concerned there is no limit to data import.

With regard to capital letters you can do this by hacking core buddypress code, but I do not recommend it.

Manoj Kumar at 17:30 on 4 May 2009

@ Shelley

I will upgrade it shortly on svn.

But you can make it work in BP v1.0 by commenting line no. 29 ie require_once( ‘bp-core.php’ );

it should look like

//require_once( ‘bp-core.php’ );

Levent Yilmaz at 02:48 on 12 May 2009

is there any update for BuddyPress 1.0??…thx for great work…cheers

Shelley at 19:24 on 12 May 2009

Is there any way for this plugin to circumvent the email address restrictions in the BP admin? I want to have open registration for certain email domains only (our University email) while still being able to import users without University email.

AJK at 19:45 on 18 May 2009

Can a person use this plugin for the standard Wordpress installation?

peter at 22:20 on 25 May 2009

i get the following error when i try to activate the plugin:

Warning: require_once(bp-core.php) [function.require-once]: failed to open stream: No such file or directory in /home/lpatucso/public_html/wpmu/wp-content/plugins/bulk-import-members-users/bp-user-import.php on line 29

?

Manoj Kumar at 22:37 on 25 May 2009

@peter

1. remove line from plugin require_once(bp-core.php)
2. Move all plugin files to mu-plugin directory, there is no need to activate this plugin

manoj at 22:49 on 25 May 2009

did that… uploaded to the mu-plugin dir. not sure what to do next. please explain? (sorry, im a nooby to wp)

peter at 22:55 on 25 May 2009

manoj,

Sorry… removed the line as requested suggested, uploaded to the mu-plugin dir. not sure what to do next. please explain? (sorry, im a nooby to wp)

Manoj Kumar at 22:59 on 25 May 2009

@peter

1. Login to wp with admin id
2. Follow this screen shot
3. test on username|firstname lastname|email@domainname.com values

peter at 23:14 on 25 May 2009

thats the problem… i dont have that… see my screen dump at:

http://www.dotcommissar.com/wpmu1.png

Manoj Kumar at 23:18 on 25 May 2009

Sorry Peter

This plugin will only work with wpmu + BuddyPress, currently you are using wpmu only :(

peter at 23:22 on 25 May 2009

BUMMER! ok… thanks.

CJ at 04:31 on 30 May 2009

Will this add the users to the wordpress MU user list? or just into BuddyPress? Not sure how that works. I need to be able to import a massive list of users into MU. I do have BP installed too.

Thanks!

Ed at 10:51 on 3 June 2009

How do I import users without a valid email?

Manoj Kumar at 11:03 on 3 June 2009

@Ed

Use something like 123@yourdomain.com

[...] you have any issue with this plugin, need help, or have any suggestions. http://manojkumar.org or [...]

Ella at 19:55 on 4 June 2009

Hi…! This rocks. You rock. Thank you for sharing and helping people out. I send you a virtual beer :)

Shelley at 18:25 on 9 June 2009

I just upgraded to BP 1.01 and when I did the import it didn’t keep the First Last info. The username and email address were put in the right places, but it used the username for the Full Name field. It was working before the upgrade. Thoughts?

Manoj Kumar at 18:43 on 10 June 2009

@Shelley

Thanks a lot for informing, I have made the changes to the plugin.

Please download it from http://manojkumar.org/wp-content/uploads/bp-bulk-import.zip

Shelley at 01:49 on 11 June 2009

Thanks Manoj, it’s perfect!

Ray at 23:29 on 14 June 2009

Hi Manoj, this plugin is going to be very useful!

In an older comment, you said that additional profile fields would be available to add to the delimited list.

Is this still in the works?

Ray at 23:33 on 14 June 2009

Okay, I see that you’ve already created a separate plugin for this over here – http://manojkumar.org/user-import-for-buddypress/

Thanks! Is there any difference between that plugin and this one?

Jimmy at 03:20 on 4 August 2009

I am a little confused, Do you have to go and type in each user, i have over a 1000. I did as instr. say, and it created 1 user

Manoj Kumar at 10:21 on 4 August 2009

@Jimmy : You can format your data in spreadsheet and paste it to the box.

David at 22:24 on 4 August 2009

Plugin could not be activated because it triggered a fatal error.

Warning: require_once(bp-core.php) [function.require-once]: failed to open stream: No such file or directory in /usr/www/virtual/kenetik/www.findyourho.com/wp-content/plugins/bulk-import-members-users/bp-user-import.php on line 29

Fatal error: require_once() [function.require]: Failed opening required ‘bp-core.php’ (include_path=’.:/usr/local/lib/php’) in /usr/www/virtual/kenetik/www.findyourho.com/wp-content/plugins/bulk-import-members-users/bp-user-import.php on line 29

Jimmy at 07:16 on 5 August 2009

Thanks for the reply, the test works well, but let me ask, when initializing, do you need to have empty user database(except for admin) for it to work properly, I ask because I was able to import user via php, but not user meta. so I have the 1000 plus members showing in the mu site admin users, but on the botton user panel it only shows current signups? Your help is GREATLY appreciated

Manoj Kumar at 11:09 on 6 August 2009

@Jimmy : Could you please rephrase, I am not able to understand the issue.

Manoj Kumar at 11:12 on 6 August 2009

@David : Comment the line bp-core.php

[...] you have any issue with this plugin, need help, or have any suggestions, You may contact me at http://manojkumar.org or [...]

seb at 21:07 on 30 September 2009

Hi, IS your plug in works with WordPress (Classic) ?
Thanks
Seb

Manoj Kumar at 16:28 on 1 October 2009

@seb: No, My plugin doesn’t work with classic wordpress. There are other plugins available for that.

josh at 22:46 on 1 October 2009

hi, is there anyway to import a password with the username?

VVOR at 12:29 on 2 October 2009

Great plug!
Going to use it for my blog. Tnx Manoj Kumar!

Manoj Kumar at 11:19 on 5 October 2009

@josh : There are other plugins that allow you to do so.

Bas at 15:00 on 16 October 2009

I’m using your plugin. But when I import users they don’t receive the WP-emails containing login and password. Thay are being created in the DB. WPMU 284a and BP1.1.1. Any know issues with BP 1.1+?

Manoj Kumar at 15:07 on 16 October 2009

@Bas : Please check your spam folder or wait for the mail. I am not creating my own functions for sending mail but just passing values to BP and WP functions. So if they are working correctly, mail should come.

Bas at 15:10 on 16 October 2009

Well, somehow the emails are not being sent. Checking my WPMU right now. Thanks for your work.

Bas at 20:07 on 16 October 2009

Manoj Kumar, when I register just 1 user via WPMU (traditional style) I receive email with credentials. When I use your Bulk Importer it doesn’t work. I’ll check compatibility with other plugins / customizations.