The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
statistic on another page
i succed to read the session of a user in my portal, bt now i'd like to read the statistic of the forum..
if include global.php and then i try to echo the (for example) $numbermembers, it does nothing... even if i use before this code: Code:
// Statitics // 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']); what i have to include to read the statistic of the forum in my website? --------------- Added [DATE]1220369349[/DATE] at [TIME]1220369349[/TIME] --------------- anyone of all the coder that are here have an idea about this?? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|