i am having diffulculty getting this to work for me, i am using 3.5.4
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<plugins>
<plugin active="1" product="vbulletin">
<title>Put User In User Group Based on Field Value</title>
<hookname>register_activate_process</hookname>
<phpcode><![CDATA[// Get the value for field 25
$user = $db->query_first("
SELECT field25
FROM " . TABLE_PREFIX . "userfield
WHERE userid = " . $vbulletin->userinfo['userid'] . "
");
if ($user['field25'] == 'No')
{
$userdata->set('usergroupid', 36);
}]]></phpcode>
</plugin>
</plugins>