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)): ?>
<div class="image">
<div class="imagethumb">
" title="<?php echo getBareImageTitle();?>"><?php printImageThumb(getAnnotatedImageTitle()); ?>
</div>
<?php endwhile; ?>
</div>
`
Which replaced the other functionality of the default theme of:
`
<?php while (next_image(false, $firstPageImages)): ?>
<div class="image">
<div class="imagethumb">
"><?php printImageThumb(getAnnotatedImageTitle()); ?>
</div>
<?php endwhile; ?>
</div>
`
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.