[i]So my problem is, that as soon as you come to the last image, it doesn´t show up (makes sense if you got this function on a button..)
how can i hack that?
1. to show the last image and if there is no image after just stop there, or remove the
link function[/i]
That is a little confusing, do you want the link to be shown if there is no next image or not?
Anyway, how about?: `if(next_image()) { show link } else { do something }`
The nightly build has functions for first and last image:
www.zenphoto.org/documentation