![]() |
Redirect Ban
Crafty Banning Hack - v1
By Colicab For VB 2.2.x (any 2.2. board) //////////////////////////// Redirect certain user ids to any site you wish. Note you must replace xx with the user`s id you wish to redirect. Note you may also replace == with any of the following: == : Eqeual To != : Unequal To > : Greater than < : Less than >= : Greater than and equal to <= : Less than and equal to You may also have extra user ids insted of just one by adding or after xx in the case of using == eg : if($bbuserinfo[userid] == 2 or 5) in this case the users with the ids 2 or 5 would be redirected. This is a fun hack for a cruel joke or maybe you want moderators to be auto redirected to the moderator panel its up to you.. if already had some fun redirecting banned users to porn sites. |
if($bbuserinfo[userid] == 2 or 5)
would redirect every user. 'or 5' always evaluates to true. |
it will just redirect 2 and 5 think of or as and in this hack :D
|
Quote:
PHP evaluates them as separate statements. If you want to ban multiple userids, use if(in_array($bbuserinfo['userid'], array(1,2,3,4,5,6))) |
well im gonna do a version thru the admin panel soon that,ll use and array for it instead.. was really just mucking about and thought id share lol
|
Actually, would love to see the full working version, when you can. :)
|
It depends on your host, but redirecting someone to a porn site without their consent could get you shut down if they complain to the right place. So be careful you don't put everything at risk just to get back at someone who's been hassling you.
|
well its not like your gonna send folk wh arent friend are you? i mean it woul dbe pretty sick to do it to say all of your members bar maybe a view..
|
Nah, not what I meant, colicab-d. I like the hack.
And I might install it if I can think of somewhere annoying to send them.... other than a porn site. That accomplishes the same thing, just without the risk. |
send them to microsoft ;)
|
|
there's "The Worlds Most Annoying Webpage" where you have to get through 250 alerts, a simple CTRL+ALT+DELETE does it i think but hey its good.
I was the beta tester of this :Rolleyes:... well he got me with it anyway. |
|
Just redirect to a page that says 'you're banned, have a nice life' or something..
|
I don't mean to sound like I ma trying to rain on anyone's parade. But not every board admin is able to alter source code just to impose a ban on a certain user.
For any sort of an administrative ban, you should provide a way that the ban could be given to any user through the admin CP and not through code editing. |
HAHAH too evil
|
im using 2.2.6
but I cant find PHP Code:
any ideas? |
great little addition.. can it be done to an ip address instead of a user? so if the user logs out but rehits the site??
|
All times are GMT. The time now is 02:15 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:
|