Results 1 to 10 of 10

Thread: Total posts and threads different on portal and forumhome

  1. #1

    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.

  2. #2

    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?




  3. #3
    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.

  4. #4
    Senior Member ConqSoft's Avatar
    Join Date
    Jan 2004
    Location
    Raleigh, NC
    Posts
    1,614

    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. ***

  5. #5

    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...

  6. #6
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,434

    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.

  7. #7

    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?

  8. #8
    Administrator Brian's Avatar
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,434

    Default Re: Total posts and threads different on portal and forumhome

    When you edit a forum, there is an option called 'Forum is Active'.

  9. #9

    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.

  10. #10

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •