PDA

View Full Version : "previous, current, next" question


artwalk
05-28-2005, 04:33 PM
I'm using Turnover's Visual Experience as a template base and I'd like to modify the "previous, current, next" links a bit -- but I don't know how. I figured it out in WordPress but not here. :(

What I'd like to have is if I'm in the latest or current page, the "next" link should not appear. It only does when I've already clicked on the "previous" link and so on.

This is the code snippet in the template I'm trying to modify.


<div class="menu"><a href="index.php?showimage=<IMAGE_PREVIOUS_ID>"><< previous</a> | <a href="index.php?popup=comment&showimage=<IMAGE_ID>" onclick="window.open(this.href, 'Comments','height=540, width=550, top=10, left=10, toolbar=no, menubar=no, location=no, resizable=no, scrollbars=yes, status=no'); return false;" title="Post a Comment"><IMAGE_COMMENTS_NUMBER> Comments</a> | <a href="index.php?showimage=<IMAGE_NEXT_ID>">next >></a> // <a href="index.php" title="Back Home">home</a> - <a href="index.php?x=about" title="About me">about & infos </a> - <a href="?x=browse&pagenum=1" title="Archives page">archives</a> - <a href="index.php?x=rss" title="RSS 2.0">rss</a></div></div>


Any tips? :)

doffer
05-28-2005, 04:42 PM
Use <IMAGE_NEXT_LINK> and <IMAGE_PREVIOUS_LINK> Those will only appear if it's a image to show next or previous.

Regards

artwalk
05-28-2005, 05:03 PM
Hey! Worked like a charm! Thanks!