-
AuthorPosts
-
corticalcolumn Friend
corticalcolumn
- Join date:
- May 2011
- Posts:
- 91
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 6 times in 1 posts
May 1, 2013 at 9:01 pm #187216Hi,
I would like to ask how to disable possibility to view full image in K2 item or make it visible in some nice lightbox?
At the moment there is only part of whole image visible and if I click it, it just appear in the same window as address on jpg file. Is it possible to show it in lightbox or disable that option at all?
Thank you 🙂
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 2, 2013 at 10:20 am #491663Hi corticalcolumn,
You can disable it by removing link of that image in k2 item. Go to file: templatesja_fubixhtmlcom_k2ja_fubixitem.php
at approx line 43, you will see this code:
<blockquote>
<span class=”itemImage”>
<a class=”modal-image” rel=”{handler: ‘image’}” href=”<?php echo $this->item->imageXLarge; ?>” title=”<?php echo JText::_(‘K2_CLICK_TO_PREVIEW_IMAGE’); ?>”>
<img src=”<?php echo $this->item->image; ?>” alt=”<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>” style=”width:<?php echo $this->item->imageWidth; ?>px; height:auto;” />
</a>
</span>
</blockquote>Remove the <a> tag should do the trick.
Regards
1 user says Thank You to Saguaros for this useful post
corticalcolumn Friendcorticalcolumn
- Join date:
- May 2011
- Posts:
- 91
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 6 times in 1 posts
May 3, 2013 at 9:43 am #491785works perfectly i changed <a class… for <div class… and changed also K2_CLICK_TO_PREVIEW_IMAGE in language file to name of my website (instead info ‘click here to see image’ etc).
thank you for your help!
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 3, 2013 at 10:15 am #491791You are welcome :laugh:
Best Regards
corticalcolumn Friendcorticalcolumn
- Join date:
- May 2011
- Posts:
- 91
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 6 times in 1 posts
May 3, 2013 at 11:27 am #491805Sorry to bother you…
Any idea how to make it as lightbox popup (overlayer or how to is called)? Like in simple image gallery for K2 for example… I mean that some of pictures should be visible at full (some articles are related to astronomy and it is better to show full range of starts, galaxy, etc.)…
If you can help me how to make it, that would be great. Thank you. You have got it in Ja Mitius template for example…
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 4, 2013 at 2:56 am #491847Agree with you that it would be ideal if it opens in popup window. I reported this to dev team and consider it as improvement and will update it in the next release of this template.
Currently, you can try with this solution:
– Open file: ja_fubixhtmlcom_k2ja_fubixitem.php
At approx line 44: <a class=”modal-image” rel=”{handler: ‘image’}” (you may need to roll back the previous change 🙂 )
change to: <a class=”modal modal-image” rel=”{handler: ‘image’}”
– Then go to css file: templatesja_fubixcssk2.css
add this css rule:
#k2Container .itemImageBlock .itemImage .modal{
background: none repeat scroll 0 0 transparent;
border: 0 none;
border-radius: 0 0 0 0;
box-shadow: none;
left: auto;
margin: 0;
padding: 0;
position: relative;
top: auto;
width: auto;
z-index: 1;
}
Give it a try and let me know how it goes
1 user says Thank You to Saguaros for this useful post
corticalcolumn Friendcorticalcolumn
- Join date:
- May 2011
- Posts:
- 91
- Downloads:
- 0
- Uploads:
- 11
- Thanks:
- 16
- Thanked:
- 6 times in 1 posts
May 8, 2013 at 9:07 pm #492275YOU ARE THE MASTER 🙂
works like a charm! 😀
thank you for your time and help. take care!
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by corticalcolumn 11 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum