![]() |
April Fools - Ban User
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. |
I love you :D
|
Very nice idea Adrian :D
|
Haha, really cool AJ.
|
An error here?
<!-- Database error in vBulletin 3.6.4: Invalid SQL: INSERT INTO userban (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 --> |
They changed something since when I originally wrote it... who is the user that was banned?
|
OK I updated the script to use REPLACE instead of INSERT... will get back to you as to the cause.
|
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 |
The update removed the error, thanks!
|
Cool idea. Does it work on 3.6.8?
|
All times are GMT. The time now is 01:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|