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

Home » FUDforum Development » Plugins and Code Hacks » Make the » in the Pager jump to the very end ?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Aw: Make the » in the Pager jump to the very end ? [message #187592 is a reply to message #187528] Wed, 19 September 2018 14:37 Go to previous messageGo to previous message
_alex is currently offline  _alex
Messages: 5
Registered: July 2018
Karma:
Junior Member
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);
}
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Karma/user reputation patch
Next Topic: BUG & Fix: Cleaning up GLOBALS.php $INCLUDE remnants
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Dec 12 18:29:58 GMT 2024

Total time taken to generate the page: 0.04083 seconds