PDA

View Full Version : A plugin to stop spammers


kyokushin4life
11-30-2006, 02:24 AM
Okay we all hate random spammers posting in your forums.

We hear people crying everyday.
http://www.vbulletin.com/forum/showthread.php?t=210325

I have looked at some of the plugins posted on vbulletin.org and they are quite neat plugins.

On my board I have a custom field for everyone to write something in the box, all these spammers have their name in this box so that I can identify these accounts pretty easy.

My request is that could someone build me a small plugin so that people cannot sign up on my board when their nickname(alias) is the same as what they have in the custom field?

Kungfu
11-30-2006, 03:42 AM
Okay we all hate random spammers posting in your forums.

We hear people crying everyday.
http://www.vbulletin.com/forum/showthread.php?t=210325

I have looked at some of the plugins posted on vbulletin.org and they are quite neat plugins.

On my board I have a custom field for everyone to write something in the box, all these spammers have their name in this box so that I can identify these accounts pretty easy.

My request is that could someone build me a small plugin so that people cannot sign up on my board when their nickname(alias) is the same as what they have in the custom field?
if you already have a custom field to do this it shouldnt be too hard.
Can you post what you have for that.
basically it would be a check before they sign up. If custom field = the name field then spit an error out.

kyokushin4life
11-30-2006, 10:05 AM
Can you post what you have for that.
??? I think in the options I created a custom field for everyone to write something, in this case "Organization".
Organization
field5

basically it would be a check before they sign up. If custom field = the name field then spit an error out.

That's exactly what I need. Thank you kungfu.

Kungfu
11-30-2006, 04:48 PM
gotcha. you would need to find out what that fields name is called. Im guessing
organization maybe.

In register.php file in the root directory you can hard code it.

if ($_POST['do'] == 'addmember')
find that. You can add the organization to the cleanarray as well.

if($vbulletin->GPC['username'] == $vbulletin->GPC['organization'])
{
eval(standard_error(fetch_error('noregister')));
}

you can use that error, its tells them there is no registration. Or make a new phrase in the error category and call that. you can add that sometime after the cleanarray.

to add organization just add
'organization' => TYPE_STR,
to the end

kyokushin4life
11-30-2006, 06:45 PM
Kung Fu, I did it but i could still register when my name(alias) is equal to "organization"..