test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • darrenf Friend
    #165800

    Occasionally, images do not show in the tab area when my SEF is turned on.
    After looking through it more closely, I realized that its fine where there is one sub directory as part of the URL. However, when there more than that, the thumbnail fails to load.

    thangnn1510 Friend
    #399247

    Hi Draren!

    Could you give a link and screenshot for me. I’ll check for you.

    Thank you.

    darrenf Friend
    #399254

    Any of you have a solution?

    darrenf Friend
    #399571

    Didn’t see your reply here earlier.

    You can check case id: KEC-134-91410. I have already attached the screen shots.

    thangnn1510 Friend
    #399767

    Hi Darren!

    This isn’t bug from JA-TABS. This is JA CONTENTSLIDERII bug. Please do this to solve it:

    – Open helper.php under modules/mod_jacontentslider2

    – Replace this code:

    if( $thumbnailMode != 'none' && $jaimage->sourceExited($image) ) {
    $imageURL = $jaimage->resize( $image, $width, $height, $crop, $aspect );
    if( $returnURL ){
    return $imageURL;
    }
    if ( $imageURL != $image && $imageURL ) {
    $swidth = $width ? "width="$width"" : "";
    $sheight = $height ? "height="$height"" : "";
    $image = "<img src="".$imageURL."" alt="{$title}" title="{$title}" $swidth $sheight $attrs />";
    } else {
    $image = "<img $attrs src="$image" alt="{$title}" title="{$title}" $swidth $sheight />";
    }
    } else {
    if( $returnURL ){
    return $image;
    }
    $swidth = $width ? "width="$width"" : "";
    $sheight = $height ? "height="$height"" : "";
    $image = "<img $attrs src="$image" alt="{$title}" title="{$title}" $swidth $sheight />";
    }

    by this code:


    if ( $image ) {
    $title = strip_tags( $title );
    $thumbnailMode = $params->get( 'source-articles-images-thumbnail_mode', 'crop' );
    $aspect = $params->get( 'source-articles-images-thumbnail_mode-resize-use_ratio', '1' );
    $crop = $thumbnailMode == 'crop' ? true:false;
    $jaimage = JAImage::getInstance();

    if( $thumbnailMode != 'none' && $jaimage->sourceExited($image) ) {
    $imageURL = $jaimage->resize( $image, $width, $height, $crop, $aspect );
    if( $returnURL ){
    return $imageURL;
    }
    if ( $imageURL != $image && $imageURL ) {
    $swidth = $width ? "width="$width"" : "";
    $sheight = $height ? "height="$height"" : "";
    $image = "<img src="".JURI::root().$imageURL."" alt="{$title}" title="{$title}" $swidth $sheight $attrs />";
    } else {
    $image = "<img $attrs src="".JURI::root().$image."" alt="{$title}" title="{$title}" $swidth $sheight />";
    }
    } else {
    if( $returnURL ){
    return $image;
    }
    $swidth = $width ? "width="$width"" : "";
    $sheight = $height ? "height="$height"" : "";
    $image = "<img $attrs src="".JURI::root().$image."" alt="{$title}" title="{$title}" $swidth $sheight />";
    }

    Tell me if you need more helps. Thank you.

    thomaskremer Friend
    #424464

    Had the same problem, already for a while.

    Fix worked perfectly for me. Thanks!
    Thomas

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

This topic contains 6 replies, has 3 voices, and was last updated by  thomaskremer 13 years, 1 month ago.

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