By mihai722 on
Hello,
My problem is that I want when a person creates a new account to choose whice role should have. (visitors can register accounts without admin permission)
For example in my site, certain people (a role) can add/modify a content type and another kind of people (another role) can view and search that certain content type.
Another problem is that I don't know how this role (that cand only view and search the content type) can make a favorite list of that content type.
I use drupal 7.
Thanks.
Comments
Have you tried Rules?
If you simply have a rule where upon registering and creating a profile, you can have a field or taxonomy vocabulary list they can select, say, Role 1, Role 2, and Role 3.
Then in Rules, you create a Rule when user selects this taxonomy they are automatically inserted into a specific role of your choosing.
In Rules (some combination of these):
After Saving new content
Condition:
User: has Content Profile (assuming you're using this module)
CCK: Field has value
Action:
Modify User Role
Check below thread link where
Check below thread link where its being discussed :
http://drupal.org/node/1310118
Hope it helps.
Abhishek Sawant
Drupal Developer