[Solved]K2 item popup does not load images

Popular automatic website translation tool

[Solved]K2 item popup does not load images

Postby anaffelici » Tue Jun 19, 2012 10:29 pm

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

Code: Select all
<!-- 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>
anaffelici
 
Posts: 14
Joined: Thu Jun 14, 2012 4:04 am

Re: K2 item popup does not load images

Postby Yana » Wed Jun 20, 2012 6:25 pm

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]
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: K2 item popup does not load images

Postby Yana » Wed Jun 20, 2012 6:25 pm

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]
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: K2 item popup does not load images

Postby anaffelici » Wed Jun 20, 2012 10:03 pm

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]

Image

Tks
anaffelici
 
Posts: 14
Joined: Thu Jun 14, 2012 4:04 am

Re: K2 item popup does not load images

Postby anaffelici » Wed Jun 20, 2012 10:12 pm

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]
anaffelici
 
Posts: 14
Joined: Thu Jun 14, 2012 4:04 am

Re: K2 item popup does not load images

Postby Yana » Thu Jun 21, 2012 12:22 am

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]
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: K2 item popup does not load images

Postby anaffelici » Thu Jun 21, 2012 1:43 am

Perfect!

Thanks a lot!
anaffelici
 
Posts: 14
Joined: Thu Jun 14, 2012 4:04 am


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest

2GLux
cron