Member
Member
sarah.kho   2010-07-22, 20:37
#1

Hi

I am using stopDesign theme coming with zenphoto 1.3. I am wondering whether it is possible to add some Lightbox effect to it so it does not show the full size and instead show the lightbox effect of the photo?

Administrator
Administrator
acrylian   2010-07-23, 09:24
#2

Yes, Zenphoto comes with the Colorbox script. Again you will have to modify your theme to include that script and add the call. The Zenpage theme uses it for the full size image (what you refer to as the "full size" image is the "sized image" btw.).

Member
Member
sarah.kho   2010-07-23, 09:57
#3

Can you please give me some hint on how to add the change to theme? I am using StopDesign theme which comes with ZP 1.3

Any tutorial showing how to do this is very good for me.

Administrator
Administrator
acrylian   2010-07-23, 10:06
#4

You can see an example on the Zenpage theme's image.php on how to include the script coming with Zenphoto. The general setup for a colorbox with all options is described on http://colorpowered.com/colorbox/

You also should read the theming tutorial first to understand the basics of Zenphoto themes first. We don't have a direct tutorial for Colorbox as it is not that different from other box scripts which are explaind a lot of times on the forum.

Member
Member
sarah.kho   2010-07-23, 20:08
#5

Aha.

I tried to combine two image.php file but it failed

I think the whole theme must support the colorbox and not only the image.php file.

Thanks anyway.

Administrator
Administrator
acrylian   2010-07-24, 09:27
#6

I don't undestand what you mean with "tried to combine two image.php file". A theme can only have one of course.

And no not the whole theme must support it. You have to call it on the page you want to use it. If you want to skip the image.php file showing the bigger sized images you have to add the colorbox to album.php. But then you will only be able to call the full image or you modify the theme to open the image.php file in a colorbox. That should be possible as well.

Anyway, special wishes require changing the theme. If you don't know how to do that you probably should get someone who does or take some time to learn Sorry, not everything does work "out of the box".

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.