|
|
Aw: Re: Aw: Make the » in the Pager jump to the very end ? |
Thu, 20 September 2018 14:29 |
|
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;
|
|
|
Re: Aw: Make the » in the Pager jump to the very end ? |
Wed, 19 September 2018 10:37 |
|
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);
}
|
|
Aw: Make the » in the Pager jump to the very end ? |
Mon, 16 July 2018 03:43 |
|
Hi, yes, Users i.e. created a sticky thread about their daily weather back in 2010.
This has now 215 pages, 15 threads / page, currently 3213 replies
Guess there are some other long-running threads where the double-arrow in the pager just doesn't work well.
|
|
Re: Make the » in the Pager jump to the very end ? |
Sun, 15 July 2018 04:59 |
|
I'm sure it's possible to fix. Unfortunately, I don't have a form with such a long thread. I mean, if you show 40 messages/page and you have more than 15 pages, your thread must have more than 600 replies! The longest thread I can detect on any of my forums has 577 replies.
|
|
Make the » in the Pager jump to the very end ? |
Thu, 12 July 2018 12:44 |
|
I'm currently in the process of applying a lot of changes / wishes of our community, one thing i was asked if the » in the pager is somehow 'broken'.
Users expect it to jumo to the very end of a list in forum's or thread view, but it seems to be made to jump 15 pages (or 'entries per page') forward/backward.
How would i change this / is it even possible ?
Thanks,
Alex
|
|