Hello
I would like to add posts count in forums.
I have found this solution somewhere:
Go to forumRow find:
<dl>
{{$count = \IPS\forums\Topic::contentCount( $forum, TRUE );}}
<dt class="ipsDataItem_stats_number">{number="$count"}</dt>
<dd class="ipsDataItem_stats_type ipsType_light">{lang="posts_no_number" pluralize="$count"}</dd>
</dl>
Replaced by:
<dl>
{{$count = \IPS\forums\Topic::contentCount( $forum, TRUE );}}
<dt class="ipsDataItem_stats_number">{number="$count"}</dt>
<dd class="ipsDataItem_stats_type ipsType_light">{lang="posts_no_number" pluralize="$count"}</dd>
<dt class="ipsDataItem_stats_number">{number="$forum->topics"}</dt>
<dd class="ipsDataItem_stats_type ipsType_light">{lang="{!# [1:temat][2:tematy][3:tematy][4:tematy][?:tematów]}" pluralize="$forum->topics"}</dd>
</dl>
It works but it does not include posts in subforums.
How could I achieve this?