7
The mylinks and mydownloads modules were made before the pagenav class became available.
The correct code for mylinks is as follows:
mylinks/viewcat.php around line 154$counter = 1;
$currentpage = ($max / $show);
$offset = 4;
while ( $counter<=$linkpages ) {
$mintemp = ($show * $counter) - $show;
if ($counter == $currentpage) {
$page_nav .= "<b>($counter)</b> ";
} elseif ( ($counter > $currentpage-$offset && $counter < $currentpage + $offset ) || $counter == 1 || $counter == $linkpages ) {
if ( $counter == $linkpages && $currentpage < $linkpages - $offset ) {
$page_nav .= '... ';
}
$page_nav .= "<a href='viewcat.php?cid=$cid&min=$mintemp&orderby=$orderby&show=$show'>$counter</a> ";
if ( $counter == 1 && $currentpage > 1 + $offset ) {
$page_nav .= '... ';
}
}
$counter++;
}
And for mydownloads the correct code is:
mydownloads/viewcat.php around line 171$counter = 1;
$currentpage = ($max / $show);
$offset = 4;
while ( $counter<=$downpages ) {
$mintemp = ($show * $counter) - $show;
if ($counter == $currentpage) {
$page_nav .= "<b>($counter)</b> ";
} elseif ( ($counter > $currentpage-$offset && $counter < $currentpage + $offset ) || $counter == 1 || $counter == $downpages ) {
if ( $counter == $downpages && $currentpage < $downpages - $offset ) {
$page_nav .= '... ';
}
$page_nav .= "<a href='viewcat.php?cid=$cid&min=$mintemp&orderby=$orderby&show=$show'>$counter</a> ";
if ( $counter == 1 && $currentpage > 1 + $offset ) {
$page_nav .= '... ';
}
}
$counter++;
}
I've used an offset of 4. Try changing the number until you get an offset you like

e.g. $offset = 2;
Rowd