Custom theme problem

Hi, I have adjusted my theme - if I click the picture it shows the next picture in my subgallery. Problem is when I click the last picture. It brings page with errors. Could you please advise me how to modify the code? When I click the last image I need to go back to the subgallery page.

Thank you very much!!!

http://yabasta.cz/zenphoto/snow-fever/solden-21-03-2009/solden22.jpg.php

Comments

  • acrylian Administrator, Developer
    May I say that it is really inconvenient not to be able to move back and forward? I am not sure that I ever had clicked on the image...

    Anyway, you need to check with `if(hasNextImage())` if there is a next image.
  • I am not a programmer so my result is not really cler, I can change only easier issues, but I will try.. Thank you :)

    Best solution for me would be - if I scroll mouse over left part of the image it shows small arrow to left (goes back after clicking) and small arrow to right on the right half of the image (goes to next image and after last image to the subalbum) but it is only in my dreams i am not able to program that change :)

    Maybe some handy expert-volunteer can take it as challenge and help to our snow crew ;)
  • acrylian Administrator, Developer
    It's actually quite easy. You have a link around the image, right? So just put that link within a `if(hasNextImage()) { do normal next image link like now } else { do album link }`. There is a function for the album link, please see the doc.
  • Thank you very much
Sign In or Register to comment.