$spamgroup = 4; $checkfield = 'field6'; if ($vbulletin->GPC['username'] == $vbulletin->GPC['userfield'][$checkfield]) { $userdata->set('usergroupid', $spamgroup); }