DaPro
07-18-2009, 07:14 PM
Hi,
I am looking for a plugin compatibile with 3.8.3 that will show basic stats for your forum like total threads, total posts, registered members, users online, etc. Is there anything currently or would anyone mind sharing a script that works? I found this on the forum but it doesn't work:
$specialtemplates = array(
'userstats',
);
chdir("./community/");
require_once("./global.php");
require_once("./includes/functions_forumlist.php");
chdir("../");
// Forum Stats
cache_ordered_forums(1);
$totalthreads = 0;
$totalposts = 0;
if (is_array($forumcache))
{
foreach ($forumcache AS $forum)
{
$totalthreads += $forum['threadcount'];
$totalposts += $forum['replycount'];
}
}
$totalthreads = vb_number_format($totalthreads);
$totalposts = vb_number_format($totalposts);
$userstats = unserialize($datastore['userstats']);
$totalmembers = vb_number_format($userstats['numbermembers']);
Anyone who could help would be amazing :)!
I am looking for a plugin compatibile with 3.8.3 that will show basic stats for your forum like total threads, total posts, registered members, users online, etc. Is there anything currently or would anyone mind sharing a script that works? I found this on the forum but it doesn't work:
$specialtemplates = array(
'userstats',
);
chdir("./community/");
require_once("./global.php");
require_once("./includes/functions_forumlist.php");
chdir("../");
// Forum Stats
cache_ordered_forums(1);
$totalthreads = 0;
$totalposts = 0;
if (is_array($forumcache))
{
foreach ($forumcache AS $forum)
{
$totalthreads += $forum['threadcount'];
$totalposts += $forum['replycount'];
}
}
$totalthreads = vb_number_format($totalthreads);
$totalposts = vb_number_format($totalposts);
$userstats = unserialize($datastore['userstats']);
$totalmembers = vb_number_format($userstats['numbermembers']);
Anyone who could help would be amazing :)!