I have a question is there anyway to mass add the users that have already registered to that usergroup?
if i ran this as a cron would it do it?
// 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);
}
or if i add it as a hook somewhere else on the site? like forumhome?
|