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

    How do we get the images that rotate within the janewsflash to retain their <a href=> links?

    We want to be able to have our customers click on the image that is in the newsflash.

    didima Friend
    #319279

    would be nice, and more usefull but dont know how ?

    gatsu000 Friend
    #319424

    We are licensed members we need someone such as an admin to reply to tihs message on how to make our images clickable.

    Anonymous Moderator
    #319834

    Hi

    For this case, please open modulesmod_janewsflashhelper.php file, at about line 247, find following code:

    $html = str_replace("##IMAGE##", $img , $html);

    and change to:


    $html = str_replace("##IMAGE##", "<a href="".$this->getLink( $row )."" title="".$row->title."">" . $img . "</a>", $html);

    Hope it helps

    gatsu000 Friend
    #319908

    We don’ have a helper file but we did fine the file that does have that line in it. We modified it to exactly what you said We attached a text version of the php file that contained the new code.

    This is the error our pages display when we put in the new code

    Fatal error: Using $this when not in object context in /home/ordere5/public_html/modules/mod_janewsflash/ja_newsflash/ja-newsflashloader.php on line 198


    Saguaros Moderator
    #319914

    Hello gatsu000!

    JA Developer give us the solution for the lastest version. With your module, it’s oldest version of the JA News Flash.
    i have my solution to fix error in your file:
    at line 198:
    [PHP]
    $html = str_replace(“##IMAGE##”, “<a href=””.$this->getLink( $row ).”” title=””.$row->title.””>” . $img . “</a>”, $html);
    [/PHP]

    You will replace them by this code:
    [PHP]
    $html = str_replace(“##IMAGE##”, “<a href=””.$row->link_on.”” title=””.$row->title.””>” . $img . “</a>”, $html);
    [/PHP]

    gatsu000 Friend
    #319998

    that still didn’t fix it. They are clickable now but they don’t retain the href that we give them it redirects to its own little url

    for example this is where it sends us when we click on one of the photos
    /modules/mod_janewsflash/ja_newsflash/component/content/125?task=view

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

This topic contains 7 replies, has 4 voices, and was last updated by  gatsu000 15 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum