Hi.
I'm using 2.1.0.0 with "flat" layout, displaying "Most recent first". Noticed that when total comments count exceeds "Comments per page" * "Maximum pages", it increases the "Comments per page" setting quietly, in order to be able to show all the posts, which is absolutely fantastic. But now, the new "Comments per page" amount gets applied to all pages, until the Count winds down to zero, and then the last pages won't show anything, because all the first ones have "Comments per page" + "some increment" posts on them.
Perhaps it's some coincidence of my configuration, but I suspect it might not be, so here is how I solved it for now:
com_jcomments/jcomments.php
*** 552,557 ****
--- 552,558 ----
&& ($total_pages > $comments_page_limit)) {
$total_pages = $comments_page_limit;
$comments_per_page = ceil($total / $total_pages);
+ if (ceil($total / $comments_per_page) < $total_pages) $total_pages = ceil($total / $comments_per_page);
}
if ($page <= 0) {
So now it decreases the page count until there are more posts again.
br,
Mait