K2 Image Pop-Up

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon May 20, 2013 12:57 pm
Reply with quote
Report this post
Hi

I would like to disable the image pop-up in K2 for the 'item view' when you mouse over, how do I do this please?

Many thanks
User avatar
Expert Boarder

GK User
Mon May 20, 2013 1:15 pm
Reply with quote
Report this post
Could You please provide an url to page where You would like the "popup" to be disabled?
User avatar
Moderator

GK User
Mon May 20, 2013 2:57 pm
Reply with quote
Report this post
If You are talking about this scalling effect animation, You can disable it by enabling override.css in template settings, then editing:
/templates/gk_storebox/css/override.css and adding at it's end:

#k2Container .itemImageBlock img:hover {
-webkit-transform: none;
-moz-transform: none;
-ms-transform: none;
-o-transform: none;
transform: none;
border: 1px solid #e8e7e7;
}
User avatar
Moderator

GK User
Mon May 20, 2013 3:13 pm
Reply with quote
Report this post
To disable link behavior over image edit the file:
/templates/gk_storebox/html/com_k2/templates/default/item.php
find line number 105 and change it from:
Code: Select all
<a class="itemImage modal" 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>

to:
Code: Select all
<a class="itemImage modal" rel="{handler: 'image'}" 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>
User avatar
Moderator

GK User
Mon May 20, 2013 3:36 pm
Reply with quote
Report this post
Cyberek wrote:To disable link behavior over image edit the file:
/templates/gk_storebox/html/com_k2/templates/default/item.php
find line number 105 and change it from:
Code: Select all
<a class="itemImage modal" 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>

to:
Code: Select all
<a class="itemImage modal" rel="{handler: 'image'}" 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>




Many thanks, I have done this, and tried this previously myself but for some reason I still have the popup.

I have cleared all cache, in the browser, and the backend of the website but still get the popup image?
User avatar
Expert Boarder

GK User
Mon May 20, 2013 3:47 pm
Reply with quote
Report this post
Please send me a PM with:
1. URL to your website
2. ftp data (host, user, password)
3. link to this thread

Ill try to check what is wrong :).
User avatar
Moderator

GK User
Thu May 23, 2013 10:45 am
Reply with quote
Report this post
Somehow You havent changed the line in that file ;).
I have corrected the file for You.
If You like the "zoom in" animation on element - remember to remove
Code: Select all
#k2Container .itemImageBlock img:hover {
-webkit-transform: none;
-moz-transform: none;
-ms-transform: none;
-o-transform: none;
transform: none;
border: 1px solid #e8e7e7;
}

from override.css
User avatar
Moderator

GK User
Thu May 23, 2013 11:08 am
Reply with quote
Report this post
Cyberek wrote:Somehow You havent changed the line in that file ;).
I have corrected the file for You.
If You like the "zoom in" animation on element - remember to remove
Code: Select all
#k2Container .itemImageBlock img:hover {
-webkit-transform: none;
-moz-transform: none;
-ms-transform: none;
-o-transform: none;
transform: none;
border: 1px solid #e8e7e7;
}

from override.css



many thanks for your help on this.
User avatar
Expert Boarder

GK User
Fri Jul 05, 2013 10:44 pm
Reply with quote
Report this post
I am having a similar issue, I copied your code and it helped. The issue I have not is that I get an image preview pop-up which doesn't display the image, it looks like it is trying to. However, I do NOT want to have the preview I would like to disable it. I love the hoover/zoom, but want to disable the link and the preview.
User avatar
Senior Boarder

GK User
Mon Jul 08, 2013 9:19 am
Reply with quote
Report this post
Please post an url to your site where I can check exactly whats wrong.
User avatar
Moderator

GK User
Mon Jul 22, 2013 7:06 pm
Reply with quote
Report this post
@bigl
please edit the file:
/templates/gk_storebox/html/com_k2/templates/default/item.php
and around line no 104 find line that looks this way:
Code: Select all
<a class="itemImage modal" 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>

replace it with:
Code: Select all
<a class="itemImage modal"> <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>


It should do the trick
User avatar
Moderator


cron