Implemented Pagination improvement

AlexandrosD

Active member


Here's the thing;
If you click the right arrow, it shows the 52th page button and replaces the arrow. It also removes the 47th anchor element.
It should show the 52th page button by default, without the need of an additional click. Doncha think?
 

Attachments

  • no_need_for_arrow.webp
    no_need_for_arrow.webp
    2.7 KB · Views: 76
Upvote 0
This suggestion has been implemented. Votes are no longer accepted.
pagination.webp

If you check the screenshot, you'll see that there are 8 pages for the search results.
Instead of 1,2,3,4,5,6,7,8 the pagination is
1,2,3,4,5,6,→,8
or
1,←,3,4,5,6,7,8


If i want to go to page 7 i need to click on the arrow to get the 7 and then i can click it...
In this case, the arrows are IMO strange and we have to make more clicks as necessary.

Is there a way to change this and remove the arrows if they don't make any sense?:D

(another related suggestion/bug relating the arrows http://xenforo.com/community/thread...-from-pagionation-if-js-is-deactivated.20138/ )
 
If there are 8 pages, the pagination looks like:
pagination-png.23752

My suggestion is, to remove the arrows if they aren't necessary, so it looks like
noarrow.webp

Instead of the arrow i have now the direct link to page 7

I've fixed this by changing in XenForo_Template_Helper_Core::_getPageNav


$scrollSize = 1 + 2 * $range;

to

$scrollSize = 2 + 2 * $range;

All i'm trying to say is, that this is IMO a minimal bug and that the arrows doesn't make sense if there's only 1 hidden pagelink or the user doesn't have activated javascript...
 
Top Bottom