Jump to content

[RESOLVED] Page numbers not calculated correctly


3 replies to this topic

#1 Hylius

    Member

  • PipPipPipPipPipPip
  • The Hunter
  • The Hunter
  • 265 posts
  • LocationUSA

Posted 05 February 2012 - 08:50 PM

Okay, there's a bit of an oddity with the page numbering, and I thought I should bring it up.

Firstly, I've noticed the total number of pages differs whether you're logged in or not. My guess off the top of my head is that deleted posts still take up the post count in the "number of posts per page", because otherwise this doesn't make sense (unless there is a setting to manually changed posts displayed per page and I missed it.

Second, I've noticed that the page count from the viewing forum is different than when viewing the thread, possibly for the same reason (in this case, the forum view is not including the deleted posts.) For example, if I look in Jettisoned Communication, the "Let there be Pony" thread shows a max of 61 pages as of this post. If I click the 61, it takes me to the 61st page. However, once in the thread, the thread then shows a 62nd page that I must go to in order to get to the end of the thread (and it's not off by one or two posts, the 62nd page is nearly full.)

I can provide screenshots if needed. I didn't see anything like this in here, apologies in advance if I missed it.

Edit: The reason I specify deleted posts is because they only show while logged in. Without a setting to adjust posts per page, I don't know what else it could be from my perspective.

Edited by Hylius, 05 February 2012 - 08:52 PM.


#2 Mason Grimm

    Com Guard / Technician

  • PipPipPipPipPipPipPipPipPip
  • Bad Company
  • Bad Company
  • 2,886 posts
  • Facebook: Link
  • LocationToronto, ON

Posted 06 February 2012 - 07:35 AM

Another thing to consider is that it could be sig files.

Sig files do not show unless you are logged in and, when added all up, they do take up pages and pages of space. Each page has a fixed amount of posts that they display before the pagination moves on to the next page.

Just a theory, but I'm willing to bank on it.

#3 Hylius

    Member

  • PipPipPipPipPipPip
  • The Hunter
  • The Hunter
  • 265 posts
  • LocationUSA

Posted 06 February 2012 - 10:49 AM

Hmm, I figured signatures wouldn't apply since I assumed the page limits are determined only by the postcount. Once it hits that limit (20 I believe?) it cycles to the new page.

Actually, a quick look at the post numbers and I'm sure it's something screwy with deleted posts and the post count. The posts per page is 20. On page 60, we start at post #1181, which is normal. The page ends at post #1198, 2 posts short of the 20 post limit. However, there are 2 deleted posts on that page. Next page starts at post #1201, skipping the two missing posts. This one ends at #1219, missing one post. Again, this corresponds to one post being deleted on this page.

Seems something wonky with the post deletion method and how the forum handles it. I'd imagine post numbers are calculated on a per page basis for the first post, thus resulting in the weird skip in numbers between pages. It's assuming 20 posts per page previous when, due to post deletion, this isn't the case (because delete posts are removed from the post count within the page and the count is adjusted accordingly.)

So, basically we have deleted posts that are contributing to the "number of posts on this page" but not to the post# of a thread. Meanwhile the outer max-page calculation is not including the deleted posts, thus resulting in the number of page calculation being skewed in threads with deleted posts. At least, that's my guess from an outsider's perspective.

Edit: Also, I'd imagine the post #s being adjusted after posts are deleted will cause problems with linking to specific posts. If you get the link from a post and then the post above it is deleted, I'd imagine the link will actually point to the post below what you're looking for. So this could potentially be more than a minor annoyance in having to click twice to get to the last page of a thread.

Edited by Hylius, 06 February 2012 - 10:53 AM.


#4 Kyle Polulak

    <member/>

  • Overlord
  • Overlord
  • 584 posts
  • LocationVancouver, BC

Posted 06 February 2012 - 01:43 PM

This is an issue with caching and is not an error.

Thank you for bringing this to our attention.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users