Hi Buzibuzi,
To resolve this problem, please do as following:
– Open the file “helper.php” in the folder “modules/mod_jaslideshow/helpers/”, then find code:
$regex = "/<img.+classs*=s*"jaslideshow-mains*".+srcs*=s*"([^"]*)"[^>]*>/";
$regex2 = "/<img.+classs*=s*"jaslideshow-thumbs*".+srcs*=s*"([^"]*)"[^>]*>/";
preg_match ($regex, $text, $matches);
preg_match($regex2, $text, $matches2);
$images = (count($matches)) ? $matches : array();
$images2 = (count($matches2)) ? $matches2: array();
if(!empty($images)){
$data["mainImage"] = isset($images[1])?trim($images[1]):"";
}
if(!empty($images2)){
$data["thumbnail"] = isset($images[1])?trim($images2[1]):"";
}
return $data;
Replace to:
$regex = "/<img..*+classs*=s*"jaslideshow-mains*"..*+srcs*=s*"([^"]*)"[^>]*>/";
$regex2 = "/<img..*+classs*=s*"jaslideshow-thumbs*"..*+srcs*=s*"([^"]*)"[^>]*>/";
preg_match ($regex, $text, $matches);
preg_match($regex2, $text, $matches2);
$images = (count($matches)) ? $matches : array();
$images2 = (count($matches2)) ? $matches2: array();
if(!empty($images)){
$data["mainImage"] = isset($images[1])?trim($images[1]):"";
}
if(!empty($images2)){
$data["thumbnail"] = isset($images2[1])?trim($images2[1]):"";
}
return $data;
– Clean cache in your site.
Note: the images in the article’s content should have format:
<img class="jaslideshow-main" src="images/stories/slideshow/banner04.png" border="0" />
<img class="jaslideshow-thumb" src="images/stories/slideshow/banner04-thumb.png" border="0" style="display: none;" />
Regards