Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: alvinleephd on May 26, 2005, 09:39:03 PM

Title: Forward banned members to a certain page?
Post by: alvinleephd on May 26, 2005, 09:39:03 PM
well?
Title: Re: Is there a way to forward banned members to a certain page?
Post by: [Unknown] on May 27, 2005, 09:43:30 PM
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]
Title: Re: Is there a way to forward banned members to a certain page?
Post by: alvinleephd on July 10, 2005, 03:28:01 PM
Thanks.  Where do you find that code?
Title: Re: Is there a way to forward banned members to a certain page?
Post by: Owdy on July 10, 2005, 03:29:04 PM
Security.php
Title: Re: Is there a way to forward banned members to a certain page?
Post by: alvinleephd on July 10, 2005, 03:31:59 PM
Quote from: Owdy on July 10, 2005, 03:29:04 PM
Security.php
Thanks :)
Title: Re: Forward banned members to a certain page?
Post by: bugsmi0 on February 28, 2006, 08:49:25 PM
Hey Alvin

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

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

Hehe...
Title: Re: Forward banned members to a certain page?
Post by: Fatherguido on December 23, 2006, 08:58:20 PM
Quote from: Ajen on December 22, 2006, 04:23:47 PM
Yipee!! My banned members now get sent here:

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

Hehe...
Too funny! Love it!
Title: Re: Forward banned members to a certain page?
Post by: alo on March 22, 2007, 02:35:48 AM
Quote from: bugsmi0 on February 28, 2006, 08:49:25 PM
Hey Alvin

what are you thinking about when you eat that banana :P
lol..what did u think about her done? :))
Title: Re: Forward banned members to a certain page?
Post by: pearpandas on March 25, 2011, 10:24:14 AM
Thanks!  I was just reading this old topic, and this is very useful.
Title: Re: Forward banned members to a certain page?
Post by: pearpandas on March 28, 2011, 12:43:01 PM
Quote from: Fatherguido on December 23, 2006, 08:58:20 PM
Quote from: Ajen on December 22, 2006, 04:23:47 PM
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?

Title: Re: Forward banned members to a certain page?
Post by: a10 on April 03, 2011, 06:03:14 AM
lol, tested and tried 1.1.13. Works perfect. Banned users & bots now redirected to downloading a gigantic .jpg
Title: Re: Forward banned members to a certain page?
Post by: cameranutzII on December 04, 2011, 12:46:17 PM
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.
Title: Re: Forward banned members to a certain page?
Post by: Skhilled on December 25, 2011, 07:37:35 AM
Probably the same...add the same code right after "// You banned, sucka!"
Title: Re: Forward banned members to a certain page?
Post by: Sir Charles on December 30, 2011, 07:04:22 PM
Yeah its the same way, just done this on mine
Title: Re: Forward banned members to a certain page?
Post by: XHIBIT911 on March 10, 2012, 09:36:12 AM
Is this coding good for 2.0.2 ?
That are you a freak page will come in handy !
Title: Re: Forward banned members to a certain page?
Post by: GZ06 on January 06, 2013, 06:32:59 AM
Quote// 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. 
Title: Re: Forward banned members to a certain page?
Post by: Crozz on January 06, 2013, 08:08:04 AM
Quote from: GZ06 on January 06, 2013, 06:32:59 AM
Quote// 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..
Title: Re: Forward banned members to a certain page?
Post by: Aome on June 26, 2013, 12:40:19 AM
very nice, will try it :)