rejetto forum

images and html structur on error page

kaler · 9 · 4196

0 Members and 1 Guest are viewing this topic.

Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
i have programmed an error page, but wenn the ip adress is banned, the browser don't load any image or color

only the text and the links where there, but it seems, that the css doesen't load.. but why...

(and if I programm as error page the same page as the mainpage but instead of %list% the comment %comment%
all test an messages and reasons are load... but no color, no images)

but on all other errors... ( like overload or the file could't be find) it works...

what should i do@?

Thank you for helping me...


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
It would seem logical that if an IP is banned, then every thing but the
text of the ban page would be blocked, wouldn't it?
I just added some <style> to that section of my template.
Solved the problem for me.
Code: [Select]
[ban]
<style type="text/css"></style>
<style>
body {  background:#dcdcdc;
  padding:10px;
  margin:10px; }
body, th { font-family:arial, tahoma, verdana, helvetica, sans; font-weight:normal; color:#000000; font-size:10pt; }
img { border-style:none }
</style>
<h4> IP Address %ip% Has Been Blocked </h4>
<h4>%reason%</h4>


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
why i should post the content of the section??

i have tried 4 times (with different section) but everytime it doesent work but for you i will post it here:

The MainPage
Code: [Select]
[error-page]
<!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"/>
<meta name="robots" content="noindex, nofollow"/>
<title>Error - Home Server</title>
<link rel="stylesheet" type="text/css" href="/template/{.!theme.}/{.!theme.}.css"/>
<link rel="shortcut icon" href="/template/{.!theme.}/images/icon.ico" />
<script type="text/javascript" src="/template/shortcut.js"></script>

<!--[if lt IE 8]><style type="text/css">#tree img {vertical-align:middle;}#tree select {margin-top:4px;}</style><![endif]-->
<!--[if lt IE 7]><style type="text/css">#list .row {border:0;}</style><![endif]-->
</head>
<body>
<div id="header_bg">
<div id="header_glass">
<div id="header_logo">
<span>

<form id="search" action="/" name="search" method="get">
<input type="text" name="search" maxlength="32" value="{.if not|{.?search.}|Suche|{.?search.}.}" 
                onclick="if(this.value=='{.if not|{.?search.}|Suche|{.?search.}.}')this.value=''"/>
</form>
{. if not|{.%folder%=/ .}|
<a title="zur&uuml;ck" href=".."><img src="/template/{.!theme.}/images/back.gif" alt="Back"
                 onmouseover="this.src='/template/{.!theme.}/images/back_over.gif';"
                 onmouseout="this.src='/template/{.!theme.}/images/back.gif';"/></a>
<a title="Startseite" href="/"><img src="/template/{.!theme.}/images/home.gif" alt="Home"   
                 onmouseover="this.src='/template/{.!theme.}/images/home_over.gif';"
                 onmouseout="this.src='/template/{.!theme.}/images/home.gif';"/></a>
|
<img src="/template/{.!theme.}/images/back_off.gif" alt=""/>
<img src="/template/{.!theme.}/images/home_off.gif" alt=""/>
.}
{.if|{.get|can upload.}|
<a title="Hochladen" href="javascript:void(0);" onclick="window.open('~upload','Uploads','width=770,height=515,
                 left=100,top=100,scrollbars=1,resizable=1');">
                <img src="/template/{.!theme.}/images/upload.gif" alt="Upload"/></a>
|
<img src="/template/{.!theme.}/images/upload_off.gif" alt=""/>
.}
{.if|{.get|can archive.}
|<a title="Ordner Download" href="~folder.tar{.if|{.get|can recur.}|?recursive.}">
                 <img src="/template/{.!theme.}/images/download.gif" alt="Download"/></a>
|<img src="/template/{.!theme.}/images/download_off.gif" alt=""/>
.}
{.if not|%user%
|<a title="Registrieren" href="javascript:void(0);" onclick="window.open
                ('/~registration','Registration','width=770,height=515,left=100,top=100,scrollbars=1,resizable=1');">
                <img src="/template/{.!theme.}/images/registration.gif" alt="Hier Registrieren"/></a>
|<img title="Du bist bereits angemeldet" src="/template/{.!theme.}/images/registration_out.gif" alt="Hier Registrieren"/>
.}
{.if not|%user%
|<a title="Login" href="~login"><img src="/template/{.!theme.}/images/login.gif" alt="Login Here"/></a>
|<img src="/template/{.!theme.}/images/login_off.gif" alt=""/>
.}
                <img src="/template/{.!theme.}/images/spacer.gif" alt="" />
<a title="Chat" href="javascript:void(0);" 
                onclick="window.open('/~chat','Chat','width=770,height=800,scrollbars=1,resizable=1');">
                <img src="/template/{.!theme.}/images/chat.gif" alt="*NEU* Chat"/></a>

</span>
</div>
</div>
</div>
<div id="content">

<div id="tree" class="tree">
Directory: &nbsp; <a href="/">Home</a>&nbsp;&nbsp;<img src="/template/{.!theme.}/images/arrow.gif" alt="/" align="top"/>&nbsp;&nbsp;<a href="/">Server Error</a>
</div>
<div id="list" class="error">
<div style="clear:both;"></div>
%content%
<div style="clear:both;"></div>
</div>
<div id="footer">
<span class="left">  Servertime: &nbsp;%timestamp%&nbsp; | &nbsp; Server uptime:&nbsp;&nbsp;%uptime% &nbsp; | &nbsp; Seite generiert in:&nbsp;&nbsp;%build-time%sec &nbsp; | &nbsp; Willkommen: {.if not|%user%|Gast|%user%.}

</span>
<span class="right">Powered by: <a href="http://www.rejetto.com/hfs">rejetto HFS</a> (%version%, build %build%) &amp; <a href="http://www.rawr-designs.com">RAWR-Designs</a></span>
</div>
</div>



</body>
</html>

Thats the Ban-code
Code: [Select]
[ban]

<img src="/template/{.!theme.}/images/ban.jpg" alt=""/>
<span>Du wurdest wegen %reason% von diesem Server tempo&auml;r verbannt.... bitte e-Mail an {.!E-Mail.}</span>



i should desrcibe the problem better:

the images (not all but 4 of 6) are loaded, but they disappear after 1/5second...
i dont know why...


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
the images don't load BECAUSE the ip is banned.
HFS has no easy way to know those images should be excluded from the banning.


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
no file can be loaded by the browser.
to include the style you can load the file with macros
<style>
{.load|yourfile.css.}
</style>


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
when you load your css with makro also the images would be loaded (the images which are in the css file)

thank you for the tipp


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
no, they won't be loaded.
if they are, it's likely to be just the browser cache. try emptying it.


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile