rejetto forum

[ban] section disfiguration (solution)

0 Members and 1 Guest are viewing this topic.

Offline Kremlin

  • Tireless poster
  • ****
    • Posts: 137
    • View Profile
Well as discussed before in the topic http://www.rejetto.com/forum/index.php?topic=7700.msg1047017#msg1047017, 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]
[error-page]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{.if not|{.=|%reason%|banned.}|
<html xmlns="http://www.w3.org/1999/xhtml">
{.$disclaimer.}
<head>
<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.}";
</script>
<noscript><style type="text/css">.hide{display:none}</style></noscript>
<!--[if lte IE 6]><style type="text/css">#mainInner{width:960px}</style><![endif]-->
</head>
<body>
<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>
</body>
</html>
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
{.$disclaimer.}
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>{.!lv_title.} - Banned</title>
<style type="text/css"></style>
</head>
<div style="position:relative;top:225px">
<center>{.!lv_banError.}<b>: <font color=#818181>THIS IS MY DEFAULT BAN REASON</font><b/></center>
</div>
.}

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 ;))