rollover image works only from /pages/foo.html not index.php

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
neostar
Regular
Posts: 9
Joined: Mon Feb 06, 2006 8:59 pm

rollover image works only from /pages/foo.html not index.php

Post by neostar »

I have a problem with some rollover images on a website.

The rollover works fine when it is a page with /pages/foo.html but any URL that has index.php in it breaks the rollover.

broken:
http://twilight-band.de/index.php
http://twilight-band.de/index.php?/gallery2.html

working:
http://twilight-band.de/pages/band.html
http://twilight-band.de/pages/biography.html

I'm not quite sure how to isolate this problem. I think it must have something to do with the mod_rewrite command, but I couldn't figure it out myself.

Thanks for your help
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: rollover image works only from /pages/foo.html not index

Post by garvinhicking »

Hi!

We fixed this in a small ICQ session; just to let others know: It was a index.tpl template issue where the javascript was not put in the <body> tag. :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
neostar
Regular
Posts: 9
Joined: Mon Feb 06, 2006 8:59 pm

Post by neostar »

Here is the piece of code we fixed, I was just too tired to see that.

Old:

Code: Select all

{if $staticpage_pagetitle} 
<body id="{$staticpage_pagetitle}" onload="preloadImages();"> 
{else} 
<body id="Weblog"> 
{/if} 
New:

Code: Select all

{if $staticpage_pagetitle} 
<body id="{$staticpage_pagetitle}" onload="preloadImages();"> 
{else} 
<body id="Weblog" onload="preloadImages();"> 
{/if} 
Post Reply