Forum Archive - [Solved]K2 item popup does not load images

[Solved]K2 item popup does not load images
Jun 19, 2012 6:29 pm by anaffelici
Hi, I saw some posts about image loading problem on pages translated. I'm using K2 and the popup does not load images. The solution indicated by the support of gTranslate was in some cases to insert the code class = "nturl." I do not know exactly where to include this code, could you help me? tks in advance! COMPONENTES/COM_K2/TEMPLATES/DEFAULT/ITEM.PHP <!-- Item Image --> <div class="itemImageBlock"> <span class="itemImage"> <a class="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> </span>
Re: K2 item popup does not load images
Jun 20, 2012 2:25 pm by Yana
Hi, What is your website address? You can add the rewrite rule in your .htaccess file to redirect images Here is an example : RewriteRule ^([a-z]{2})/images/(.*) /images/$2 [R=301,L]
Re: K2 item popup does not load images
Jun 20, 2012 2:25 pm by Yana
Hi, What is your website address? You can add the rewrite rule in your .htaccess file to redirect images Here is an example : RewriteRule ^([a-z]{2})/images/(.*) /images/$2 [R=301,L]
Re: K2 item popup does not load images
Jun 20, 2012 6:03 pm by anaffelici
http://www.voar.tv I tried this and didn't work. Obviously I made something wrong... I just pasted that line in the end of the .htaccess file RewriteRule ^([a-z]{2})http://voar.tv/en/images/(.*) http://voar.tv/images/$2 [R=301,L] http://voar.tv/images/suporte/Esport_htaccess.jpg Tks
Re: K2 item popup does not load images
Jun 20, 2012 6:12 pm by anaffelici
Tried this too: RewriteRule ^([a-z]{2})http://www.voar.tv/en/media/k2/items/cache/(.*) http://www.voar.tv/media/k2/items/cache/$2 [R=301,L]
Re: K2 item popup does not load images
Jun 20, 2012 8:22 pm by Yana
Hi, Please add the following line after "RewriteEngine On" line RewriteRule ^([a-z]{2})/media/k2/items/cache/(.*) /media/k2/items/cache/$2 [R=301,L]
Re: K2 item popup does not load images
Jun 20, 2012 9:43 pm by anaffelici
Perfect! Thanks a lot!

SIMILAR TOPICS

Highly increased load on website from 51.255.131.149Feb 19, 2019 8:29 pmReplies: 1Post by: Ant_Z
Translate website to any specific language, on page loadJan 19, 2019 6:49 amReplies: 1Post by: Leaon7756
Is it possible to unhook Gtranslate's CSS (ie. not load it)?Nov 23, 2018 4:01 pmReplies: 1Post by: oxygensmith
Close (beta) Popup with ESC KeyMay 5, 2018 4:51 pmReplies: 4Post by: glensidepld
Display modal popup upon 'Add to cart' (Virtuemart 3)Apr 15, 2018 2:21 pmReplies: 1Post by: 4FF

Try GTranslate with a free 15 day trial