The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Displaying forumstats in a sidebar block
Hello. I'm trying to move the Forum Statistics from What's Going On into a forum block. I read that it was possible to put the code in a template, and then just register the template in a PHP block. I'm there, but how to I access the variables in the template?
Here's my code Created new template called 'forumhome_forumstats' Code:
<dl> <dt>{vb:rawphrase threads}</dt> <dd>{vb:raw totalthreads}</dd><br /> <dt>{vb:rawphrase posts}</dt> <dd>{vb:raw totalposts}</dd><br /> <dt>{vb:rawphrase members}</dt> <dd>{vb:raw numbermembers}</dd><br /> <vb:if condition="$show['activemembers']"> <dt>{vb:rawphrase active_members}</dt> <dd>{vb:raw activemembers}</dd> </vb:if> </dl> Code:
$templater = vB_Template::create('forumhome_forumstats'); $output = $templater->render(); return $output; Thank you |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|