XF 2.2 Replace thread count with views

  • Thread starter Deleted member 241496
  • Start date
D

Deleted member 241496

Guest
We are trying to code so that our main forums page displays posts and views for each node. We figured this is controlled in the

node_list_forum​

template. However, we can't figure out what code needs to be used to display the views for a specific node. This is the code area we need to change:

Code:
<xf:if is="!{$extras.privateInfo}">
                <div class="node-stats">
                    <dl class="pairs pairs--rows">
                        <dt>{{ phrase('posts') }}</dt>
                        <dd>{$extras.message_count|number_short(1)}</dd>
                    </dl><dl class="pairs pairs--rows">
                        <dt>{{ phrase('threads') }}</dt>
                        <dd>{$extras.discussion_count|number_short(1)}</dd>
                    </dl>
                </div>
            </xf:if>
 
Top