1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Number of posts in a thread

Discussion in 'Styling and Customization Questions' started by Case, Jan 1, 2014.

  1. Case

    Case Active Member

    You can use {xen:number $thread.reply_count} to get the number of replies to a thread. Is there similar code to get the number of posts in a thread. So the replies + 1, basically.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    {xen:number {xen:calc '{$thread.reply_count} +1'}}
     
    Case likes this.
  3. Aivaras

    Aivaras Active Member

    Is this still the correct way to do it in v1.5? Or is there something similar to:

    $thread.message_count

    ?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Nothing has changed, it's still the same as I posted previously.
     
  5. Aivaras

    Aivaras Active Member

    Thanks for confirming this!
     

Share This Page