Board totals

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Eagle Creek
    Senior Member
    • Apr 2003
    • 1206
    • 3.6.x

    Board totals

    Hi!

    Is it possible to manually upgrade the postcounter?

    I ask because we have about 1500000 posts now, and we are going to put them into an archive forum.
    Off course I don't want to lose the counter..

    We are going to use IMPEX.. Will this mean I'm going to lose the counter? If yes: can I manually make it higher?
    http://www.nucia.nl/forum/
    The best way to kill malware; is to kill it together.
  • Lats
    Senior Member
    • Mar 2002
    • 3671

    #2
    check here...
    Lats...

    Comment

    • Eagle Creek
      Senior Member
      • Apr 2003
      • 1206
      • 3.6.x

      #3
      So I'm looking around it but I don't know what do edit?

      Code:
      // get total threads & posts from the forumcache
      $totalthreads = 0;
      $totalposts = 0;
      if (is_array($vbulletin->forumcache))
      {
      	foreach ($vbulletin->forumcache AS $forum)
      	{
      		$totalthreads += $forum['threadcount'];
      		$totalposts += $forum['replycount'];
      	}
      }
      $totalthreads = vb_number_format($totalthreads);
      $totalposts = vb_number_format($totalposts);
      To I have to edit the TOTALTHREAD and TOTALPOSTS?
      http://www.nucia.nl/forum/
      The best way to kill malware; is to kill it together.

      Comment

      • Lats
        Senior Member
        • Mar 2002
        • 3671

        #4
        PHP Code:
        ...
        $totalposts += 1500000;
        $totalposts vb_number_format($totalposts);
        ... 
        Last edited by Lats; Thu 14 Sep '06, 1:44pm. Reason: finger trouble
        Lats...

        Comment

        • Eagle Creek
          Senior Member
          • Apr 2003
          • 1206
          • 3.6.x

          #5
          Ok.. But will it still increase then when my members are making more posts?

          And I see totalpost and totalposts.
          http://www.nucia.nl/forum/
          The best way to kill malware; is to kill it together.

          Comment

          • Lats
            Senior Member
            • Mar 2002
            • 3671

            #6
            Yes it will.
            Lats...

            Comment

            • Eagle Creek
              Senior Member
              • Apr 2003
              • 1206
              • 3.6.x

              #7
              I don't know enough about PHP yet to know if you're right so I'm going to give it a shot.
              I have to replace
              PHP Code:
              // get total threads & posts from the forumcache
              $totalthreads 0;
              $totalposts 0;
              if (
              is_array($vbulletin->forumcache))
              {
                  foreach (
              $vbulletin->forumcache AS $forum)
                  {
                      
              $totalthreads += $forum['threadcount'];
                      
              $totalposts += $forum['replycount'];
                  }
              }
              $totalthreads vb_number_format($totalthreads);
              $totalposts vb_number_format($totalposts); 
              by
              PHP Code:
              // get total threads & posts from the forumcache
              $totalthreads 0;
              $totalposts 0;
              if (
              is_array($vbulletin->forumcache))
              {
                  foreach (
              $vbulletin->forumcache AS $forum)
                  {
                      
              $totalthreads += $forum['threadcount'];
                      
              $totalposts += $forum['replycount'];
                  }
              }
              $totalposts += 1500000;
              $totalposts vb_number_format($totalposts); 
              and it will work.

              Thanks.
              http://www.nucia.nl/forum/
              The best way to kill malware; is to kill it together.

              Comment

              • Lats
                Senior Member
                • Mar 2002
                • 3671

                #8
                No, you just need to add an extra line so it looks like this...
                PHP Code:
                $totalthreads vb_number_format($totalthreads);
                $totalposts += 1500000;
                $totalposts vb_number_format($totalposts); 
                Lats...

                Comment

                • Eagle Creek
                  Senior Member
                  • Apr 2003
                  • 1206
                  • 3.6.x

                  #9
                  Aah, I'm sorry.

                  And for my membertotal? Same trick?
                  http://www.nucia.nl/forum/
                  The best way to kill malware; is to kill it together.

                  Comment

                  • Eagle Creek
                    Senior Member
                    • Apr 2003
                    • 1206
                    • 3.6.x

                    #10
                    Can you confirm that?
                    http://www.nucia.nl/forum/
                    The best way to kill malware; is to kill it together.

                    Comment

                    • Lats
                      Senior Member
                      • Mar 2002
                      • 3671

                      #11
                      Slightly different for that, look for...
                      PHP Code:
                      $numbermembers vb_number_format($vbulletin->userstats['numbermembers']); 
                      change to...
                      PHP Code:
                      $numbermembers vb_number_format($vbulletin->userstats['numbermembers']+20000); 
                      Change the 20000 to whatever you need.
                      Lats...

                      Comment

                      • Eagle Creek
                        Senior Member
                        • Apr 2003
                        • 1206
                        • 3.6.x

                        #12
                        T h a n k y o u .
                        http://www.nucia.nl/forum/
                        The best way to kill malware; is to kill it together.

                        Comment

                        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                        Working...