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.
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → 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.
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?)
Moved to Modifications
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.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → How to add html/bbc to your ban messages
Powered by PunBB, supported by Informer Technologies, Inc.