XF 1.0 how to get total member value on forum?

Jake Bunce

XenForo moderator
Staff member
Those variables are only available on the index page. Where are you trying to display those numbers? On what page?
 

Jake Bunce

XenForo moderator
Staff member
Oh I see you want it above the node list. Edit this template:

Admin CP -> Appearance -> Templates -> forum_list

Add the red code:

Rich (BB code):
<xen:h1>{$xenOptions.boardTitle}</xen:h1>

<xen:container var="$head.canonical"><link rel="canonical" href="{xen:link 'canonical:index'}" /></xen:container>
<xen:if is="{$xenOptions.boardDescription}"><xen:container var="$head.description">
	<meta name="description" content="{$xenOptions.boardDescription}" /></xen:container></xen:if>
<xen:container var="$head.openGraph">
	<xen:include template="open_graph_meta">
		<xen:set var="$url">{xen:link 'canonical:index'}</xen:set>
		<xen:set var="$title">{$xenOptions.boardTitle}</xen:set>
	</xen:include></xen:container>

<div style="text-align: right;">
	{xen:phrase discussions}: {xen:number $boardTotals.discussions},
	{xen:phrase messages}: {xen:number $boardTotals.messages},
	{xen:phrase members_count}: {xen:number $boardTotals.users}
</div>

<xen:hook name="forum_list_nodes">
	<xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>
</xen:hook>
	
<xen:sidebar>
	<xen:edithint template="sidebar.css" />
	
	<xen:hook name="forum_list_sidebar">
 
Top