News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Number of replies in header

Started by Leinnan, March 07, 2015, 07:16:55 PM

Previous topic - Next topic

Leinnan

I want to show number of replies on top of the topic. How to do this? I cannot find this variable.

shadow82x

Are you using SMF2.1?

What theme design are you using?
Colin B
Former Spammer, Customize, & Support Team Member

Leinnan

Of course. That's why I wrote here.

margarett

$context['num_replies'] is the variable you're looking for ;)

It is only set when viewing a topic (eg: in Display).

Quote from: Leinnan on March 07, 2015, 08:11:42 PM
Of course. That's why I wrote here.
Yeah but unfortunately we had a LOT of people posting here when using 2.0.x so we need to ask...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Leinnan

Thanks, work perfectly!
Quote from: margarett on March 07, 2015, 08:18:41 PM
Yeah but unfortunately we had a LOT of people posting here when using 2.0.x so we need to ask...
No problem.

Advertisement: