would this work?
// Get the value for field 11
$user = $db->query_first("
SELECT field11
FROM " . TABLE_PREFIX . "userfield
WHERE userid = " . $vbulletin->userinfo['userid'] . "
");
if ($user['field11'] == 'No')
{
$userdata->set('usergroupid', 18);
}
the way we are running it now is everyone enters if they are over 18 or under and we use amy's hack to put them in on registration
so if i use that above (which is amy's hack) would it do the same thing but to everyone?
|