Support » Fixing WordPress » NextGen with Lightbox2

  • Resolved TootsieRoll

    (@tootsieroll)


    I have been trying to find documentation, of a step by step how to for Lightbox 2 with NextGen gallery, and I can’t figure it out.

    From what I understand, what I need to do is
    1. go to Gallery>Options>Effects. Change JS thumbnail effect to Lightbox.
    2. create a gallery give it a name: myGallery
    3. insert the name of the gallery in the template:

    <a href="#" rel="lightbox[myGallery]">
    <img src="thumbnail.jpg"/>
    </a>

    What am I missing?
    I can’t believe how much time I’ve wasted on this, it’s driving me nuts!
    Your help is much appreciated.
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • When you put galley in post or page what short code you using
    Try [nggallery id=x]
    replace x with gallery id no.

    Thread Starter TootsieRoll

    (@tootsieroll)

    Thanks, this worked and helped me figure out a few things, however I havent fully solved my problem yet.

    I want my client to be able to do create lightbox galleries through the dashboard. There will be one black and white image displayed on the page, and when the user clicks on it, a color photo gallery will open in lightbox. I though this would be simple, but as far as I know there are no plugins that would allow my client to create lightbox galleries on their own. Do you know one? Can NextGen do that?

    So here’s what I tried to do with NextGen:

    I went in the NextGen>views>gallery.php to tweak the “Image list” gallery so that it only displays one image on the page (inserted through a custom field), yet still shows as a gallery once the Lightbox is open. Here;s the code:

    <?php foreach ( $images as $image ) : ?>
    	<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box">
    <a href="<?php echo $image->imageURL ?>" rel="lightbox[%GALLERY_NAME%]" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
    
    <?php endforeach; ?>
    
     <img src="<?php echo get('case_study_featured_image'); ?>" />
    </a>

    So this works, but now the Lightbox is listing the images in reverse. Arrrgggh!

    I feel like there is an easy solution for me out there (there HAS to be!), but I just can’t find it! I’ve been trying to make this work for so long now 🙁
    I hope this all makes sense.
    Thanks

    Thread Starter TootsieRoll

    (@tootsieroll)

    I’m so happy I found this post:
    http://www.bentedder.com/nextgen-gallery-load-lightbox-gallery-from-one-image/#comment-300
    Made my day and solved my problems.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘NextGen with Lightbox2’ is closed to new replies.