How use Colorbox?

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

Comments

  • acrylian Administrator, Developer
    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
  • Thank you, but I just finally able to use slimbox2 using jqery of zp-core. I would see later on colorbox
  • 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.
  • acrylian Administrator, Developer
    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.
Sign In or Register to comment.