Tyran1
04-11-2012, 12:20 PM
I need a fix for this Addon : https://vborg.vbsupport.ru/showt...t=82992&page=9
this is for the PRIMARY group
the plugin:
<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 5
$user = $db->query_first("
SELECT field5
FROM " . TABLE_PREFIX . "userfield
WHERE userid = " . $vbulletin->userinfo['userid'] . "
");
if ($user['field5'] == 'yes')
{
$userdata->set('usergroupid', 10);
}]]></phpcode>
</plugin>
</plugins>
Please help me.
Sorry for my English.
this is for the PRIMARY group
the plugin:
<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 5
$user = $db->query_first("
SELECT field5
FROM " . TABLE_PREFIX . "userfield
WHERE userid = " . $vbulletin->userinfo['userid'] . "
");
if ($user['field5'] == 'yes')
{
$userdata->set('usergroupid', 10);
}]]></phpcode>
</plugin>
</plugins>
Please help me.
Sorry for my English.