Okaaay... so I did some experimenting thinking maybe the email activation was interfering and it turns out that it was. So this DOES work if email activation is turned off. So the next hurdle is, how to keep email activation enabled and have this work?
And yes, if the user selects drop down otion "Venue", then they will be placed into usergroup 10 which is for Venues only.
Code:
else if ($vbulletin->userinfo['field7'] != "Venue")
{
$newusergroupid = 10;
}
--------------- Added [DATE]1309126284[/DATE] at [TIME]1309126284[/TIME] ---------------
So pending email activation throws them into usergroup 3, nullifying the line that says if field7 is "venue" put them into usergroup 10. Then when they click the activation link, they still bypass that line and are put into default group 2. How do I modify that?
--------------- Added [DATE]1309126611[/DATE] at [TIME]1309126611[/TIME] ---------------
I'm thinking maybe this is where the issue is?
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);
}
}