Support » Plugin: Slideshow » Slideshow & lightbox?

  • Resolved wzshop


    Hi there,
    I am using the great slideshow plugin but i was wondering if i could make this slideshow work with a lightbox feature/plugin. I have found some lightbox plugins that automatically create a lightbox URL on each image on my website, but this is not running smoothly with the slideshow plugin:

    – or the lightbox plugin allows me to add an attribute to an <a href>, so i can manually add these <a href> to the slideshow plugin. This enables the lightbox feature for my slideshows, but when i want to go to the next image (within the lightbox) it shows images other than the images added to the slideshow. So it will show more images than ive added to the slideshow.

    – or the lightbox plugin does not provide the feature to manually add an attribute. The lightbox works on all the images but not on the slideshow images.

    Any suggestions to fix this?
    Thanks a lot!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Stefan Boonstra



    A lightbox will be available in version 2.3.0, but a release date has not been set for this version yet.

    Best regards,

    Yay! That’s good news. Any ballpark idea of when? Like in a month, a year, or ??? I’m so excited to use this plugin!

    Plugin Author Stefan Boonstra


    I’m hoping I’m not about to kill too much of your excitement, but I’m guessing the lightbox feature will still be a couple of months from now.

    However, you could try to implement a lightbox feature into the slideshow plugin by following the instructions in this thread.

    Fixed it:
    in views/slideshowplugin/slideshow.php

    <?php if (empty($_SESSION['count'])) {
       $_SESSION['count'] = 1;
    } else {
    } ?>

    In /slideshow.php


    and in views/slideshowplugin/slideshowslide/frontend_attachment:

    			$anchorTagAttributes = 'rel="lightbox[' . $_SESSION['count'] . ']" href="' . $imageSrc . '" ' . (!empty($urlTarget) ? ' target="' . $urlTarget . '" ' : '');

    For more detailed info, leave a response.

    can you provide more guidance please, what exactly needs to be changed or are these additions?

    sorry for my late response.
    Jup these are additions.

    in views/slideshowplugin/slideshow.php
    ADD at the top of the file

    In /slideshow.php
    ADD at the bottom of the file

    and in views/slideshowpluginslideshowslide/frontend_attachment:
    ADD at line 51.

    This creates a session id per slideshow, that way the slides can be grouped per slideshow.

    Good luck! Let me know if it worked out!

    Dear wzshop,
    I created a account just so I could thank you, and say “Bravo!”.
    Your suggestions work like a charm. You rock!! 🙂

    Hey mahlerthetitan,
    Im glad to hear that!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Slideshow & lightbox?’ is closed to new replies.