XF 1.5 Customizing the Forum Stats box

MattH

Active member
Hi Guys,

I asked a similar question in the past, but wanted to catch up and try to implement this. The forum stats box on my forum is really high because it is counting a subforum that has some RSS generated content. I looked into the templates and found:

$boardTotals.discussions
$boardTotals.messages

And wondered if there is a way to edit the content of those, or somehow otherwise adjust the number showing so it only reflects messages and discussions created as 'real' threads?

Thanks!

Screen Shot 2015-12-22 at 2.20.55 PM.webp
 
It would require an add-on to do it properly but a quick and dirty way would be to use xen:calc and subtract a value from both totals.

You would have to keep updating it manually though.
 
It would require an add-on to do it properly but a quick and dirty way would be to use xen:calc and subtract a value from both totals.

You would have to keep updating it manually though.

Thanks - I was wondering if each forum had a counter and could remove the variable using a calc.. but I guess not. How would the syntax read for the xen:calc?
 
There are counts for each forum but I doubt the data is available to that template.

The syntax would be:
HTML:
{xen:number {xen:calc '{$boardTotals.discussions} - 1000'}}
 
Top Bottom