Jump to content

Recommended Posts

Posted (edited)

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?

Edited by CgC
Posted

Thanks for posting!

Unfortunately, this issue is beyond the scope of our technical support. 👩‍💻

Our technical support is happy to help you with the Invision Community platform, but we're unable to help with things like server management, theme questions and modifications.

I've moved this to our Community Support area where other Invision Community owners will see it and help where they can.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...