Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • andresreyes Friend
    #155217

    Hello,

    I am using module ja contentslider2 to showcase some pictures, but for some reason the php is writing some of the code and the images are not visible.

    <div class=”ja_slideimages_inner”>
    <div class=”content”>
    <a href=”images/stories/studio/01.jpg” title=”” rel=”<img src=”images/resized//images/stories/studio/01_594_313.jpg” alt=”01.jpg” title=”01.jpg” width=”594″ height=”313″ />” class=”ja-image”><div class=”ja-image-holder” style=”width:594px; height:313px;”> </div></a> </div>

    </div>
    </div>

    where can I change this?

    Don Lee Friend
    #358700

    Hi,

    Just go to file modules/mod_jacontentslider2/tmpl/default.php and look at line 209.
    [php]<?php if( $params->get( ‘showimages’ ) ) { ?>

    <div class=”ja_slideimages tooltips clearfix”>

    <div class=”ja_slideimages_inner”>

    <div class=”content”>

    <?php echo $image; ?>

    </div>

    </div>

    </div>

    <?php } ?>
    [/php]

    andresreyes Friend
    #358818

    Hello!

    I have checked the line you mention.

    Looking for the source of the variable, I have find in file helper.php line 335

    $image = ‘<a href=”‘.$link.'” title=”” rel=”‘.$image.'” class=”ja-image”><div class=”ja-image-holder” style=”width:’.$width.’px; height:’.$height.’px;”> </div></a>’;

    the variable marked in red is the one that changes instead of looking like these in code: <img src=”images/resized//images/stories/studio/01_594_313.jpg” alt=”01.jpg” title=”01.jpg” width=”594″ height=”313″ />
    is like this:
    <img src=”images/resized//images/stories/studio/01_594_313.jpg” alt=”01.jpg” title=”01.jpg” width=”594″ height=”313″ />

    What can I change to have the correct code?

    andresreyes Friend
    #358820

    I have found the answer.

    modules/mod_jacontentslider2/helper.php
    around line 333

    [PHP]
    //Encodes only double quotes
    $image = htmlspecialchars($image, ENT_COMPAT);
    $image = ‘<a href=”‘.$link.'” title=”” rel=”‘.$image.'” class=”ja-image”><div class=”ja-image-holder” style=”width:’.$width.’px; height:’.$height.’px;”> </div></a>’;
    } else {
    $image = ”;
    }
    // clean up globals
    return $image;
    }

    [/PHP]

    change to:
    [PHP] //Encodes only double quotes
    //$image = htmlspecialchars($image, ENT_COMPAT);
    //$image = ‘<a href=”‘.$link.'” title=”” rel=”‘.$image.'” class=”ja-image”><div class=”ja-image-holder” style=”width:’.$width.’px; height:’.$height.’px;”> </div></a>’;
    $image = ‘<a href=”‘.$link.'” title=”” rel=”” class=”ja-image”>’.$image.'</a>’;
    } else {
    $image = ”;
    }
    // clean up globals
    return $image;
    }
    [/PHP]

    Rishabh Friend
    #359022

    hi i have the same problem i tried to integrate ja contentslider2 with k2 in ja kynite 2 and it keeps loading the images on front page it doesn’t show the image i tried changing this code but it didnt work please help 🙁

    Don Lee Friend
    #359051

    <em>@taral 198565 wrote:</em><blockquote>hi i have the same problem i tried to integrate ja contentslider2 with k2 in ja kynite 2 and it keeps loading the images on front page it doesn’t show the image i tried changing this code but it didnt work please help :(</blockquote>

    Hi taral,
    Could you plz explain the issue more detail, or give me the link for check?

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

This topic contains 6 replies, has 3 voices, and was last updated by  Don Lee 14 years, 1 month ago.

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