Add Colorbox to index page in zpArdoise Theme

I have been reading in the forum and through google to try to find this answer but have been unsuccessful.

On the index page I would like the colorbox to show up when you click on the gallery image. Normally it takes you to a new page but I do not want it to take me to a new page. I just want the colorbox to pop up right on that page.

I was able to activate it and it works when you go to that new page but there are no options to activate it on the index page.

Thanks in advance!

Comments

  • There are two things needed. One is to activate colorbox on the index page. The second is to provide the javascript to attach colorbox to the gallery picture link. See the colorbox web site for examples of the later.
  • Thanks for your quick response!

    Colorbox should already be activated on the index page. I checked that off in the theme options.

    I am having problems with the link part.

    At one point I had the colorbox part working on the index page when I was using the default theme but in the colorbox it was just showing that new page. Because I am not sure what to change the link to.

    Any ideas?
  • We are able to get the colorbox to show up but we believe in the print_album_thumb.php file we need the correct href tag.

    We are not sure what exactly needs to go in there or if anything else needs to be added.

    If we add "<?php echo html_encode(getUnprotectedImageURL()); ?>" in the href on print_album_thumb.php which is what works on the print_image_thumb.php then nothing happens.

    So what would we change href to and would we need to add or change any other files?

    Thanks.
  • vincent3569 Member, Translator
    hi

    can you have a look on my personnal website who uses zpArdoise ?
    http://www.vincentbourganel.fr/

    can you explain to me what is your personnal need that is not on this website ?
    maybe, could you give a link ?
  • acrylian Administrator, Developer
    websurge: I really recommend to read the theming tutorial to first learn the Zenphoto basics.
  • vincent3569 Member, Translator
    other thing :
    - with zpArdoise, you don't need to allow colorbox in index.php (there is no display on this file)
    - did you have downloaded the latest release of the theme (1.4) ?
    - did you have checked the option "Use Colorbox in Album page" ?

    in that case, if you have checked "Show Image Statistic strip", a colorbox will be displayed on the images below.

    of course, on albums thumbnails, you can't have colorbox : the thumbs allow you go to on album page...
  • Hi Vincent3569,

    We want to have the colorbox pop up on the main page instead of redirecting to an album page.

    You can take a look here: http://www.saecustoms.com/recent-deliveries/index.php

    That is the index page of zenphoto.

    We have it to the point that the box pops up but how can we have it so that the images from that album show up. It seems to be something with that href link.

    Thanks,
  • acrylian Administrator, Developer
    Well, I am not familar with that theme but you have to change the link to link to the (full) image. Maybe take also a look at the theming tutorial for the theme basics.

    Edit: Quickly visited your site. So you want to view all images of the album in the Colorbox? That would be a major change (and overload) as you will have to create an invisible list of all images to be able to do that. A colorbox can only view the images currently on the site.
  • We just want to view images in the colorbox like on the album page but instead of redirecting to the album page we want the colorbox to pop up when you click on the image on the main page. And then you just click through each image of the album of the image that you clicked on.
  • just want to view images in the colorbox like on the album page
    But of course, the album page in vincent's theme does not really resemble the index page--for instance there is a list of thumbnails on the left and there are previous/next image links.

    Your page seems to be telling colorbox to do a slideshow, but you have not provided it a list of images to show. In addition, as mentioned by acrylian, maybe you need to link to the full-image not to the cached image.

    But mostly I think you will have to do some proper research on colorbox and Zenphoto to see how this is accomplished.
Sign In or Register to comment.