XF 2.3 Show $thread.reply_count for a specific thread ID?

Wing

Well-known member
Quick question for you XF coders...

I have a button that is displayed on our forum_overview.
1734895838006.webp
I would like that number to show the total amount of replies in a certain thread. Any idea what code I should use to specify the reply count call to a specific thread?

Tried:
Code:
<xf:button href="https://www.v303rdfightergroup.com/index.php?threads/operation-prevailing-liberty.3973//Latest" class="siprcombat">
<i class="fas fa-khanda"></i> OPL SIPR ({{$xf.reply.contentKey ==thread-3793 ($thread.reply_count)}})</xf:button>

With no success.
 
Maybe you can get some clues in the widget_thread_statistics template?
Code:
{$thread.reply_count|number}
 
Back
Top Bottom