![]() |
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?
|
Quote:
|
When does the option turn up. Right after login for all users?
|
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.
|
Ok. Then I will just send an email-blast with link to all users. I'm looking forward to this. LOL
|
I recommend an announcement of some sort... but email works I suppose.
Be creative. Quote:
|
A suggestion, I did on my site after changing the code a little.
Change the days to hours. Tinker the code to progressively increase ban period based on the period selected :D (Although best to keep in hours rather than days, days is too much :) Great idea btw :D |
Ok, i might be a bit slow... but does this actually ban the user?
Cuz that would rock =)) |
Quote:
Quote:
|
I'm gonna send a mass PM to the users =))
|
Rotfl!
|
30 of my users got banned :)
|
I switched it to hours and put a notice at the top of my site:
Quote:
Thank you for this! edit to add: I created a new plugin, April Fools, at postbit_display_complete with the following code: Code:
eval('$template_hook[postbit_userinfo_left] .= " ' . fetch_template('postbit_april_fools') . '";'); Code:
<div class="smallfont"><a href="/forums/ban.php">Temporarily Ban $post[username]</a></div> |
will they actually be banned or its just a trick... cuz i don't wanna be sitting there unbanning people
|
Quote:
|
Quote:
|
Quote:
Code:
$liftdate = TIMENOW + (3600 * $days); I will click Lift Ban on them in a few hours anyway. |
Quote:
|
Quote:
days = leave as is at 86400 hours = 3600 minutes = 60 Just change the bolded number depending on what you want. Code:
$liftdate = TIMENOW + (3600 * $days); |
I just placed a huge link on my site and now there's a BAN frenzy going on. :) :) I made it so it only bans them for few minutes.
Is there anyway that forum/ban.php?do=view link saves the list so we can make a Hall of Fame/Shame afterwards. Right now it does not save the names after the ban is lifted so I need to refresh often to see who is banned. This would be even better.. |
I wishsomehow this could have been sent thru everyone on my forum thru private messages!
|
Hi,
I am terribly new to this type of stuff but this looks too good to pass up! Just to be clear, if I change the line Lynne mentioned to read this: $liftdate = TIMENOW + (60 * $days); they will be banned for minutes as opposed to days? For example someone bans somebody else for 5 days it will in reality ban them for 5 minutes, is that correct? Also how do you install this? I've not played with any of these so I'm really new at this. Thanks! |
A bit late now, but a good idea would be to display the user they actually tried to ban on each line (on the view-page) to annoy the senders even more.
|
Oops, don't accidentally install this on 3.6.
|
It works on 3.6 as well.
About 1 hour ago, i had 40 of my members banned :D But now i unbanned them and let them know :) |
So far working good, and currently about two people were silly enough to try and ban someone...
|
This is the most hilarious hack I have ever seen.
Mega props, we've knocked off 10 members in about 2mins. |
This really screwed my board up.
Code:
Unable to add cookies, header already sent. |
Remove whitespace at the top of your config.php file. It has nothing to do with this mod.
|
I didn't touch the config.php file, and there is no blank space at the top.
|
quality stuff
|
All times are GMT. The time now is 05:52 PM. |
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:
|