The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
This makes no sense. Why is something so simple being so difficult?
Adding the following code as a plugin in global_start does not work: Code:
// ### BOARD STATISTICS #################################################
// get total threads & posts from the forumcache
$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);
// get total members and newest member from template
$numbermembers = vb_number_format($vbulletin->userstats['numbermembers']);
$newusername = $vbulletin->userstats['newusername'];
$newuserid = $vbulletin->userstats['newuserid'];
$activemembers = vb_number_format($vbulletin->userstats['activemembers']);
$show['activemembers'] = ($vbulletin->options['activememberdays'] > 0 AND ($vbulletin->options['activememberoptions'] & 2)) ? true : false;
I have not seen a suitable fix for this. And no, a mod that executes 6 queries just to pull up these cached statistics is not what I am looking for. |
|
#2
|
||||
|
||||
|
just a small bit from one of my custom files on my site.....it should help you out a bit:
PHP Code:
Actually....looking at that again, that IS part of my file. You're just missing the require_once variables I believe |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|