Cycle through images

i added next to the single images. the one after you click the thumbnail the larger one. anyhoo when a user clicks the large image they see the next image in the gallery. how can i make it cycle back to the first image in the gallery when they hit the last big image in the gallery?

thanx in advance
Dave

Comments

  • acrylian Administrator, Developer
    The "Big image" we call the "sized image" btw. You would have to modify the theme used and add something extra using partly the object model. Something like this assuming the theme does not do anything specific (you didn't name the theme used):

    `
    <?php
    if(!hasNextImage()) {
    $firstimage = $_zp_current_album->getImage(0);
    if($firstimage) { // just to be sure
    ?>
    getLink()) .'">First image
    <?php
    }
    } ?>
    `
Sign In or Register to comment.