News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Forward banned members to a certain page?

Started by alvinleephd, May 26, 2005, 09:39:03 PM

Previous topic - Next topic

alvinleephd

well?
Worthless Forums-A Place to Kill Time.  Get your fix.

[Unknown]

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]

alvinleephd

Worthless Forums-A Place to Kill Time.  Get your fix.

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0


bugsmi0

Hey Alvin

what are you thinking about when you eat that banana :P

JustJen

Will this work in 1.1 Final?? It could be handy for me!  ;)

SleePy

I checked the code and it should work just fine..
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

JustJen


Fatherguido


alo

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? :))

pearpandas

Thanks!  I was just reading this old topic, and this is very useful.

pearpandas


a10

lol, tested and tried 1.1.13. Works perfect. Banned users & bots now redirected to downloading a gigantic .jpg
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

cameranutzII

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.

Skhilled

Probably the same...add the same code right after "// You banned, sucka!"

Sir Charles

Yeah its the same way, just done this on mine

XHIBIT911

Is this coding good for 2.0.2 ?
That are you a freak page will come in handy !

GZ06

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. 
Georgia and Ukraine -FOREVER!

Crozz

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..

Advertisement: