vBulletin Mods

The Official vBulletin Modifications Site

April Fools - Ban User
by Adrian Schneider
01 Apr 2008 07:34

4 Attachment(s)
A slight modification of an in house experiment described here.

Users are prompted with the option to ban any user they choose for a period within 3-30 days. Upon submitting, there is a half second pause, then the username switches with their own name followed with another half second pause, before the script finally submits. Don't worry -- the user input here is completely ignored.

The entered username is completely ignored, and the user submitting the form is banned for the period they entered.

Refer to attached screenshots for more info.

It's up to you to link to this file, and you can also view ban.php?do=view for a list of banned users.

... you may want to unban some of these users the next day. No pressure though.

Freezerator 01 Apr 2008 07:38

I love you :D

Hasann 01 Apr 2008 07:39

Very nice idea Adrian :D

TECK 01 Apr 2008 07:40

Haha, really cool AJ.

Freezerator 01 Apr 2008 07:50

An error here?

Database error in vBulletin 3.6.4:

Invalid SQL:

(userid, usergroupid, displaygroupid, customtitle, usertitle, adminid, bandate, liftdate, reason)
VALUES (1568, 15, 15, 0, 'Junior Member', 1, 1207036109, 1207295309, 'Haha!! Fooled you!!'

MySQL Error : Duplicate entry '1568' for key 1
Error Number : 1062
Date : Tuesday, April 1st 2008 @ 08:48:29 AM
Script : http://xxxxxx.net/forum/ban.php
Referrer : http://xxxxxx.net/forum/ban.php
IP Address : 80.127.xxxxx
Username : Freezer
Classname : vB_Database

Adrian Schneider 01 Apr 2008 07:52

They changed something since when I originally wrote it... who is the user that was banned?

Adrian Schneider 01 Apr 2008 07:56

OK I updated the script to use REPLACE instead of INSERT... will get back to you as to the cause.

Freezerator 01 Apr 2008 08:01

Hmm, it works on other users, i tried with an ex admin account, maybe that has someting to do with it.
Sofar it's working well expect that one error.

2 users banned already :D

Freezerator 01 Apr 2008 08:03

The update removed the error, thanks!

rungok 01 Apr 2008 08:09

Cool idea. Does it work on 3.6.8?

Freezerator 01 Apr 2008 08:09


Originally Posted by rungok (Post 1479811)
Cool idea. Does it work on 3.6.8?

Works on 3.6.4

rungok 01 Apr 2008 08:26

When does the option turn up. Right after login for all users?

Adrian Schneider 01 Apr 2008 08:29

It's up to you to link to this file, and you can also view ban.php?do=view for a list of banned users.

rungok 01 Apr 2008 08:43

Ok. Then I will just send an email-blast with link to all users. I'm looking forward to this. LOL

Adrian Schneider 01 Apr 2008 08:53

I recommend an announcement of some sort... but email works I suppose.

Be creative.


Dear (Joe),

We have noticed you have been a good guy lately, we want to award you with something. <snip>

All times are GMT. The time now is 22:18.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.