Greetings,
I am working on a theme uses a lightbox to display the full image. I may not have implemented it correctly as whilst it functions perfectly fine, sub-albums are no longer working.
You can see the gallery at:
http://www.seanpwatters.com/gallery (navigate to Celebrity and click on any of those albums and you'll see how it tries to open an album in the lightbox which of course it cannot do).
My current code for the lightbox within album.php is:
`
<?php while (next_image(false, $firstPageImages)): ?>
<?php endwhile; ?>
`
Which replaced the other functionality of the default theme of:
`
<?php while (next_image(false, $firstPageImages)): ?>
<?php endwhile; ?>
`
As you can see, I am using `<?php echo getCustomImageURL(650);?>` to generate an image 650 pixels tall for the lightbox. Is this the wrong way to go about it?
If it helps, I am using Slimbox 2 (
http://www.digitalia.be/software/slimbox2 ) for my lightbox solution and for its functionality, it requires you to add the rel="lightbox" attribute to the links pointing to your full-sized image e.g.:
`
image #1`
So really my question is if there is a better way to link to the full size image whilst retaining the sub-albums functionality?
Any help would be greatly appreciated.
Comments
On your celebrity album is looks as if you have also attached the slimbox to the subalbum link within the next_album() loop and not the next_image() loop. On an album like "editorial" it works as expected.
Btw, you should upgrade to 1.2.6 (and when you done you also should submit your site to the showcase..:-))