The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#2
|
|||
|
|||
![]()
Try this: create a new plugin using hook parse_template and this code:
Code:
global $vbulletin; $totalthreads = 0; $totalposts = 0; if (is_array($vbulletin->forumcache)) { foreach ($vbulletin->forumcache AS $forum) { $totalthreads += $forum['threadcount']; $totalposts += $forum['replycount']; } } $totalthreads = vb_number_format($totalthreads); $totalposts = vb_number_format($totalposts); vB_Template::preRegister('header', array('totalthreads' => $totalthreads, 'totalposts' => $totalposts)); Then you should be able to use {vb:raw totalposts} in the header (I know you didn't ask for totalthreads, but it was there so I thought I'd just leave it). |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|