Thanks! However, I am not able to get that to work. I should probably also mention that the curstom field is a drop down menu (don't know if that matters). So I tried a variation of the following to select the particular option ID selected:
Code:
else if ($vbulletin->userinfo['field7'] != 5)
{
$newusergroupid = 10;
}
So 5 = Venue, but that doesn't seem to work either. It is still putting users in the default 2 group.
Annnnnd this won't work...
Code:
if ($vbulletin->options['verifyemail'])
{
$newusergroupid = 3;
}
else if ($vbulletin->options['moderatenewmembers'] OR $vbulletin->GPC['coppauser'])
{
$newusergroupid = 4;
}
else if ($vbulletin->userinfo['field7'] != "Venue")
{
$newusergroupid = 10;
}
else
{
$newusergroupid = 2;
}
hmmm...
--------------- Added [DATE]1309125402[/DATE] at [TIME]1309125402[/TIME] ---------------
Hey... could it be that I should be editing this instead?? I am using email activation. So upon clicking the activation link, it is putting user into default 2 group. Maybe I need to put that line of code into this somewhere??
Code:
if ($vbulletin->options['verifyemail'])
{
$activateid = build_user_activation_id($userid, (($vbulletin->options['moderatenewmembers'] OR $vbulletin->GPC['coppauser']) ? 4 : 2), 0);
eval(fetch_email_phrases('activateaccount'));
vbmail($email, $subject, $message, true);
}
else if ($newusergroupid == 2)
{
if ($vbulletin->options['welcomemail'])
{
eval(fetch_email_phrases('welcomemail'));
vbmail($email, $subject, $message);
}
}