-
AuthorPosts
-
October 1, 2009 at 10:01 am #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 Frienddidima
- Join date:
- September 2007
- Posts:
- 394
- Downloads:
- 2
- Uploads:
- 6
- Thanks:
- 12
- Thanked:
- 31 times in 3 posts
October 1, 2009 at 11:40 am #319279would be nice, and more usefull but dont know how ?
October 3, 2009 at 12:54 am #319424We are licensed members we need someone such as an admin to reply to tihs message on how to make our images clickable.
Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
October 8, 2009 at 4:54 am #319834Hi
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
October 8, 2009 at 4:32 pm #319908We 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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 8, 2009 at 5:11 pm #319914Hello 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]October 9, 2009 at 11:02 am #319998that 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 -
AuthorPosts
This topic contains 7 replies, has 4 voices, and was last updated by gatsu000 15 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum