Member
Member
treefingers28   2010-03-30, 11:46
#1
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
Administrator
Administrator
acrylian   2010-03-30, 12:08
#2
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.
Member
Member
treefingers28   2010-03-30, 13:14
#3
Iv gone down to line 418 and found

`
[*]<a>getImageLink())."\" title=\"" . html_encode($image->getTitle()) . "\">\n";
</a>
`
How do i put the rel="lightbox" part in, always come up for an error with me.

Regards, Luke
Administrator
Administrator
acrylian   2010-03-30, 13:33
#4
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()`.
Member
Member
treefingers28   2010-03-30, 20:37
#5
How do i get colorbox to work on the thumbnails?
Administrator
Administrator
acrylian   2010-03-31, 08:08
#6
Include the files (see zenpage theme) and follow the instructions on http://colorpowered.com/colorbox/
It of course requires hacking that function, too.
Member
Member
treefingers28   2010-04-05, 13:28
#7
Managed to get Lightbox to work on it. Cheers anyway mate.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.