Hey amy.. should this plugin work with NON custom profile fields? ie: default ones?
I have noticed a pattern with certain spambots, they always use 'Man' as field1.
Altering the plugin code to the following doesn't seem to work.
PHP Code:
// Get the value for field 1
$user = $db->query_first("
SELECT field1
FROM " . TABLE_PREFIX . "userfield
WHERE userid = " . $vbulletin->userinfo['userid'] . "
");
if ($user['field1'] == 'Man')
{
$userdata->set('usergroupid', 8);
}
Any ideas?