%length% in public ban messages

This commit is contained in:
Michael Foster 2013-07-24 11:30:01 -04:00
parent 6c2c18514e
commit 33a1c00bd5
2 changed files with 6 additions and 1 deletions

View file

@ -879,8 +879,10 @@
// Check public ban message by default
$config['mod']['check_ban_message'] = false;
// Default public ban message
// Default public ban message.
// In public ban messages, %length% is replaced with "for x days" or "permanently" (with %LENGTH% being the uppercase equivalent).
$config['mod']['default_ban_message'] = 'USER WAS BANNED FOR THIS POST';
// $config['mod']['default_ban_message'] = 'USER WAS BANNED %LENGTH% FOR THIS POST'; // Include length in ban message
// What to append to the post for public bans ("%s" is the message)
$config['mod']['ban_message'] = '<span class="public_ban">(%s)</span>';