multiple lightboxs on one page

This topic contains 1 reply, has 2 voices, and was last updated by  Simone 10 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #22542

    [email protected]
    Buyer
    Post count: 59

    Hi Guys

    Is it possible to have two or more lighthouses on one page showing only the images for one post.

    What I want to do within the related listing tab on the detail page
    is open a lightbox with the images for the related post instead of navigating to the posts detail page.

    The problem is that the lightbox is showing all the images on the page and not just the image for the related post.

    http://showroom.ie/showroom/ireland/dublin/dublin-7/interior-designer/dave-designers/#related_listing

    You can see the related posts under the related listing tab (its called portfolio in my case) there are two posts

    The first post has one image
    The second has two images

    But the lightbox loads up all images.

    Is it possible to pass a div name or something to the light box so that is only shows images within that div?

    Here is my code in listing-listview.php

    <?php
    echo(‘debug’);
    echo($post->ID);
    $post_images = geodir_get_images($post->ID,’thumbnail’);
    $thumb_image = ”;
    if(!empty($post_images)){
    foreach($post_images as $image){
    $thumb_image .= ‘<div id=”geodir-post-gallery” class=”clearfix”> src.'”>’;
    $thumb_image .= geodir_show_image($image,’thumbnail’,false,false);
    $thumb_image .= ‘
    </div>’;
    }
    }
    echo $thumb_image;
    echo(‘enddebug’);
    ?>

    Thanks
    dave

    #22556

    Simone
    Expired Member
    Post count: 3515

    Hello, i don’t know if this is possible, the js will load all the images in that page and let you show as it is a unique gallery, this is how the class works, maybe adding a different id will do the trick, but i have no idea 🙂

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount