Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Thema gestartet von: alvinleephd in Mai 26, 2005, 09:39:03 NACHMITTAGS

Titel: Forward banned members to a certain page?
Beitrag von: alvinleephd in Mai 26, 2005, 09:39:03 NACHMITTAGS
well?
Titel: Re: Is there a way to forward banned members to a certain page?
Beitrag von: [Unknown] in Mai 27, 2005, 09:43:30 NACHMITTAGS
Find:

// You banned, sucka!
fatal_error(sprintf($txt[430], $old_name) . $_SESSION['ban']['full_ban']['reason']);


Replace:

// You banned, sucka!
redirectexit('http://www.google.com/search?q=learning+not+to+troll', false);
fatal_error(sprintf($txt[430], $old_name) . $_SESSION['ban']['full_ban']['reason']);


-[Unknown]
Titel: Re: Is there a way to forward banned members to a certain page?
Beitrag von: alvinleephd in Juli 10, 2005, 03:28:01 NACHMITTAGS
Thanks.  Where do you find that code?
Titel: Re: Is there a way to forward banned members to a certain page?
Beitrag von: Owdy in Juli 10, 2005, 03:29:04 NACHMITTAGS
Security.php
Titel: Re: Is there a way to forward banned members to a certain page?
Beitrag von: alvinleephd in Juli 10, 2005, 03:31:59 NACHMITTAGS
Zitat von: Owdy in Juli 10, 2005, 03:29:04 NACHMITTAGS
Security.php
Thanks :)
Titel: Re: Forward banned members to a certain page?
Beitrag von: bugsmi0 in Februar 28, 2006, 08:49:25 NACHMITTAGS
Hey Alvin

what are you thinking about when you eat that banana :P
Titel: Re: Forward banned members to a certain page?
Beitrag von: JustJen in Dezember 02, 2006, 02:23:13 NACHMITTAGS
Will this work in 1.1 Final?? It could be handy for me!  ;)
Titel: Re: Forward banned members to a certain page?
Beitrag von: SleePy in Dezember 02, 2006, 08:23:18 NACHMITTAGS
I checked the code and it should work just fine..
Titel: Re: Forward banned members to a certain page?
Beitrag von: JustJen in Dezember 22, 2006, 04:23:47 NACHMITTAGS
Yipee!! My banned members now get sent here:

http://www.outofservice.com/freak/

Hehe...
Titel: Re: Forward banned members to a certain page?
Beitrag von: Fatherguido in Dezember 23, 2006, 08:58:20 NACHMITTAGS
Zitat von: Ajen in Dezember 22, 2006, 04:23:47 NACHMITTAGS
Yipee!! My banned members now get sent here:

http://www.outofservice.com/freak/

Hehe...
Too funny! Love it!
Titel: Re: Forward banned members to a certain page?
Beitrag von: alo in März 22, 2007, 02:35:48 VORMITTAG
Zitat von: bugsmi0 in Februar 28, 2006, 08:49:25 NACHMITTAGS
Hey Alvin

what are you thinking about when you eat that banana :P
lol..what did u think about her done? :))
Titel: Re: Forward banned members to a certain page?
Beitrag von: pearpandas in März 25, 2011, 10:24:14 VORMITTAG
Thanks!  I was just reading this old topic, and this is very useful.
Titel: Re: Forward banned members to a certain page?
Beitrag von: pearpandas in März 28, 2011, 12:43:01 NACHMITTAGS
Zitat von: Fatherguido in Dezember 23, 2006, 08:58:20 NACHMITTAGS
Zitat von: Ajen in Dezember 22, 2006, 04:23:47 NACHMITTAGS
Yipee!! My banned members now get sent here:
http://www.outofservice.com/freak/
Hehe...
Too funny! Love it!

Along the same lines, I sent mine here:
would you rather questions (http://www.wouldyouratherquiz.com)
Would you rather be a troll or a wanker?

Titel: Re: Forward banned members to a certain page?
Beitrag von: a10 in April 03, 2011, 06:03:14 VORMITTAG
lol, tested and tried 1.1.13. Works perfect. Banned users & bots now redirected to downloading a gigantic .jpg
Titel: Re: Forward banned members to a certain page?
Beitrag von: cameranutzII in Dezember 04, 2011, 12:46:17 NACHMITTAGS
Yeah, I know this is an OLD topic, but...

How to set this up for 2.0.1? I don't find the exact text noted and am not confident enough to wing it without guidance. This is what I find in Security php


// You banned, sucka!
fatal_error(sprintf($txt['your_ban'], $old_name) . (empty($_SESSION['ban']['cannot_access']['reason']) ? '' : '<br />' . $_SESSION['ban']['cannot_access']['reason']) . '<br />' . (!empty($_SESSION['ban']['expire_time']) ? sprintf($txt['your_ban_expires'], timeformat($_SESSION['ban']['expire_time'], false)) : $txt['your_ban_expires_never']), 'user');


Do I need to replace just part of this or the whole thing with the one noted above? Appreciate any help.
Titel: Re: Forward banned members to a certain page?
Beitrag von: Skhilled in Dezember 25, 2011, 07:37:35 VORMITTAG
Probably the same...add the same code right after "// You banned, sucka!"
Titel: Re: Forward banned members to a certain page?
Beitrag von: Sir Charles in Dezember 30, 2011, 07:04:22 NACHMITTAGS
Yeah its the same way, just done this on mine
Titel: Re: Forward banned members to a certain page?
Beitrag von: XHIBIT911 in März 10, 2012, 09:36:12 VORMITTAG
Is this coding good for 2.0.2 ?
That are you a freak page will come in handy !
Titel: Re: Forward banned members to a certain page?
Beitrag von: GZ06 in Januar 06, 2013, 06:32:59 VORMITTAG
Zitat// You banned, sucka!

Guys, do you know what that mean "sucka"?
On russian it mean: "mother fu..er"
Who inserted such in code, developers? I think need to remove that. 
Titel: Re: Forward banned members to a certain page?
Beitrag von: Crozz in Januar 06, 2013, 08:08:04 VORMITTAG
Zitat von: GZ06 in Januar 06, 2013, 06:32:59 VORMITTAG
Zitat// You banned, sucka!

Guys, do you know what that mean "sucka"?
On russian it mean: "mother fu..er"
Who inserted such in code, developers? I think need to remove that.
I think by "sucka" he meant "sucker", sucka is a form of street language or something..
Titel: Re: Forward banned members to a certain page?
Beitrag von: Aome in Juni 26, 2013, 12:40:19 VORMITTAG
very nice, will try it :)