test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • kallan Friend
    #128759

    Hi,

    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.gif

    Any ideas why this might be happening?

    Cheers
    Kallan

    kallan Friend
    #251642

    Update:

    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
    Kallan

    anisjolly Friend
    #251660

    Hi 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 Friend
    #251788

    Hi 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
    Kallan

    Sherlock Friend
    #251819

    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>';

    anisjolly Friend
    #251840

    Hey 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 Friend
    #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’).’);”‘;

Viewing 7 posts - 1 through 7 (of 7 total)

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