-
AuthorPosts
-
March 2, 2012 at 7:41 pm #174552
I want to make the thumbnail pictures that appear on JA New Pro to be clickable/linkable. How can I accomplish this
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
March 2, 2012 at 8:26 pm #441466<em>@blink_black 304648 wrote:</em><blockquote>I want to make the thumbnail pictures that appear on JA New Pro to be clickable/linkable. How can I accomplish this</blockquote>
I am not entirely certain that this is possible. Also, does not the thumbnail image and the headline of the particular content link back to the article anyway?March 2, 2012 at 8:47 pm #441467Yes Tom. That is exactly what I wanna do. I want the the thumbnail image to link back to the article. Only the title is linking back. The thumbnail is not. http://dakuz.com/joomla
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
March 2, 2012 at 9:05 pm #441474<em>@blink_black 304653 wrote:</em><blockquote>Yes Tom. That is exactly what I wanna do. I want the the thumbnail image to link back to the article. Only the title is linking back. The thumbnail is not. http://dakuz.com/joomla</blockquote>
It’s possible – but it requires messing around with the code (which is not always the best idea).There may be a 3rd party extension that can do the trick though, such as SP Thumbnail
March 2, 2012 at 9:24 pm #441478Thanks Tom but seems I didnt explain my problem well. Basically, I want a code change on how to make the thumbnail images linkable to the article itself. Someone explained it here for an older template: http://www.joomlart.com/forums/topic/ja-news-module-linkable-images/
The problem now is that his explanation does not work with JA NEX. The 3rd party extension you specified will zoom in the thumbnail image and make it bigger.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
March 2, 2012 at 9:34 pm #441480<em>@blink_black 304666 wrote:</em><blockquote>Thanks Tom but seems I didnt explain my problem well. Basically, I want a code change on how to make the thumbnail images linkable to the article itself. Someone explained it here for an older template: http://www.joomlart.com/forums/topic/ja-news-module-linkable-images/
The problem now is that his explanation does not work with JA NEX.</blockquote>
How is the code different that you cannot adapt the same principle?March 2, 2012 at 9:39 pm #441481I found the file to open which is blog_item.php. In JA NEX, [PHP]<?php if($showimage) echo $row->image; ?>[/PHP]
In his explanation, it is: [PHP]<?php if ($showimage) : ?>
<?php echo $image; ?>
<?php endif; ?>[/PHP]I have tried every form of alteration but I just cant get it
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
March 2, 2012 at 10:30 pm #441490So the following recommendation did not work?
Open blog_item.php file in templatesja_nexhtmlmod_janews folder, find following code section . . . .
<blockquote><?php if ($showimage) : ?><?php echo $image; ?><?php endif; ?></blockquote>
change to :
<blockquote><?php if ($showimage) : ?>
<a href=”<?php echo $link; ?>”><?php echo $image; ?></a>
<?php endif; ?>
</blockquote>March 2, 2012 at 11:49 pm #441522No, that did not work. It actually crashes the entire site.
pixelzombie Friendpixelzombie
- Join date:
- August 2010
- Posts:
- 339
- Downloads:
- 2
- Uploads:
- 49
- Thanks:
- 32
- Thanked:
- 168 times in 107 posts
March 3, 2012 at 12:18 am #441531Hi there,
this should really be a standard feature since everybody tries to click the image 😉please open templatesja_nexhtmlmod_janewspronexblog_item.php and change line 44 from
<div class="ja-zincontent clearfix"><?php if($showimage) echo $row->image; ?>
<?php if ( $showcreator || $showdate ) : ?>
to this
<div class="ja-zincontent clearfix">
<?php if($showimage) : ?>
<a href="<?php echo $row->link;?>" title="<?php echo strip_tags($row->title);?>">
<?php echo $row->image; ?>
</a>
<?php endif; ?>
<?php if ( $showcreator || $showdate ) : ?>
With these changes you’ll get the article link on the image.
I’ve added the file for you 🙂Cheers
Frank
7 users say Thank You to pixelzombie for this useful post
March 3, 2012 at 12:24 am #441534Next time I make my way to Germany, i owe you a bottle of beer. You are awesome pixelzombie. Thanks a lot. Works perfectly well
pixelzombie Friendpixelzombie
- Join date:
- August 2010
- Posts:
- 339
- Downloads:
- 2
- Uploads:
- 49
- Thanks:
- 32
- Thanked:
- 168 times in 107 posts
March 3, 2012 at 12:48 am #441552I’ll take you up on that. :laugh:
Glad it worked out for you!March 3, 2012 at 6:12 pm #441694Pixel,
Let me bother you a minute. How can i do the same thing for category blog layout. Check out this link::: http://dakuz.com/joomla/all-category/world-news
pixelzombie Friendpixelzombie
- Join date:
- August 2010
- Posts:
- 339
- Downloads:
- 2
- Uploads:
- 49
- Thanks:
- 32
- Thanked:
- 168 times in 107 posts
March 5, 2012 at 12:45 am #441821You may bother me 🙂
in the file templatesja_nexhtmlcom_contentcategoryblog_item.php at line 109 change this
<?php if ($image) : ?>
<div class="article-image" style="float:left;">
<?php echo $image ?>
</div>
<?php endif; ?>
to this
<?php if ($image) : ?>
<div class="article-image" style="float:left;">
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>">
<?php echo $image ?>
</a>
</div>
<?php endif; ?>
I’ve added the updated file for your convenience :p
Cheers
Frank
PS: That makes 2 bottles :-*
1 user says Thank You to pixelzombie for this useful post
-
AuthorPosts
This topic contains 16 replies, has 4 voices, and was last updated by pixelzombie 12 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum