[Tweak] If the topic is only one page, then don't show the paginator

[Tweak] If the topic is only one page, then don't show the paginator
Tillreetree@fc7e1f5a Monday 5th June 2023, 07:56:45Because I thought it would be redundant to display a paginator with only "1" if the topic was only one page, I modified the pageLink function slightly.
Put the following code after the "$end" variable and before the "$out" variable in the pageLink function in Pagination.lib.php ( approximately line 30):
So that the paginator only appears when the number of replies or topics is greater than two pages.
Put the following code after the "$end" variable and before the "$out" variable in the pageLink function in Pagination.lib.php ( approximately line 30):
if ($start === 1 && $end === 1) {return '';}
So that the paginator only appears when the number of replies or topics is greater than two pages.
Last modified by Tillreetree@fc7e1f5a on Monday 5th June 2023, 07:59:00
Suggested Topics

Alexander Liebrecht
started Soon Subforums are possible
Feature Requests

Yvld
started Question: Archive and Rating
General Questions

Cookie@70743177
started solved Cannot post on my forum!
General Questions

Alexander Liebrecht
started Show your Flatboard Forum projects :)
Open Bar