Member
Member
harootun   2009-03-13, 02:28
#1

Hi there,

I just downloaded ZenPhoto and am kicking the tires. It looks like it does a lot of GREAT things without having too many bells and whistles.

I was wondering one thing that I couldn't find addressed anywhere. Is it possible to add "First" and "Last navigation when looking at the main images of an album? I'm thinking not, since I haven't seen any samples of it while poking around, but just thought I'd ask. Still hoping it might be possible.

Administrator
Administrator
acrylian   2009-03-13, 10:39
#2

We have function for that, but you will need to add them to your theme files yourself:
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetFirstImageURL
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetLastImageURL
Please read the theming tutorial for details.

Member
Member
harootun   2009-03-13, 14:55
#3

This is great. I've managed to add them successfully to my image.php file. But what I can't seem to figure out is how to make them not show up when one goes to the actual FIRST or LAST image in the gallery.

Can't seem to make them disappear the way NEXT and PREVIOUS buttons do if there's no NEXT or PREV. Everything I've tried gives me errors (I'm not exactly a whiz at php).

Any advice appreciated!!!!

Administrator
Member
Member
harootun   2009-03-13, 18:21
#5

Ahhh... now I get it! I was thinking there would be a separate function for hasFirstImageURL or hasFirstImage... now I understand that I can simply use the hasPrevImage and hasNextImage functions. Simpler is always better

Thanks so much!!!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.