Author Topic: 404 error  (Read 4088 times)

0 Members and 1 Guest are viewing this topic.

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
404 error
« 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:
Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Rembrandt

  • Guest
Re: 404 error
« Reply #1 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

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: 404 error
« Reply #2 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?
Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Rembrandt

  • Guest
Re: 404 error
« Reply #3 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

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: 404 error
« Reply #4 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.
Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.