This is just a guess off the top of my head, but...Originally Posted by BrentWilson
I dont think the forums stats include the garage and galley while the vBadvanced does.
On another note, where did you get that map program from and are you willing to share here?
I agree, I am also interested in the Map script.Originally Posted by tomshawk
I dont think thats it..... I dont have posts in the gallery or garage... threads either...Originally Posted by tomshawk
Do you have any forums which are not active? The stats in the CMPS will not take that into account and will still add those forums to the totals.
What do you mean not active?Originally Posted by Brian
When you edit a forum, there is an option called 'Forum is Active'.
Ok yes I do.Originally Posted by Brian
How do I make it not do that? I need them to be both the same.
Just wanted to let you know I figured out a way around it for those with same problem.
My stats file now:
Simply added up all my inactive forums' threads and posts and then assingned them to a variable. Then subtracted that variable from the $nthreads and $nposts variable and gave then $allthreads and $allposts hold the new value that is the same as forumhome.PHP Code:
// || vBadvanced CMPS v2.0 RC1 - 12744
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 15:44, Sun Jun 5th 2005
// ++ ========================================================================++
$nthreads = 0;
$nposts = 0;
$getforumstats = $DB_site->query('SELECT threadcount, replycount FROM ' . TABLE_PREFIX . 'forum' );
while ($forum = $DB_site->fetch_array($getforumstats))
$nthreads += $forum['threadcount'];
$nposts += $forum['replycount'];
$inactivethreads = '200';
$inactiveposts = '1570';
$allthreads = $nthreads - $inactivethreads;
$allposts = $nposts - $inactiveposts;
$totalthreads = vb_number_format($allthreads);
$totalposts = vb_number_format($allposts);
$topposter = $DB_site->query_first('SELECT username, posts, userid FROM ' . TABLE_PREFIX . 'user ORDER BY posts DESC LIMIT 1');
$topposter['posts'] = vb_number_format($topposter['posts']);
$userstats = unserialize($datastore['userstats']);
$numbermembers = vb_number_format($userstats['numbermembers']);
$newusername = $userstats['newusername'];
$newuserid = $userstats['newuserid'];
eval('$home["$mods[modid]"][\'content\'] = "' . fetch_template('adv_portal_stats') . '";');
I am sure there is a easier way but this is the best I could come up with on my own.
There are currently 1 users browsing this thread. (0 members and 1 guests)