ZenphotoCMS Forum
How use Colorbox? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: How use Colorbox? (/thread-6606.html)



How use Colorbox? - phil_photo - 16-02-2010

Hello everybody,

Sorry for my poor english, but i speak french
I'm working in local in my future website and I've downloaded zenphoto last week.
I wanted to know if someone could tell me how to integrate a colorbox in zenphoto. I want open the image in a colorbox when I click on the small image.
thank you in advance




How use Colorbox? - acrylian - 17-02-2010

The next release 1.2.9 will have Colorbox on board. But to enable that on your theme you have to

  1. Read the theming tutorial to understand how Zenphoto themes work
  2. Follow the instructions on the Colorbox site



How use Colorbox? - phil_photo - 17-02-2010

Thank you, but I just finally able to use slimbox2 using jqery of zp-core. I would see later on colorbox




How use Colorbox? - jackdaw - 26-04-2010

I want to open a link to an image 'manually' from inside a zenpage. What class do I need to add to the image? I tried the default class="cpModale" but that doesn't work. I guess ZenPhoto uses a different classname, but I can't find which.




How use Colorbox? - acrylian - 26-04-2010

Well, that depends on how you setup Colorbox. Different than Thickbox it does not exclusively rely on a special css class but on jQuery selectors. You can of course mimic that behaviour with those as well. Additionally the pages.php of your theme needs to include the Colorbox JS files. They are not available automatically. Look at Zenpage theme's image.php for an example how to setup Colorbox.