4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Sun on July 28, 2009, 04:43:07 PM

Title: 404 error
Post by: Sun on July 28, 2009, 04:43:07 PM
How to change error "404 Not found" to my page with text? How i remember, i see this solution on this forum, but now i can't find it  :oops:
Title: Re: 404 error
Post by: Rembrandt on July 28, 2009, 07:25:37 PM
Hi!
How to change error "404 Not found" to my page with text? How i remember, i see this solution on this forum, but now i can't find it  :oops:
in your htaccess,write:
Quote
ErrorDocument 404 /example.html
example.html put in the root

mfg Andi
Title: Re: 404 error
Post by: Sun on July 28, 2009, 09:12:15 PM
Thank you, Andy!

May i ask you one more question? In you website you use spoilers(for example, in details.html i can close/open information about Exif and etc.). How you do this?
Title: Re: 404 error
Post by: Rembrandt on July 28, 2009, 09:40:18 PM
Hi!
..for example, in details.html i can close/open information about Exif and etc.). How you do this?
its easy  :)

creat a new folder and call "js", add in the root
creat a new file and call "switchtoogle.js" ,and add the file in the "js" folder:

function toggle(obj) {
  with (document.getElementById(obj).style) { display = (display == 'none') ? 'block' : 'none'; }
}


in your header.html:

<script type="text/javascript" src="./js/switchtoogle.js"></script>


and the detail.html:

{if iptc_info}
<div class="toggle">
<a href="javascript:toggle('lnk1')" >IPTC Info: &nbsp;anzeigen</a>
</div>
<div id="lnk1" style="DISPLAY:none;">
{iptc_info}
</div>
{endif iptc_info}


next toogle, call 'inkl2'

 with tables : http://www.4homepages.de/forum/index.php?topic=22216.msg121180#msg121180

mfg Andi
Title: Re: 404 error
Post by: Sun on July 28, 2009, 09:55:04 PM
Andy, thank you very-very-very much!  :D

I don't know german, but i think, i will cope with it.