On my site I have 2 user groups: Schoos and students. For both user groups I have corresponding user roles and I would like to have 2 register pages where the new users are automatically assigned to the correct user role:
Register Students --> Automatically assigned to the user role Students
Register Schools --> Automatically assigned to the user role School
I searched for such a module and found automember, which probably could help to solve this problem. But Automember has many more features, which I would say take 90% of this module code and which I do not need. Therefore I would prefer to have a simpler solution.
Does anybody know about such a module or solution?
I don't know how drupal is built, but I could imagine that maybe the internal function which creates the user already has a parameter to define the assigned user role?
Thanks for any help and information!
André
Comments
registration forms to apply for a certain user role
Undocumented feature.
We too will need this for one of our next projects. Didn't look at the automember module yet.
Regarding HOWTO assign a user to a role programatically it should also be possible to supply different "registration complete" pages by user role.
Anyone out there who has experience with that?
If not, we're going to develop a solution for this soon. Any further ideas for this feature right now?
Daniel F. Kudwien
unleashed mind
Daniel 'sun' Kudwien
makers99
Need the same feature
Hello,
I'm looking for the same feature, a possibility to assign a user role to a user programatically. If You will creeate any solution, please contact me.
For my purpuse, a hook function for manipulating user roles would be a good solution.
Tharion
Solution?
Hello, I posted here how I managed to solve this problem:
http://drupal.org/node/28379#comment-128757
Core based user role registration forms
Didn't test the method you provided. But I think there is a strong need for a more core-based solution, i.e. different registration forms in a way like this
www.yoursite.com/user/register/registered
www.yoursite.com/user/register/rolename1
www.yoursite.com/user/register/role_nameX
I suppose, user roles would have to have a short name to let this become reality. And for each user role the site admin would have to define a different registration complete page (node).
Daniel F. Kudwien
unleashed mind
Daniel 'sun' Kudwien
makers99
Any progress
Anyone make any progress on this. I think it is really needed also.
thanks
Phil
Maybe this one can help
Maybe this one can help you
http://drupal.org/project/autoassignrole