test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • matgray87 Friend
    #720500

    Hi,

    You can see the gallery here: http://www.worldboxingnews.net/2015/10/08/news/photos/golovkin-viloria-media-workout-quotes-images

    The main gallery works great, but the modal pop-up gallery’s URL is missing the first ‘/’ so it’s not showing (see attached)

    What template file do I need to add this ‘/’ into? I can’t find it >:(

    Thanks,
    Matt

    Ninja Lead Moderator
    #720952

    Hi Matt,

    I don’t know who changed the image into templates/ja_teline_v/html/layouts/joomla/content/image/gallery.php file but I changed it from

    foreach($gallery['src'] as $index => $src) {
    $img = new stdClass();
    // $img->href = JUri::root(true).'/'.$src;
    $img->href = $src;
    $img->title = $gallery['caption'][$index];
    $images[] = $img;
    }

    to

    foreach($gallery['src'] as $index => $src) {
    $img = new stdClass();
    $img->href = JUri::root(true).'/'.$src;
    // $img->href = $src;
    $img->title = $gallery['caption'][$index];
    $images[] = $img;
    }

    Now, the problem on your site is gone

    Regards

    Ninja Lead Moderator
    #753458

    Hi Matt,

    I don’t know who changed the image into templates/ja_teline_v/html/layouts/joomla/content/image/gallery.php file but I changed it from

    foreach($gallery['src'] as $index => $src) {
    $img = new stdClass();
    // $img->href = JUri::root(true).'/'.$src;
    $img->href = $src;
    $img->title = $gallery['caption'][$index];
    $images[] = $img;
    }

    to

    foreach($gallery['src'] as $index => $src) {
    $img = new stdClass();
    $img->href = JUri::root(true).'/'.$src;
    // $img->href = $src;
    $img->title = $gallery['caption'][$index];
    $images[] = $img;
    }

    Now, the problem on your site is gone

    Regards

    matgray87 Friend
    #720980

    Great – thanks for that!

    At one stage I was trying to ask a different developer to look into cropping images dynamically so that they could appear square instead of a random size on the homepage, so could have happened then I guess!

    Either way, thanks for sorting – works great!

    Cheers,
    Matt

    matgray87 Friend
    #753486

    Great – thanks for that!

    At one stage I was trying to ask a different developer to look into cropping images dynamically so that they could appear square instead of a random size on the homepage, so could have happened then I guess!

    Either way, thanks for sorting – works great!

    Cheers,
    Matt

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

This topic contains 5 replies, has 2 voices, and was last updated by  matgray87 9 years, 2 months ago.

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