PDA

View Full Version : statistic on another page


Gamempire
09-01-2008, 08:14 PM
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:
// 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 1220369349 at 1220369349 ---------------

anyone of all the coder that are here have an idea about this??