Good day folks. I'm developing a website using Drupal 4.7 and have a need to be able to assign a role based on a field selected in the registration form. I am willing to pay to have this customization completed. If this works out well there will likely be additional paid modification opportunities.

The site is currently in Alpha mode over at http://www.musicbuggy.com. Take a look at the registration form and you will see that there are three "Member Types" that a prospective user can choose. I would like a specific role assigned based on that field.

If you're interested please send over a brief bio with your drupal qualifications, links to any Drupal work you've done, a fixed cost for the mod and time frame in which you can complete the work.

Upon acceptance of the mods I will pay the developer via PayPal.

Thanks in advance.

Rob Safuto
Podcast NYC
Music Buggy

Comments

rareservices’s picture

Hi,

Thanks for your offer.

Drupal has a built in Role Management for User Accounts.
Admin can create roles and define privilages for each role.
Admin has to assign each users role after creation.

I hope you aware of such things.

You raised an issue where User can select his role at the time of Registration.

This can be done with code hacking in user module.

The role selected by user can be mapped to System roles.

This is a 4 day task.
Cost is $100.

You can view my profile at http://rareservices.com/profile.html
which has reference to my drupal works(URLs)

You can contact me over my contact option in my drupal profile for
quicker reach.

Thanks
Looking forward to your reply.

Anonymous’s picture

Thanks for the feedback. Yes, I'm very aware of the role system in Drupal. My issue is that I would like the users to be able to choose which roles they belong to. This is necessary on my site because I've created multiple users which have different access to the functions of the site. With the standard drupal code base you have to add each user's optional role manually which can become a drag if you want a site to have a lot of users.

Rob Safuto

khoogheem’s picture

I have 95% completed a module that allows admins to display optional user roles on the registration page for users to be a member of.

Right now you can:
Pick which user roles will be on the registration page
Pick the default role which users will be a member of. (Users will always be part of the Authenticated user role, as well as the role they select as the option).
You can change the Descritpions, Box title and Roll dropdown title.

TODO:
Right now there is no validation as to if the default role is part of the picked roles. Having issues with validation of the hook_settings. Would love to talk with other developers on this as some of the examples I have seen on this site are not working for me (ya.. probably my issue ;)- ).

Here is the module -
http://web2.0resource.com/download/modules/user_role_registration

If there is interest I will upload it to the drupal cvs.

-kevin

heine’s picture

You may want to make that available without requiring registration & login, if you wish others to take a look at it. Or post code snippets in the module development support forum.

--
The Manual | Troubleshooting FAQ | Tips for posting | Make Backups! | Consider creating a Test site.

khoogheem’s picture

The code was pulled due to an error that I found in it.. and is now posted back on the site.

If you don't want to register to download the code send me a message via drupal and I will be happy to send you a copy.

Right now I am looking for some help in validation.. the only issue that I want to solve before I call this done is the validation of picking a default value that is actually part of the values that are posted on the registration page.

danrix’s picture

Thanks a lot. I've been going around this problem for a couples of days trying different approaches in terms of the most economical one (in terms of coding, hacking time) and turns out the best approach was to use your module: pop it in, configure it, watch it work.

nice job!

kweisblatt’s picture

Excellent module from Khoogheem- works great as far as I can see on my 4.7 site!

~~~~~~~~~~~~~~~~
Kris
Current projects: www.cribfax.com
www.myabatherapist.com

Anonymous’s picture

I've been using the module for a few days and it has been working for me. This module is a good step in the right direction for helping to make Drupal implementations more flexible so that different roles can be assigned via a more 'self service' approach.

Rob Safuto

greggles’s picture

If there is interest I will upload it to the drupal cvs.

There is clearly interest. Can you contribute this to CVS?

What license is it under?

--
Knaddison Family | mmm Free Range Burritos

amnon’s picture

The site is currently in Alpha mode over at http://www.musicbuggy.com. Take a look at the registration form

How did you do this mandatory "Terms and Conditions of Use" checkbox? that's cool.

You raised an issue where User can select his role at the time of Registration.
This can be done with code hacking in user module.

Why hack core? I think it's sufficient to implement hook_user().

khoogheem’s picture

This was implemented by a module that uses hook_user to display Admin selected roles to display on the registration page.. So if you have 10 Usertypes you can display all 10 extra types or just 2 of those types, it is all up to the admin.

Anonymous’s picture

The terms and conditions checkbox comes from legal.module which has recently been updated for 4.7. You can find that at http://cvs.drupal.org/viewcvs/drupal/contributions/modules/legal/.

Rob Safuto
Music Buggy

ngstigator’s picture

UPDATE: user_role_register is able to add a user to a particular role manually; rolesignup does not have that ability. In fact, I get an error when trying to add a user manually using rolesignup.

Another role / registration module.

http://drupal.org/node/75130 (link to rolesignup)

spooky69’s picture

Is this available for Drupal 5 and, if so, is it stable and working as expected?