Forums

Allow user to choose/change role/level (4 posts)

  1. tianbo84
    Member
    Posted 2 years ago #

    Hi there just had a question about user roles.

    I want to allow users to choose from different roles. I am using Role Manager to create the roles.

    Is it possible to create a drop down menu in the registration that would allow users to pick a role...? Or would it make more sense to allow the user to change their role after registration with something like below?

    <?php get_userdata($userid);
          $userlev = $user_info->user_level;
          echo $userlev; //displays user current level
    
    update_usermeta($userid,'user_level',$newlevel); //use this to change user level/role???
    ?>

    Is there a tag/codex to change the user role, as this would only change the level?

    Thanks guys for any help!

    TC

  2. scdwb
    Member
    Posted 2 years ago #

    I really need to know how to do this, so if anyone can help us else that would be great.

    Or did you solve this tianbo84? If you did, please tell us how :-)

    Thanks in advance

  3. hermedia
    Member
    Posted 2 years ago #

    Again,
    I am also looking for this option ....

  4. parsonsprojects
    Member
    Posted 2 years ago #

    Hi,

    Any luck with this?

    I have been searching for a while but no answer, im sure there has to be one out there.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.