ZenphotoCMS Forum
Space holders for 'Prev' and 'Next' - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Space holders for 'Prev' and 'Next' (/thread-64.html)



Space holders for 'Prev' and 'Next' - RogerUsh - 2005-09-30

How about inserting spaceholders for 'prev' and 'next' in the image.php file in the same way as the index.php and album.php allot for with printPageNav.

I tried inserting an `else` statement after the `if (hasPrev Image())` but couldn't get it to work.

Danke!


Space holders for 'Prev' and 'Next' - trisweb - 2005-10-01

That should work... just print something else in the else.


Space holders for 'Prev' and 'Next' - RogerUsh - 2005-10-03

Alright, I dropped this in the image.php file and it worked:

`<?php if (hasPrevImage()) { ?>`
``
`[img]butt-prev.jpg[/img]`
``
`<?php } else { ?>`
`[img]butt-prevB.jpg[/img]`

`<?php if (hasNextImage()) echo ""; } if (hasNextImage()) { ?>`
``
`[img]butt-next.jpg[/img]`
``
`<?php } else { ?>`
`[img]butt-nextB.jpg[/img]`
`<?php } ?>`

It took me a while to figure out the syntax. Thanks though Smile