The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
ok i have this file for my cms
Code:
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;
}
Total threads Forums users online? |
|
#2
|
||||
|
||||
|
Quote:
i think i answered this in another thread already. Right ? Cheers, |
|
#3
|
||||
|
||||
|
Another thing, why are you using these together?
PHP Code:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|