P.Jackson
05-02-2004, 03:49 PM
ok i have this file for my cms
function returnforumstats() {
global $foruminfo,$forumpath,$vb_prefix;
$userdata = query_first("SELECT * FROM ".$vb_prefix."datastore WHERE title = 'userstats'");
$userdata = unserialize($userdata['data']);
$forumnewestmember = $userdata[newusername];
$forummembercount = $userdata[numbermembers];
$countthreads = query_first('SELECT COUNT(*) AS threads FROM ' . $vb_prefix . 'thread');
$posts = query_first('SELECT COUNT(*) AS count FROM ' . $vb_prefix . 'post');
$forumpostcount = intval($posts['count']);
eval("\$forumstats = \"".returnpagebit("misc_stats_forum")."\";");
return $forumstats;
}
now would would i add in there to get
Total threads
Forums users online?
function returnforumstats() {
global $foruminfo,$forumpath,$vb_prefix;
$userdata = query_first("SELECT * FROM ".$vb_prefix."datastore WHERE title = 'userstats'");
$userdata = unserialize($userdata['data']);
$forumnewestmember = $userdata[newusername];
$forummembercount = $userdata[numbermembers];
$countthreads = query_first('SELECT COUNT(*) AS threads FROM ' . $vb_prefix . 'thread');
$posts = query_first('SELECT COUNT(*) AS count FROM ' . $vb_prefix . 'post');
$forumpostcount = intval($posts['count']);
eval("\$forumstats = \"".returnpagebit("misc_stats_forum")."\";");
return $forumstats;
}
now would would i add in there to get
Total threads
Forums users online?