Hello, all,

The industrious primates here at funnymonkey.com have developed a module we are calling the userplus module. This module simplifies adding large numbers of users to a site, and administering user roles. The module works in 4.6.3.

From the readme.txt:

The userplus module simplifies adding large numbers of users to a site, and assigning those users into roles. The module will be particularly useful to admins managing sites where membership requires admin approval, or where only admins can create new members.

The features of the userplus module are available to users with the "administer users" permission. So, if you can't administer users, you can't use userplus.

The userplus modules adds a new tab -- user+ -- that is visible on the admin/user page. When you click on the tab you get three options:
1. add multiple users
2. assign user roles
3. configure user+

"Add multiple users" allows you to add multiple users (I know, who'd have guessed that?). Along with username, email address and password, the administrator can also assign these new users into roles. Since all users created this way are automatically "authenticated users", there is no checkbox for that role, nor is there a checkbox for "anonymous user."

"Assign user" gives you a listing of all users on a site next to checkboxes of all roles. Using this option, you can see what users belong to what roles, and make adjustments accordingly.

"Configure user+" allows you to set the number of users that can be added at one time. It also allows you to set the number of users that will appear per page on the "Assign User" page.

The module has been tested with MySQL 4.0 and 4.1, and with PHP 4.3.9 and 4.4.0.

The module is released under the GPL, and is available for download here on the DrupalEd site.

Let us know what you think.

Cheers,

bonobo

------
http://www.funnymonkey.com
Tools for Teachers

Comments

venkat-rk’s picture

Sounds fabulous (although I am yet to test it). I am working on a site that will have hundreds of members and this will be terrific to use on that.

Dublin Drupaller’s picture

Hiya,

Thanks for flagging that and thanks to the developers who put that together. I just tested it on drupal 4.6.3 and it works brilliantly.

Superb module guys. nice one.

Dub

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

bonobo’s picture

We built this in connection with work we were doing related to sites in academic settings, but we thought/hoped it would meet some needs in other settings as well.

Cheers,

bonobo
-------
http://www.funnymonkey.com
Tools for Teachers

chx’s picture

Please move this to a drupal.org project and to drupal.org CVS.
--
Read my developer blog on Drupal4hu.

--
Drupal development: making the world better, one patch at a time. | A bedroom without a teddy is like a face without a smile.

bonobo’s picture

a few weeks back, but we haven't heard anything. We figured with the code freeze coming up, there were bigger fish to fry :)

We were going to wait until we got the CVS account to release it, but there was a thread on DrupalEd where it seemed that this module could be useful, so things went from there.

*addition/edit*
I just went to add this as a project, but it appears that a cvs account is needed to create the project. Am I missing something?

Cheers,

bonobo
-------
http://www.funnymonkey.com
Tools for Teachers

Hosting Geek’s picture

so it wont be in Drupal 4.7? I am sure with a few edits it could be merged to the current user management module and be part of the default system.... there is no need another edition to the module list when its unneeded....

Also this is totally offtopic but the red * next to "Comment:" doesn't anywhere on the page explaining what it is... like saying its needed... I am guessing its a theme issue.

bonobo’s picture

the module works with 4.6.x. We have not tested it with 4.7, and the decision about whether to include any of this functionality in future Drupal distributions is not ours to make. If people like the functionality of the module, then we would be glad we made a contribution that people found useful. Regardless, it makes some of the work we are doing easier, and we hope it can help some other folks as well.

RE

but the red * next to "Comment:" doesn't anywhere on the page explaining what it is... like saying its needed... I am guessing its a theme issue.

I'm not sure what you mean.

Cheers,

bonobo
-------
http://www.funnymonkey.com
Tools for Teachers

Hosting Geek’s picture

I'm not sure what you mean.

It was offtopic and I am referring to when posting a reply.

venkat-rk’s picture

The red asterisk means it is a required field. In other words, you have to enter something into it to post the comment.

Hosting Geek’s picture

Yea I know that but I am saying there is no other asterisk on the page explain it as we find with all thoses ads with fine print...

twingo667’s picture

Hi

does the user+ module sends mails with the account data to the user which were addes by this module ?

thx
twingo667

bonobo’s picture

The behavior of the "add multiple users" feature is identical to when a site admin adds a user with the standard user module.

Cheers,

bonobo

-------
http://www.funnymonkey.com
Tools for Teachers

twingo667’s picture

thx, but how can I edit the module so that an email is automatically sent to the added users ?

And - where can I change the config so that the added users have not "authenticated user" rights ?

Regards,
twingo667


edit: I found out how to change the code so that user users have not authenticated user rights.

bonobo’s picture

I've been buried in another project.

That is not functionality we will be adding anytime soon(ie, in the next few weeks), as we are working on some other projects that need to take priority.

If this is something you need immediately, I'd look at the standard user.module, and see if it would be possible to reuse the code in there (where an email is sent to new users on the site) as a starting point to add the functionality you are talking about.

Sorry I can't be of more help on this one, but I need to finish up some other projects.

Cheers,

bonobo

-------
http://www.funnymonkey.com
Tools for Teachers

twingo667’s picture

thx for your answer.

I have helped myself without changing the code. So I added users giving them no password and told all of them to ask for a new password. In this construction they get their mails with username and password.

I´m looking forward to your functions' update in the next weeks.

Regards
twingo667

bonobo’s picture

and I'm glad that the module has been helpful. In the meantime, we've been approved for a CVS account, and will be transferring this project to drupal.org -- in addition to the email functionality, we're looking into adding csv import, mass delete of users, and a few other pieces to round out user management.

Cheers,

bonobo

-------
http://www.funnymonkey.com
Tools for Teachers

venkat-rk’s picture

Is the user administration module significantly different from the new User import module here?
http://drupal.org/node/31940

Just wondering if there is a case here for teaming up, just as the benshell has done with his new image_assist module.

bonobo’s picture

but, IMO, complementary. I have already contacted the developer of the User Import module to see if he was interested in collaborating. Without putting any words in his mouth, he felt that the functionality was sufficiently different to warrant two separate modules.

And, he is right. We were planning on adding some of the identical functionality to the userplus module as he has in the User Import module, but there might be some users who don't want/need all those options on their site.

Really, it comes down to what a site admin wants in user management. As the functionality currently exists, the userplus module and the User Import module offer two approaches to adding and managing users. As we were planning on adding the csv import functionality to the userplus module down the road, we think there are some benefits to combining the approaches. However, the reasons Robert gave for keeping the modules separate are very valid.

Cheers,

bonobo

-------
http://www.funnymonkey.com
Tools for Teachers

venkat-rk’s picture

Thanks. Well, a month ago, there was nothing for bulk user administration and now there is a problem of plenty! That's the beauty of open source, isn't it.

And, it is great that you took the effort to contact Robert to discuss the possibility of collaboration. Makes life easy for us non-geeks:-)

samo’s picture

Is this module in CVS yet? I can submit patches for 4.7 if someone can get this into CVS.

bonobo’s picture

We received the cvs account a little while ago, but a couple other projects reared up and needed some attention, so putting the module into cvs was put on the back burner.

We'll get in into cvs SOON, and I'll post here when we do.

And, thanks for working out the patches for 4.7 -- we look forward to seeing them.

Cheers,

bonobo

-------
http://www.funnymonkey.com
Tools for Teachers

venkat-rk’s picture

Hi bonobo,

I tried the userplus module today to add about 200 odd users. I am running into an odd problem. I have created nearly 60 users so far and got the confirmation messages that the accounts were created. However, I am unable to see more than 33 users at administer>>users no matter what I try.

I disabled the module to see if this list was somehow returning false information, but no luck. The list is still stuck at 33. I also switched the theme to the default bluemarine to rule out a theme issue, but still no luck. I also noticed an issue with a valid email being returned as invalid. Does the module actually check the validity behind the scenes?

I am using a fresh install of 4.6.3. I would appreciate any suggestions you can give.

bonobo’s picture

When you look at the users table in your db, do you see all users, or just 33?

I have used the module to do exactly what you describe, and haven't seen this issue.

Cheers,

bonobo

-------
http://www.funnymonkey.com
Tools for Teachers

venkat-rk’s picture

Thanks for the suggestion. I looked at the users table and there are only 33 users, although I clearly remember adding more and seeing the confirmation messages.

Let me also try again.

venkat-rk’s picture

I think I got it (by inadvertently making this mistake again). The problem occurs when a username or password that has already been taken is added.

Userplus prints out the error message relating to that particular username and email address, but also fails to create the other accounts. I assumed that the other accounts would be created anyway, but apparently not.

Can this be called a bug?

bonobo’s picture

We'll fix it!

Thanks for the feedback.

On a side note, we've been swamped with other work. Still need to get this into CVS.

Cheers,

bonobo

-------
http://www.funnymonkey.com
Tools for Teachers

venkat-rk’s picture

No problem. Take your own time. Glad I could be of some help.

It is still a very useful module. Just need to be a little careful, that's all.

bonobo’s picture

is now checked in to Drupal cvs and available here:

http://drupal.org/node/50864

Cheers,

Bill

-------
http://www.funnymonkey.com
Tools for Teachers