Viewing 1 post (of 1 total)
  • Author
    Posts
  • helloneo Friend
    #140728

    Hi,

    In Teline Spotlight module mod_jacatslwi_j15, is there a way to show the first image instead of last as a thumbnail from an article? I have 2 images in my article and the 2nd (last) image is shown in the spotlight. Ideally first image should be sown!

    There is following code in helper.php in mod_jacatslwi_j15, I think this function returns the image that is used
    function replaceImage( &$row, $autoresize, $maxchars, $width = 0, $height = 0 ) {
    global $database, $_MAMBOTS, $current_charset;
    $image = “”;
    $regex = “/<img.+srcs*=s*”([^”]*)”[^>]*>/”;
    preg_match ($regex, $row->text, $matches);
    $images = (count($matches)) ? $matches : array();
    if (count($images)) $image = $images[1];

    thanks

Viewing 1 post (of 1 total)

This topic contains 1 reply, has 1 voice, and was last updated by  helloneo 15 years, 1 month ago.

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