Our forum statistics are not showing up on the forum's home page and I'd like to add them to the template. I'm not a coding whiz at all, but I got this code for the stats from another thread:
<div id="wgo_stats" class="wgo_subblock"> <h3><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}" />{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}</h3>
<div>
<dl>
<dt>{vb:rawphrase threads}</dt>
<dd>{vb:raw totalthreads}</dd>
<dt>{vb:rawphrase posts}</dt>
<dd>{vb:raw totalposts}</dd>
<dt>{vb:rawphrase members}</dt>
<dd>{vb:raw numbermembers}</dd>
<vb:if condition="$show['activemembers']">
<dt>{vb:rawphrase active_members}</dt>
<dd>{vb:raw activemembers}</dd>
</vb:if>
</dl>
<p>{vb:rawphrase welcome_to_our_newest_member_x, {vb:link member, {vb:raw newuserinfo}}, {vb:raw newuserinfo.username}}</p>
{vb:raw template_hook.forumhome_wgo_stats}
But when I add it to the forumhome template, there's no formatting in the block (all the stats are just listed underneath each other) and it throws out the whole front page. I'm not sure if this is because I'm adding it in the wrong spot (there's nothing at {vb:raw template_hook.forumhome_wgo_pos5} so I added it in that position, but it still throws everything out) or because the code isn't correct.
Can anyone please help me find a (easier) way to add our forum statistics to the home page?
<div id="wgo_stats" class="wgo_subblock"> <h3><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}" />{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}</h3>
<div>
<dl>
<dt>{vb:rawphrase threads}</dt>
<dd>{vb:raw totalthreads}</dd>
<dt>{vb:rawphrase posts}</dt>
<dd>{vb:raw totalposts}</dd>
<dt>{vb:rawphrase members}</dt>
<dd>{vb:raw numbermembers}</dd>
<vb:if condition="$show['activemembers']">
<dt>{vb:rawphrase active_members}</dt>
<dd>{vb:raw activemembers}</dd>
</vb:if>
</dl>
<p>{vb:rawphrase welcome_to_our_newest_member_x, {vb:link member, {vb:raw newuserinfo}}, {vb:raw newuserinfo.username}}</p>
{vb:raw template_hook.forumhome_wgo_stats}
But when I add it to the forumhome template, there's no formatting in the block (all the stats are just listed underneath each other) and it throws out the whole front page. I'm not sure if this is because I'm adding it in the wrong spot (there's nothing at {vb:raw template_hook.forumhome_wgo_pos5} so I added it in that position, but it still throws everything out) or because the code isn't correct.
Can anyone please help me find a (easier) way to add our forum statistics to the home page?
Comment