Hy, i customized the workflow of the image.php.
so if you click on a image it goes directly to the next one, i wrote:
`
">
`
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?
or better
Is that possible?
[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?
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
Ok, i wrote:
`
`
how can i now loop back to the first? sorry, couldn´t find it in docmentation...
http://www.zenphoto.org/documentation/zenphoto/_template-functions.php.html#functiongetFirstImageURL
BTW, you code misses two "{" and "}" for the else part and the `` is not correct, too.
for some reason, that works:
`
can somebody correct that code? it works, but i know there is something wrong.
I don´t get the link closed!
`
well, where should i close?
i tried to close after the '}' but than i get an error. i think something else is wrong.
maby the declaration of the if/else statement.
somebody knows?
If i write:
`
else { ?>
`
i see beside my image "else { ?>" showing up and the last image is missing...