Changing Ban Message

Started by mustangmatthew, November 16, 2012, 10:48:11 AM

Previous topic - Next topic

mustangmatthew

I'm sure this is a silly question but I have spent a hour searching for the answer this morning and could not find it. I want to edit the message that is shown to banned users to include an email address that can be used to appeal an accidental ban such as might happen by IP banning a whole class A subnet. I just cannot find where to edit this message. If someone could point me in the right direction, I would appreciate it.

I am using SMF 2.0.2.

-Matthew

DMR123

Users profile > actions > Ban > reason, notes.


Just write in the note to contact you.

mustangmatthew

I would like to change the message globally, rather than on a user by user basis. That's the part I am having trouble with.

-Matthew

kat

Have a look in the index.english.php file, in the default theme's "languages" directory.

$txt['your_ban'] = 'Sorry %1$s, you are banned from using this forum!';
$txt['your_ban_expires'] = 'This ban is set to expire %1$s.';
$txt['your_ban_expires_never'] = 'This ban is not set to expire.';
$txt['ban_continue_browse'] = 'You may continue to browse the forum as a guest.';


Are those the messages you mean?

hcfwesker

That K@ at it again! 

Just to add, you prob want to change this message
$txt['your_ban'] = 'Sorry %1$s, you are banned from using this forum!';

to something like this.
$txt['your_ban'] = 'Sorry %1$s, you are banned from using this forum!<br>If you would like to contact an Administrator in regards to this ban, contact us by email: EMAIL ADDRESS';

And replace EMAIL ADDRESS with the email address you plan to use.  This will show to all members, globally, that are banned when they try to access the forum.

kat


mustangmatthew

Thank you very much gentlemen - That's exactly what I was looking for. My forum is being raked by spammers (who isn't these days I guess), so I started IP banning entire class A subnets that I think are entirely Russian, Moldovan, or Chinese but on the off-chance that I was too aggressive with these ranges I wanted to provide an appeal method to make sure I don't lose legitimate users. Anyway, problem solved, thanks again.

-Matthew

xrunner

Quote from: mustangmatthew on November 16, 2012, 08:28:48 PM
My forum is being raked by spammers (who isn't these days I guess), ...

So is mine, and I tried a new approach. I added the registration verification message below and - I kid you not - it stopped them. ZERO spam registrations today. It stopped right after adding the message below.

You won't be able to post until an Admin approves your account based on a spammer database and other heuristic screening criteria - you will not be registered until this approval is complete - do you still wish to apply?


Advertisement: