FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Today's Messages (on)  | Unread Messages (off) | Subscribed Forums (off) | Subscribed Topics (off) | Unanswered Messages (off)

Forum: Plugins and Code Hacks
 Topic: Make the » in the Pager jump to the very end ?
Re: Aw: Make the » in the Pager jump to the very end ? [message #187592 is a reply to message #187528] Wed, 19 September 2018 10:37
_alex is currently offline  _alex
Messages: 4
Registered: July 2018
Karma:
Junior Member
add to buddy list
ignore all messages by this user
Just in case this is of interest, here is how it gives the right number for the last double-arrow:

src/draw_pager.inc.t, ca. Line 107 ...


if ($append) {
$page_next_url = $arg . $upfx . $page_start . $suf;
// $page_last_url = $arg . $upfx . $page_start_2 . $suf;
$page_last_url = $arg . $upfx . floor($total/$count)*$count . $suf;
} else {
$page_next_url = $page_last_url = $arg;
pager_replace($page_next_url, $upfx . $page_start, $count);
pager_replace($page_last_url, $upfx . $page_start_2, $count);
}



Current Time: Wed Sep 19 16:44:16 EDT 2018

Total time taken to generate the page: 0.00648 seconds