-
AuthorPosts
-
westover Friend
westover
- Join date:
- October 2008
- Posts:
- 6
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 1 posts
December 8, 2008 at 2:52 pm #136065Is there anyway to make the images in the JA News module linkable? I tried making the image in the article linkable but apparently the module strips the link away when it posts to the front page.
I found this code in the blog_item.php:
<h4 class="jazin-title"><a href="<?php echo $link;?>" title="<?php echo strip_tags($row->title);?>"><?php echo $row->title;?></a></h4>
<?php if ($showimage) : ?>
<?php echo $image; ?>
<?php endif; ?>I tried to add in the $link to this like so:
<h4 class="jazin-title"><a href="<?php echo $link;?>" title="<?php echo strip_tags($row->title);?>"><?php echo $row->title;?></a></h4>
<?php if ($showimage) : ?>
<a href="<?php echo $link;?>"<?php echo $image; ?></a>
<?php endif; ?>When I change the code as done above, it does nothing. It doesn’t see the <a href> tag.
Any help would be appreciated.
1 user says Thank You to westover for this useful post
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
December 9, 2008 at 8:25 am #281911Hi westover !
You can do it following way below :
Open blog_item.php file in templatesja_uvitehtmlmod_janews folder, find following code section at about line 47 :
<?php if ($showimage) : ?>
<?php echo $image; ?>
<?php endif; ?>
change to :
<?php if ($showimage) : ?>
<a href="<?php echo $link; ?>"><?php echo $image; ?></a>
<?php endif; ?>
1 user says Thank You to Sherlock for this useful post
instantinlaw Friendinstantinlaw
- Join date:
- February 2007
- Posts:
- 1646
- Downloads:
- 6
- Uploads:
- 28
- Thanks:
- 68
- Thanked:
- 210 times in 62 posts
December 29, 2008 at 1:20 pm #284240hainn84;94276Hi westover !
You can do it following way below :
Open blog_item.php file in templatesja_uvitehtmlmod_janews folder, find following code section at about line 47 :
<?php if ($showimage) : ?>
<?php echo $image; ?>
<?php endif; ?>
change to :
<?php if ($showimage) : ?>
<a href="<?php echo $link; ?>"><?php echo $image; ?></a>
<?php endif; ?>
Hi hainn84,
This did not work for me for images in the roling headline, althought it did work for the articles below it.. I am trying to get the large image in the rolling headline box to be linkable. Can you help?
Thanks1 user says Thank You to instantinlaw for this useful post
instantinlaw Friendinstantinlaw
- Join date:
- February 2007
- Posts:
- 1646
- Downloads:
- 6
- Uploads:
- 28
- Thanks:
- 68
- Thanked:
- 210 times in 62 posts
January 1, 2009 at 11:29 am #284449anyone have any ideas?
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
January 2, 2009 at 7:15 am #284485Dear instantinlaw !
Headline is JA news FP module , it isn’t JA news module, You can add link for image in JA News FP module following way below :
Open headline_fp.php file in templatesja_uvitehtmlmod_janews_fp folder, find following code line at about line 54 :
<?php echo $image; ?>
change to :
<a href="<?php echo $link;?>"><?php echo $image; ?> </a>
2 users say Thank You to Sherlock for this useful post
instantinlaw Friendinstantinlaw
- Join date:
- February 2007
- Posts:
- 1646
- Downloads:
- 6
- Uploads:
- 28
- Thanks:
- 68
- Thanked:
- 210 times in 62 posts
January 3, 2009 at 2:55 pm #284611Hi hainn84,
It was actually headline_fp.php that I needed to change at about line 107, but you got me on the right track with your post. It’s working perfectly now. It’s default_fp.php that has the code about line 50.
Thanks 🙂1 user says Thank You to instantinlaw for this useful post
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by instantinlaw 15 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum