View Full Version : Integrate: Lightbox image viewer + PHP Photo Album script

06-27-2007, 04:54 PM
1) Script Title:
Lightbox image viewer + PHP Photo Album script

2) Script URL (on DD):
http://dynamicdrive.com/dynamicindex4/lightbox/index.htm and http://dynamicdrive.com/dynamicindex4/php-photoalbum.htm respectively.

3) Describe problem:

I came across your website today and found a lot of very cool scripts :) I love what you guys have done and hope to utilise a number of your scripts on my websites!

My current issue is in my attempt to integrate the Lightbox image viewer script into the PHP Photo Album script. I have it mostly working so far, with just 1 small bug I've found so far.

The URL to the page I am testing is http://www.kekbur.com/gallery/index.php
The page loads correctly, and displays the requested photos without error. When you click on one of the images on you get the Lightbox script kick off and display the image just as you would expect.
If, for example, you click on "Page 2" or "Page 3" to display other images in the gallery, this is where the problem begins. After jumping to another lot of images the Lightbox script no longer operates! It just links to the image, ignoring the rel="lightbox" attribute that I've stuck onto their anchor tags. Even if you navigate back to "Page 1" the Lightbox script still doesn't function. The only way to get it to function again is to reload the index.php page.

Can anyone else see what I might have missed in my integration? Your assistance would be much appreciated!


06-28-2007, 06:29 AM

06-28-2007, 01:18 PM
Oops sorry I didn't see that thread - I spent about an hour last night looking through this forum for a solution but just didn't give the search button a look over :(

Thanks very much for that - I was in the exact same boat... reinitialising the function when the page was changed fixed my issue :)