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
Aw: Re: Aw: Make the » in the Pager jump to the very end ? [message #187594 is a reply to message #187593] Thu, 20 September 2018 18:29 Go to previous messageGo to previous message
_alex is currently offline  _alex   Germany
Messages: 5
Registered: July 2018
Karma:
Junior Member
This had a little bug - if the number of total is exactly a multiple of numbers per page it jumps one increment too far.. .

decreasing the total by one should work, so better use smth like this:

$page_last_url = $arg . $upfx . floor($total-1/$count)*$count . $suf;
[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 17:42:48 GMT 2024

Total time taken to generate the page: 0.03666 seconds