Member
Member
RogerUsh   2005-09-30, 23:46
#1
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!
Developer
Developer
trisweb   2005-10-01, 18:47
#2
That should work... just print something else in the else.
Member
Member
RogerUsh   2005-10-03, 17:11
#3
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
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.