Next Image doesn't work correctly

Hi,
I just integrated zenphoto and i really like it! But there is a strange bug occuring to me: I have a test album with 5 photos in it. When I select any Photo except the first one, when I click the "Next" button, it goes back one for picture 3 to 5, when selected picture 2, I need to click 2 times to get to picture 3. Only if I selected Picture 1 first, there is no problem. The strange thing is, that after I clicked one time and it went back one picture, when I click "Next" afterwards it functions properly. I implemented zenphoto via iframe, because I was too lazy to create a template for my website, which is rather complex. I would really appreciate your help because I'm trying to get it to work for 3 hours now.

Comments

  • trisweb Administrator
    Try cleaning up your database with the admin maintenance link "Refresh the Database". There's most likely a problem with the links there and garbage collection should fix it.

    I'll take a look at the next/prev code though and see what's causing it, because it still shouldn't be a problem even if the database doesn't back the files in the album...
  • Hi,
    already tried cleaning up the my db, no effect...just found out that if I click the "prev image" button after selecting a picture, nothing happens, only if I first click on next, then the prev button works...
  • can you provide us with a url so we can take a look?
  • Looks like if you click on anything after the 2nd image on albums.php then clicking next on image.php takes you to the 2nd image and then 3rd and so on. I get the same result in my test album using testing-js theme also.
  • well, I'm not really into php (yet ;) ) and I don't have any clue why it doesn't work the way it's supposed to be, hope someone can support me with a solution soon :(
  • Can you detail the problem in the ticket tracker here: http://www.zenphoto.org/trac/newticket
  • no, it states that I need extra "privileges" to do this
  • Wally: I think you need to register on Trac (separate from the forums here) in order to create a new ticket.
    http://www.zenphoto.org/trac/register
  • trisweb Administrator
    Wally -- you're using an experimental theme that doesn't actually work yet...

    The JS image transition works, but the next/previous between images has not yet been implemented. If you take a look and perhaps try it, you might realize how difficult it is. This is why the theme is called Testing-JS.

    This problem you describe: "Only if I selected Picture 1 first, there is no problem." this is exactly how it is currently implemented - it cannot yet know which image you are on because it does not reload the page (though it is possible using anchor links and javascript, and will eventually be done).

    Please refrain from using the Testing-JS theme until it's ready.

    I will remove it from the release to avoid confusion. Sorry for that.
Sign In or Register to comment.