vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > Troubleshooting & Problems

Reply
 
Thread Tools Display Modes
  #1  
Old 06-07-2005, 08:50 PM
BrentWilson BrentWilson is offline
Member
 
Join Date: Apr 2005
Posts: 64
Default Total posts and threads different on portal and forumhome

http://www.mustangevolution.com
http://www.mustangevolution.com/forum

The total posts and total threads are different numbers on the two stats sections above.
Reply With Quote
  #2  
Old 06-07-2005, 11:08 PM
tomshawk's Avatar
tomshawk tomshawk is offline
tech-unity.com
 
Join Date: Jun 2004
Posts: 452
Default Re: Total posts and threads different on portal and forumhome

Quote:
Originally Posted by BrentWilson
http://www.mustangevolution.com
http://www.mustangevolution.com/forum

The total posts and total threads are different numbers on the two stats sections above.
This is just a guess off the top of my head, but...

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?
__________________



Reply With Quote
  #3  
Old 06-08-2005, 01:04 AM
RBasil RBasil is offline
Junior Member
 
Join Date: Jun 2005
Posts: 25
Default Re: Total posts and threads different on portal and forumhome

Quote:
Originally Posted by tomshawk
This is just a guess off the top of my head, but...

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.
Reply With Quote
  #4  
Old 06-08-2005, 01:10 AM
ConqSoft's Avatar
ConqSoft ConqSoft is offline
Senior Member
 
Join Date: Jan 2004
Location: Raleigh, NC
Posts: 1,364
Default Re: Total posts and threads different on portal and forumhome

The map is just an imagemap that filters the Memberlist by their location field.
__________________
My Blog
GPS Discussion Forum

*** Please do not contact me privately for help. Thanks. ***
Reply With Quote
  #5  
Old 06-08-2005, 03:50 PM
BrentWilson BrentWilson is offline
Member
 
Join Date: Apr 2005
Posts: 64
Default Re: Total posts and threads different on portal and forumhome

Quote:
Originally Posted by tomshawk
This is just a guess off the top of my head, but...

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 dont think thats it..... I dont have posts in the gallery or garage... threads either...
Reply With Quote
  #6  
Old 06-08-2005, 05:32 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Total posts and threads different on portal and forumhome

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.
Reply With Quote
  #7  
Old 06-08-2005, 10:07 PM
BrentWilson BrentWilson is offline
Member
 
Join Date: Apr 2005
Posts: 64
Default Re: Total posts and threads different on portal and forumhome

Quote:
Originally Posted by Brian
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?
Reply With Quote
  #8  
Old 06-08-2005, 11:05 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Total posts and threads different on portal and forumhome

When you edit a forum, there is an option called 'Forum is Active'.
Reply With Quote
  #9  
Old 06-14-2005, 09:03 PM
BrentWilson BrentWilson is offline
Member
 
Join Date: Apr 2005
Posts: 64
Default Re: Total posts and threads different on portal and forumhome

Quote:
Originally Posted by Brian
When you edit a forum, there is an option called 'Forum is Active'.
Ok yes I do.

How do I make it not do that? I need them to be both the same.
Reply With Quote
  #10  
Old 06-16-2005, 02:50 AM
BrentWilson BrentWilson is offline
Member
 
Join Date: Apr 2005
Posts: 64
Default Re: Total posts and threads different on portal and forumhome

Just wanted to let you know I figured out a way around it for those with same problem.

Simple subtraction:

My stats file now:

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
// || 
// ++ ========================================================================++

include_once('./includes/functions_forumlist.php');

$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);

$DB_site->free_result($getforumstats);
unset(
$forum);

$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') . '";');

unset(
$userstats$topposter); 
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.

I am sure there is a easier way but this is the best I could come up with on my own.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Posts about threads not appearing Allen Mead Troubleshooting & Problems 3 03-15-2005 04:14 PM
Show number of threads/posts in module header ? Bergman Troubleshooting / "How do I..." Questions 1 11-28-2004 08:43 AM
Threads and Posts on user falvesri Troubleshooting / "How do I..." Questions 4 09-13-2004 01:37 PM


All times are GMT -4. The time now is 09:23 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.