Author Topic: [ban] section disfiguration (solution)  (Read 880 times)

0 Members and 1 Guest are viewing this topic.

Offline Kremlin

  • Tireless poster
  • ****
  • Posts: 137
    • View Profile
[ban] section disfiguration (solution)
« on: November 05, 2009, 07:01:31 PM »
Well as discussed before in the topic, and since the template I use is based in the RAWR template, I decided to post this here, with this issue already going on for some time. With some guidance from other forum members, this is what I'm using at the moment:

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
{.if not|{.=|%reason%|banned.}|
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>{.!lv_title.} - {.!lv_serverError.}</title>
<script type="text/javascript" src="/template/code/main.js"></script>
<link rel="stylesheet" type="text/css" href="/template/code/main.css"/>
<script type="text/javascript">
var mod_statistics="{.!mod_er_statistics.}";
//Language Strings
var lv_hideTitle="{.!lv_hideTitle.}";
var lv_showTitle="{.!lv_showTitle.}";
<noscript><style type="text/css">.hide{display:none}</style></noscript>
<!--[if lte IE 6]><style type="text/css">#mainInner{width:960px}</style><![endif]-->
<div id="mainOuter">
<div id="mainInner">

(My template differs from the original RAWR template here so I will leave it out, anyway this works just the same with the RAWR one)

<script type="text/javascript">pageLoad()</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>{.!lv_title.} - Banned</title>
<style type="text/css"></style>
<div style="position:relative;top:225px">
<center>{.!lv_banError.}<b>: <font color=#818181>THIS IS MY DEFAULT BAN REASON</font><b/></center>

In the "THIS IS MY DEFAULT BAN REASON" place your ban reason. When I say this I don't mean %reason% because then when you give a ban in hfs without a reason, it will appear 'banned' (the default reason for hfs) where "THIS IS MY DEFAULT BAN REASON" is. If you use the code that's above, you will not be able to add a ban reason in hfs, and expect the page to be viewed without disfiguration, so you lose either way.

To be honest this might not be a big deal for most, but since I'm kind of a neat freak when it comes to web-pages, I sense that an option to change the default ban reason in HFS would be welcome (maybe in the ban manager window?). Any other way (like trying to do this in code) won't work since you already specify that %reason% = banned so you can't change it. If such an option as the suggested one would be implemented then the "THIS IS MY DEFAULT BAN REASON" should in fact be substituted with %reason%.

(bit long eh ;))