Quote:
Originally Posted by paulfletcher
Hey.  Well It was working for the secondary user-group. Although I found out that I needed one for the primary group. So Amykhar helped me out with this slight modification of the script... Works on my board (3.5.4).
PHP Code:
switch($userinfo['field5'])
{
case "A":
$userdata->set('usergroupid', 12);
break;
case "B":
$userdata->set('usergroupid', 13);
break;
case "C":
$userdata->set('usergroupid', 18);
break;
}
Talk to you later,
Paul F
|
I presume this means you can let the user input the actual text in the case "X" area, correct? In that case, can you tell me where I would place this in the XML file?
I plan on having available more usergroups in the future, and would like to have the individual be able to type in the group they are entering (I'd have a link to the possibilities on the registration page).
Also, has their been any changes so that this could work all the time (for example, they can change their usergroup as they like through edit profile)? Thanks.