CgC
-
Posts
2 -
Joined
-
Last visited
Content Type
Downloads
Release Notes
IPS4 Guides
IPS4 Developer Documentation
Invision Community Blog
Development Blog
Deprecation Tracker
Providers Directory
Forums
Events
Store
Gallery
Posts posted by CgC
-
-
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?
Advanced Tags & Prefixes
in Feedback
Posted
Any update about this?
We would really love prefixes