Announcement

Collapse
No announcement yet.

Count number of posts on the page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Count number of posts on the page

    What's the variable that contains the number of posts that is on the current page (in showthread.php) that the user is viewing? For instance, if there is only 1 post, then 1. If there are 40 posts, but the user is only showing 30 posts per page and he's on the second page, then it's 10 (because 40 - 30 = 10 posts left on the second page.)

    Thanks in advance!

  • #2
    $GLOBALS[perpage] holds what the user has selected, or forum default.

    $GLOBALS[totalposts] holds the total posts in the thread - just for info
    Lats...

    Comment

    Related Topics

    Collapse

    Working...
    X