Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • kansen Friend
    #179899

    hi

    im using a multilanguage site in joomla 2.5 and k2 component.

    the problem with this module is that it takes the tittle and intro text fine.. the link works fine too.. but the autoresize image is not showing becouse the url of the thumb has the /laguage/ in the URL

    example:

    the actual src of the thumb image is: (it show blank space and the x)
    http://example.com/beta/en/images/resized/media/k2/items/cache/94d43e327d9303539cb1e2aac7032668_Generic_150_90.jpg

    the thumb is actually in:
    http://example.com/beta/images/resized/media/k2/items/cache/94d43e327d9303539cb1e2aac7032668_Generic_150_90.jpg

    how can i remove the language paremeter from the URL of the thumb image?

    regards.

    kansen Friend
    #464093

    or how can i add the /laguage/ to the thumb cache path?

    kansen Friend
    #464094

    kind of fixed…

    just edit the
    modules/mod_jacontentslider/jaimage.php

    $this->__cacheURL = 'images/resized/';

    to

    $this->__cacheURL = "http://example.com/images/resized/';

    kansen Friend
    #464097

    uhmm it work but just in internal pages, in home page still have the error.. :/

    Ninja Lead Moderator
    #464253

    <em>@kansen 334262 wrote:</em><blockquote>hi

    im using a multilanguage site in joomla 2.5 and k2 component.

    the problem with this module is that it takes the tittle and intro text fine.. the link works fine too.. but the autoresize image is not showing becouse the url of the thumb has the /laguage/ in the URL

    example:

    the actual src of the thumb image is: (it show blank space and the x)
    http://example.com/beta/en/images/resized/media/k2/items/cache/94d43e327d9303539cb1e2aac7032668_Generic_150_90.jpg

    the thumb is actually in:
    http://example.com/beta/images/resized/media/k2/items/cache/94d43e327d9303539cb1e2aac7032668_Generic_150_90.jpg

    how can i remove the language paremeter from the URL of the thumb image?

    regards.</blockquote>

    I could not access both link above, please PM me with URL, admin access, FTP access and screenshot, I will help you out

    kansen Friend
    #464339

    hi

    i had pm you, check inbox.

    regards.

    Ninja Lead Moderator
    #464359

    I have fixed error on your site.

    Open modules/mod_jacontentslider/helper.php

    Find renderImage function

    From

    if ($imageURL != $image && $imageURL) {
    $width = $width ? "width="$width"" : "";
    $height = $height ? "height="$height"" : "";
    $image = "<img src="{$imageURL}" alt="{$title}" title="{$title}" {$width} {$height} {$attrs} />";
    }

    Change to

    if ($imageURL != $image && $imageURL) {
    $imagepath = JURI::base().$imageURL;
    $width = $width ? "width="$width"" : "";
    $height = $height ? "height="$height"" : "";
    $image = "<img src="{$imagepath}" alt="{$title}" title="{$title}" {$width} {$height} {$attrs} />";
    }

    Please check your site again

    kansen Friend
    #464465

    great! thank you ninja!

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 2 voices, and was last updated by  kansen 11 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum