ZenphotoCMS Forum
Lightbox on printLatestImages - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: Lightbox on printLatestImages (/thread-6848.html)



Lightbox on printLatestImages - treefingers28 - 2010-03-30

Hi, i was just wondering if there was a way to use light box on the 'printLatestImages' function? Cant seem to find where and what to edit to put in the 'rel=lightbox' part.

Luke




Lightbox on printLatestImages - acrylian - 2010-03-30

You have to look at the printImageStatistic() main function of the same plugin. If you would use Colorbox which needs to be included from zp-core/js you would not need to hack any file except your theme.




Lightbox on printLatestImages - treefingers28 - 2010-03-30

Iv gone down to line 418 and found

`
[*]getImageLink())."\" title=\"" . html_encode($image->getTitle()) . "\">\n";

`
How do i put the rel="lightbox" part in, always come up for an error with me.

Regards, Luke




Lightbox on printLatestImages - acrylian - 2010-03-30

It won't work as that link links to the image.php page of the theme and not to the full image scripts like the lightbox require. You would have to change that link to $image->getFullImage().




Lightbox on printLatestImages - treefingers28 - 2010-03-30

How do i get colorbox to work on the thumbnails?




Lightbox on printLatestImages - acrylian - 2010-03-31

Include the files (see zenpage theme) and follow the instructions on http://colorpowered.com/colorbox/
It of course requires hacking that function, too.




Lightbox on printLatestImages - treefingers28 - 2010-04-05

Managed to get Lightbox to work on it. Cheers anyway mate.