Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • buzibuzi Friend
    #162326

    Hi, whenever i change some text on the existing sample content that came with the module (for example “Sed velit ligula”), the large image disappears from the front end slideshow.
    even if i duplicate an item which does display the large image and only rename content item, the image still disappears.
    ???
    what is happening ?
    thanks

    thuanlq Friend
    #384847

    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

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

This topic contains 2 replies, has 2 voices, and was last updated by  thuanlq 13 years, 7 months ago.

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