Page 1 of 1

Page jump

Posted: Wed May 31, 2006 6:16 pm
by FruitBeard
Script URL: http://www.fgps.com/keith/GBOOKLATEST/gbook.php
Version of script: 1.41

Hi there,
If you wish to have a page jump function with your gbook, try this.

find inside gbook.php (unmodified version 1.41, line 182) this code:
echo '</p>
and replace it with this code:
$next = $page+1;
if($next >= $pages) $next = $pages;
$previous = $page-1;
if($previous <= 1) $previous = 1;

echo '</p>
<p>
<a href=gbook.php?page=1 title=" First "><< First</a> |
<a href=gbook.php?page='.$previous.' title=" Page '.$previous.' ">< Prev</a> |
<a href=gbook.php?page='.$next.' title=" Page '.$next.' ">Next ></a> |
<a href=gbook.php?page='.$pages.' title=" Last ">Last >></a>
</p>
a working example can be viewed at the url situated at the top of this thread.

Posted: Thu Jun 01, 2006 10:41 am
by Klemen
Thanks!

Moved to Gbook add-ons forum.