k2 Image Cache - What We Do Images on demo
Responsive, suitable for any type of business, built for any needs elegant one-page Joomla template.
Rate this topic: 1.00 out of 6 based on 1 vote(s)
- GK User
- Tue Mar 01, 2016 7:00 pm
- Reply with quote
- Report this post
I have changed the images in the K2 articles, and they are correct on the articles themselves, but it does not seem to change the main images on the front page of the website. I'm not sure if this is a caching issue, or what. I have cleared the cache, and don't even have cache enabled anyway for a production site. Any suggestions?
-
- Expert Boarder
- teitbite
- Sun Mar 06, 2016 11:33 am
- Reply with quote
- Report this post
Hi
I believe You are talking about NSP module. It has its own cache in /modules/mod_news_pro_gk5/cache, but they are being replaced with time set in module's settings, so I bet it was done by now.
I believe You are talking about NSP module. It has its own cache in /modules/mod_news_pro_gk5/cache, but they are being replaced with time set in module's settings, so I bet it was done by now.
-
- Moderator
- teitbite
- Sun Mar 06, 2016 11:34 am
- Reply with quote
- Report this post
Sorry, hit send by accident. If it was not created make sure permissions in this folder /modules/mod_news_pro_gk5/cache allows scripts to create/modify files.
You can clear all files You'll find there.
You can clear all files You'll find there.
-
- Moderator
- GK User
- Mon Mar 07, 2016 11:10 pm
- Reply with quote
- Report this post
I am still having a problem... Also, on a side note, I don't want visitors to be able to click on an image within an article. Right now, they can click on a k2 article and it will open the image in a pop out window. Where in the module or article do I adjust this setting?
-
- Expert Boarder
- teitbite
- Sun Mar 13, 2016 11:21 am
- Reply with quote
- Report this post
Hi
I think it's time to see the problem live. I'm afraid I do not understand what You mean right now. Please tell me the exact url to the page with problem and describe what to do to see it.
I think it's time to see the problem live. I'm afraid I do not understand what You mean right now. Please tell me the exact url to the page with problem and describe what to do to see it.
-
- Moderator
- GK User
- Mon Mar 14, 2016 3:06 pm
- Reply with quote
- Report this post
I can show you one issue right on your own website that I am asking about:
https://demo.gavick.com/joomla25/creativity/
If you click on one of the articles under "what we do," and click on the image in the article, it enlarges into a separate window if clicked on. I don't want it to do that.
As for the other issue, It is working right now, but as soon as I change a bunch of things, the cache doesn't update, no matter what I mess with. However, it seems to fix itself over time. I won't be worrying about this once the site is live, so at that point, it won't be a big deal because I will rarely change things.
https://demo.gavick.com/joomla25/creativity/
If you click on one of the articles under "what we do," and click on the image in the article, it enlarges into a separate window if clicked on. I don't want it to do that.
As for the other issue, It is working right now, but as soon as I change a bunch of things, the cache doesn't update, no matter what I mess with. However, it seems to fix itself over time. I won't be worrying about this once the site is live, so at that point, it won't be a big deal because I will rarely change things.
-
- Expert Boarder
- teitbite
- Fri Mar 18, 2016 10:57 am
- Reply with quote
- Report this post
Hi
Image opens in popup for me, please check screens:
Image opens in popup for me, please check screens:
-
- Moderator
- teitbite
- Fri Mar 18, 2016 10:58 am
- Reply with quote
- Report this post
I his send by accident.
Please tell me the url to the page You have this problem on Your website. I'll see what can be wrong.
Please tell me the url to the page You have this problem on Your website. I'll see what can be wrong.
-
- Moderator
- GK User
- Fri Mar 18, 2016 10:56 pm
- Reply with quote
- Report this post
Sorry, i meant popups. I dont want the image to open at all once in the article. As for the cache issue, I can give you access to the site, but it's currently password protected..
-
- Expert Boarder
- teitbite
- Tue Mar 22, 2016 2:06 pm
- Reply with quote
- Report this post
Hi
In that case please edit /html/com_k2/templates/default/item.php find the code where image is included and remove <a></a> from around of the image.
In that case please edit /html/com_k2/templates/default/item.php find the code where image is included and remove <a></a> from around of the image.
-
- Moderator
- GK User
- Fri May 13, 2016 11:05 pm
- Reply with quote
- Report this post
I put this off, until now. but I did not see hyperlink tags with the images on that file.
-
- Expert Boarder
- teitbite
- Sun May 15, 2016 10:57 am
- Reply with quote
- Report this post
Hi
In line 113:
make it:
In line 113:
- 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>
make it:
- Code: Select all
<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;" />
-
- Moderator
- GK User
- Wed May 18, 2016 2:37 pm
- Reply with quote
- Report this post
This is the code that I found, it looks slightly different. Please confirm.
- Code: Select all
<a data-k2-modal="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>
<?php if($params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?>
<span class="itemImageCaption"><?php echo $this->item->image_caption; ?></span>
<?php endif; ?>
<?php if($params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?>
<span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span>
<?php endif; ?>
-
- Expert Boarder
- teitbite
- Fri May 20, 2016 4:17 pm
- Reply with quote
- Report this post
Hi
Are You sure You are looking into template's /html/com_k2/templates/default/item.php file and not in joomla's /components folder ?
The code I pasted is from latest version of template so I'm pretty sure it's accurate. Your code looks to be a new K2 script which will most probably work too, but this file will be omitted if the template file I've talked about earlier will still be in place.
Are You sure You are looking into template's /html/com_k2/templates/default/item.php file and not in joomla's /components folder ?
The code I pasted is from latest version of template so I'm pretty sure it's accurate. Your code looks to be a new K2 script which will most probably work too, but this file will be omitted if the template file I've talked about earlier will still be in place.
-
- Moderator
- GK User
- Mon May 23, 2016 11:17 pm
- Reply with quote
- Report this post
Yes, I'm sure, I rechecked to make sure. It's not killing my site or anything, but I would really like to remove the image popups.
-
- Expert Boarder
- teitbite
- Wed May 25, 2016 9:16 am
- Reply with quote
- Report this post
Hi
In that case please send me an access to ftp, I'll remove it by myself.
In that case please send me an access to ftp, I'll remove it by myself.
-
- Moderator
16 posts
• Page 1 of 1