default role
shab_la2ta - February 3, 2008 - 21:56
hello guys, I have a problem with user creation. When the administrator creates a user , he can specifies the role of that user. but, when a user creates an account, how can I define the default role that the user will have upon creation. It just gets created with no role at all, I need it to have a default role
Thanks

The default role
There is a default role, and it's called "authenticated user." What are you really trying to do that cannot be accomplished with the standard setup?
New users get assigned the
New users get assigned the authenticated role (when approved), not no role.
Try this...
http://drupal.org/project/registration_role
I believe you can also do this with LoginToboggan module, you can configure a "pre-authenticated" role with limited permissions.
http://drupal.org/project/logintoboggan
The above poster is asking the right question though, what is it you are trying to achieve (maybe you can save yourself the overhead of additional modules).
Well actually, I've got a
Well actually, I've got a menu that I need to display in case of a default user (authenticated) but I definitely don't want it to appear in case of an administrator. thats y I was thinking of creating a new role, which allows me to separate between the two.
Use the block settings so
Use the block settings so that it only appears for authenticated users
I did this, but any logged
I did this, but any logged in user is considered an authenticated user thus administrator role is also an authenticated one.
I think I should write it as
I think I should write it as a code, can u translate this into php code
if (user.role == role1 && user.role != role2)
return true
since role2 is also role1 but role1 is not necessarily role2 so I need to check if the users role is role1 and not role2
Thanks
This should sort you out -
This should sort you out - http://drupal.org/node/64135