I am getting a lot of bots that are registering with a location of "1" so I want to add a simple line of code to the Is Bot plugin for "register_addmember_process" that will check the location and if it says "1" I wanted them blocked.
So, here is the code:
Find:
PHP Code:
$vbulletin->input->clean_array_gpc('p', array(
'isbot_time1' => TYPE_UINT
));
AFTER ADD:
PHP Code:
if ($vbulletin->GPC['userfield']["field2"] == 1)
{
eval(standard_error(fetch_error('noregister')));
}
EDIT: OK, I confused someone on my own site by what was posted here. What you need to edit is the PLUGIN code as follows:
AdminCP >> Plugins & Products >> Plugin Manager >> Product : Is Bot
Then, edit the plugin for "Is Bot" attached to the "register_addmember_process" plugin
Easy as pie!