Topic: How to add html/bbc to your ban messages

I want to add a picture to the ban messages I give out to people.

How would I go about doing this / what would I edit.

thanks in advance.

Re: How to add html/bbc to your ban messages

sad

3 (edited by Strofanto 2007-04-04 10:47)

Re: How to add html/bbc to your ban messages

Open functions.php go to line 190

message($lang_common['Ban message'].' '.(($cur_ban['expire'] != '') ? $lang_common['Ban message 2'].' '.strtolower(format_time($cur_ban['expire'], true)).'. ' : '').(($cur_ban['message'] != '') ? $lang_common['Ban message 3'].'<br /><br /><strong>'.pun_htmlspecialchars($cur_ban['message']).'</strong><br /><br />' : '<br /><br />').$lang_common['Ban message 4'].' <a href="mailto:'.$pun_config['o_admin_email'].'">'.$pun_config['o_admin_email'].'</a>.', true);

Add after or change with your image this:

pun_htmlspecialchars($cur_ban['message'])

(move to modifications?)

Re: How to add html/bbc to your ban messages

Moved to Modifications wink

Assuming you don't want to add the image for every ban, I would just remove the call to pun_htmlspecialchars. Then you can use HTML to add the image in the message. Otherwise, as Strofanto suggested, just add the HTML before/after the message in the code.