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 - 30-03-2010

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 - 30-03-2010

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 - 30-03-2010

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 - 30-03-2010

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 - 30-03-2010

How do i get colorbox to work on the thumbnails?




Lightbox on printLatestImages - acrylian - 31-03-2010

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 - 05-04-2010

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