-
AuthorPosts
-
kallan Friend
kallan
- Join date:
- August 2006
- Posts:
- 349
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 22
- Thanked:
- 35 times in 1 posts
May 21, 2008 at 5:05 am #128759Hi,
Without SH404 enabled the menu icons are fine. With it enabled when you are on home page and hover over a menu item the image appears correctly. However, if you then click on the link and go to the page the image is now broken and it gives a url to the image similar to:
http://www.thecale.net/grade-1-band/images/stories/kiwismmenu.gif
instead of
http://www.thecale.net/images/stories/kiwismmenu.gifAny ideas why this might be happening?
Cheers
Kallankallan Friendkallan
- Join date:
- August 2006
- Posts:
- 349
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 22
- Thanked:
- 35 times in 1 posts
June 3, 2008 at 2:59 am #251642Update:
With SH404 disabled I am still experiencing issues.
When you go to a menu item the logo for the menu item is fine. However, If you then click on a sub menu the link to the picture is incorrect.Can anyone suggest a fix for this?
You can see the problem by going to http://www.thecale.net If you go to grade 1 then click notices or contact (sub menus) the kiwi icon will disappear (and the path to it is invalid)
Cheers
Kallananisjolly Friendanisjolly
- Join date:
- April 2008
- Posts:
- 661
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 33
- Thanked:
- 96 times in 55 posts
June 3, 2008 at 7:25 am #251660Hi Kallan
You need to change the following code:
<img title=”Grade 1 Band” alt=”Grade 1 Band” src=”images/stories/kiwismmenu.gif” style=”position: absolute; left: 133px;”/>
to
<img title=”Grade 1 Band” alt=”Grade 1 Band” src=”../images/stories/kiwismmenu.gif” style=”position: absolute; left: 133px;”/>
I’ve tested this code for you using a developers tool I have and I can confirm it works and fixes your problem.
Thanks
Anis
kallan Friendkallan
- Join date:
- August 2006
- Posts:
- 349
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 22
- Thanked:
- 35 times in 1 posts
June 3, 2008 at 9:14 pm #251788Hi anisjolly,
thanks for the reply.
What file is this code in – I tried changing the base.class.php file around line 227 where it says
$itembg = ' style="background-image:url(images/stories/'.$iParams->get('menu_image').');"';
but this did not help.Thanks
KallanSherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
June 4, 2008 at 3:34 am #251819HI
Plz edit base.class.php line 230:
From
$txt = '<img src="images/stories/'.$iParams->get('menu_image').'" alt="'.$tmp->name.'" title="'.$tmp->name.'" /><span class="menu-title">' . $tmp->name . '</span>';
to
$txt = '<img src="http://www.thecale.net/images/stories/'.$iParams->get('menu_image').'" alt="'.$tmp->name.'" title="'.$tmp->name.'" /><span class="menu-title">' . $tmp->name . '</span>';
anisjolly Friendanisjolly
- Join date:
- April 2008
- Posts:
- 661
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 33
- Thanked:
- 96 times in 55 posts
June 4, 2008 at 5:31 am #251840Hey Kallan
Will send you a solution in a few hours. Just getting my little daughter ready before I set off for work.
Thanks
Anis
Michael Casha FriendMichael Casha
- Join date:
- September 2014
- Posts:
- 2561
- Downloads:
- 1
- Uploads:
- 32
- Thanks:
- 41
- Thanked:
- 119 times in 1 posts
June 4, 2008 at 6:42 am #251870<em>@nguoiabcd 56890 wrote:</em><blockquote>HI
Plz edit base.class.php line 230:
From
$txt = '<img src="images/stories/'.$iParams->get('menu_image').'" alt="'.$tmp->name.'" title="'.$tmp->name.'" /><span class="menu-title">' . $tmp->name . '</span>';
to
$txt = '<img src="http://www.thecale.net/images/stories/'.$iParams->get('menu_image').'" alt="'.$tmp->name.'" title="'.$tmp->name.'" /><span class="menu-title">' . $tmp->name . '</span>';
</blockquote>
OR:$itembg = ‘ style=”background-image:url(../images/stories/’.$iParams->get(‘menu_image’).’);”‘;
-
AuthorPosts
This topic contains 7 replies, has 4 voices, and was last updated by Michael Casha 16 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum