Hi all,
I'm adding the sidebar to all pages of our theme.
I ended up moving the sidebar stuff into its own template called 'sidebar' as it would get messy having it at the bottom of the forumlist, threadlist and threadview templates.
I'm getting a PHP error at the top of my page, basically because you apparently cant show stats on anything other than forum home.
So my question is:
1) Is it possible to allow those stats to work on the thre templates mentioned above.
if NOT, what is the <xen:if> condition for making it so I can include the stats bits only on the homepage?
Here's a copy of my sidebar template if it helps:
I'm adding the sidebar to all pages of our theme.
I ended up moving the sidebar stuff into its own template called 'sidebar' as it would get messy having it at the bottom of the forumlist, threadlist and threadview templates.
I'm getting a PHP error at the top of my page, basically because you apparently cant show stats on anything other than forum home.
So my question is:
1) Is it possible to allow those stats to work on the thre templates mentioned above.
if NOT, what is the <xen:if> condition for making it so I can include the stats bits only on the homepage?
Here's a copy of my sidebar template if it helps:
Code:
<xen:sidebar>
<xen:edithint template="sidebar.css" />
<xen:include template="sidebar_online_users" />
<div class="section">
<div class="statsList" id="boardStats">
<h3>{xen:phrase forum_statistics}</h3>
<div class="pairsJustified sideContent">
<dl class="discussionCount"><dt>{xen:phrase discussions}:</dt>
<dd>{xen:number $boardTotals.discussions}</dd></dl>
<dl class="messageCount"><dt>{xen:phrase messages}:</dt>
<dd>{xen:number $boardTotals.messages}</dd></dl>
<dl class="memberCount"><dt>{xen:phrase members}:</dt>
<dd>{xen:number $boardTotals.users}</dd></dl>
<dl><dt>{xen:phrase latest_member}:</dt>
<dd><a href="{xen:link members, $boardTotals.latestUser}" class="username">{$boardTotals.latestUser.username}</a></dd></dl>
</div>
</div>
</div>
</xen:sidebar>