-
AuthorPosts
-
October 13, 2010 at 1:02 am #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 FriendDon Lee
- Join date:
- March 2010
- Posts:
- 923
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 41
- Thanked:
- 274 times in 238 posts
October 13, 2010 at 4:48 am #358700Hi,
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]October 13, 2010 at 5:07 pm #358818Hello!
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?
October 13, 2010 at 5:32 pm #358820I 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]October 14, 2010 at 11:15 pm #359022hi 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 FriendDon Lee
- Join date:
- March 2010
- Posts:
- 923
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 41
- Thanked:
- 274 times in 238 posts
October 15, 2010 at 3:51 am #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? -
AuthorPosts
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