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

How to add forum count

Discussion in 'Styling and Customization Questions' started by zmalone, Feb 29, 2012.

  1. zmalone

    zmalone Member

    Hello ,

    I have question : how to add a forum message count in sidebar

    COUNT.JPG
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. zmalone

    zmalone Member

    I do not want a add-on, I just want the code added :

    Code:
     <dl class="discussionCount"><dt>hacks:</dt>
                            <dd>{$forum.........=== MY FORUM ID}</dd></dl>
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The problem is that you need access to the message_count for the forum.

    I actually tried to make this work without an addon before I replied. The $renderedNodes are available on the index page, but they are rendered forums not forum records. You can't index into them and access the counts for individual forums. An addon is required to get the count for use in the sidebar.
     
  5. zmalone

    zmalone Member

    Okay , thank you .
     

Share This Page