Clicking on image

Hi,

I am new to zenphoto and so far I love it. There is just one thing I cannot figure out. I saw on the demo on site that when one click on an image it shows in a window with and X in the lower right corner and you can close it. On my installed version, when I click on a image, it opens just the image in the browser; you need to click on the back button to go back. I am sure that should be a simple setting but please help me find where it is.

Thanks

Comments

  • What you are describing is Colorbox which has been available since 1.2.9. To enable it, you'll need to modify your theme to include the Colorbox script and then attach it to any appropriate elements. See http://colorpowered.com/colorbox/ for more info. For an example, I believe the Zenpage theme has Colorbox included.

    Also, note that the next release will include a Colorbox plugin. Activating this plugin will automatically include the Colorbox script, but it will still need to be attached to elements manually within the theme.
  • Is there a step by step "how to" on how to set up the colorbox to work with the stopdesign or default theme?

    I don't see the colorbox in the zp-core/js/ directory :S

    Thanks
  • acrylian Administrator, Developer
    Colorbox is a plugin.
  • Yeah, I activated it but nothing has changed so I am going through the notions of hacking the theme manually to include it.

    I want to enable the page so when a user clicks on an image on the "album" page then the colourbox opens and shows the image. So far I have this:

    `
    echo 'getCustomImage(NULL, $iw, $ih, $cw, $ch, NULL, NULL, true)) . '); ">
    "'.getImageTitle().'"
    ';
    `
    Obviously I need to change the href URL to something else but I don't know what yet.
  • acrylian Administrator, Developer
    You did not read the documentation. The colorbox plugin only loads the scripts needed. You have to both setup the jQuery calls and the theme to do whatever you want it to do. And you have to enable it specifially for what theme page to load (see plugin options). Stopdesign has nothing setup for this.

    Since the Colorbox script has loads of options we leave this to the theme designer what to do.
    Please visit the colorbox website on how this works. It is always the same principle.

    You also should visit our documentation. What you want to use is the full image. `getImagelinkURL` gets the link to the image page not to any image itself.
Sign In or Register to comment.