Member numbers seem to be in the counted totals...

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

Member numbers seem to be in the counted totals...

Postby MoreBloodWine » Wed Jun 04, 2008 4:02 am

http://www.politicalchaos.net/roster/index.php?s=level

Ok so if you goto my roster and check it out you'll se what I'm talking about if you take the time to do a bit of counting. Anyway, the discrepencies seem to be within the 1 - 39 range.

1 - 29: Should be 80
30 - 39: Should be 41
40 - 49: Right
50 - 59: Right
60 - 69: Right
70 & up: Right

Edit: Best I can tell the "total" figures for each grouping is controlled by the following bit of code. I've been playing around with it but can't seem to get it to tally up right.

Code: Select all
      case 0:
         $num_lvl_1_29 += $row['amount'];
         break;
      case 1:
      case 2:
      case 3:
         $num_lvl_30_39 += $row['amount'];
         break;
      case 4:
         $num_lvl_40_49 += $row['amount'];
         break;
      case 5:
         $num_lvl_50_59 += $row['amount'];
         break;
      case 6:
         $num_lvl_60_69 += $row['amount'];
         break;
      case 7:
         $num_lvl_70_79 += $row['amount'];
         break;
      case 8:
         $num_lvl_80 += $row['amount'];
         break;
Last edited by MoreBloodWine on Wed Jun 04, 2008 6:26 am, edited 2 times in total.
MoreBloodWine
WR.net Apprentice
WR.net Apprentice
 
Posts: 33
Joined: Sun May 25, 2008 6:36 pm

Re: Member numbers seem to be in the counted totals...

Postby MoreBloodWine » Wed Jun 04, 2008 6:39 am

Fixed it the above code needs to look like this... the empty "cases" were just misplaced. Moving them to the proper places will now tally up the lvl's right.

Code: Select all
      case 0:
      case 1:
      case 2:
         $num_lvl_1_29 += $row['amount'];
         break;
      case 3:
         $num_lvl_30_39 += $row['amount'];
         break;
      case 4:
         $num_lvl_40_49 += $row['amount'];
         break;
      case 5:
         $num_lvl_50_59 += $row['amount'];
         break;
      case 6:
         $num_lvl_60_69 += $row['amount'];
         break;
      case 7:
         $num_lvl_70_79 += $row['amount'];
         break;
      case 8:
         $num_lvl_80 += $row['amount'];
         break;
MoreBloodWine
WR.net Apprentice
WR.net Apprentice
 
Posts: 33
Joined: Sun May 25, 2008 6:36 pm

Member numbers seem to be in the counted totals...

Postby PleegWat » Wed Jun 04, 2008 6:44 pm

They're right in SVN. You've been turning stuff around when you hacked in L80 support.

Aren't you a bit early implementing that anyway?
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Member numbers seem to be in the counted totals...

Postby MoreBloodWine » Wed Jun 04, 2008 10:52 pm

PleegWat wrote:They're right in SVN. You've been turning stuff around when you hacked in L80 support.

Aren't you a bit early implementing that anyway?
Never to early to be prepared... so this post gonna get locked like my last one because I "hacked" in L80 support. But ya I did get it turned around when I ordered it the way I like it displayed 1-10 instead of 10-1. I just got it messed up when I placed everything in numerical order heh.
MoreBloodWine
WR.net Apprentice
WR.net Apprentice
 
Posts: 33
Joined: Sun May 25, 2008 6:36 pm


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 0 guests

cron