Ranking

By Points

$info) {
if (dm_is_current_user($id)) $rank_list[$id] = $info;
}

//arsort($rank_list);

$counter=0;

//print_r($rank_list);
if (is_array($rank_list)) {
foreach ($rank_list as $id => $rank) {
if ($rank[‘rank’]!=$next) $rank_no++;
$counter++;
if ($rank_no==10) $var1=$counter;
echo “

“;
$next=$rank[‘rank’];
}
}
else {
foreach ($users as $id => $rank) {
if ($rank[‘rank’]!=$next) $rank_no++;
$counter++;
if ($rank_no==10) $var1=$counter;
if ($rank[‘rank’]>0) {
echo “

“;
$next=$rank[‘rank’];
}
}
}

?>

“.$rank_no.” “;

$oauthzz=$rank[‘oauth_uid’];
if (!is_null($oauthzz)) echo ““;
//echo $rank[‘oauth_uid’];

echo “

“.dm_displayname_by_id($rank[‘id’]).” “.$rank[‘rank’].”
“.$rank_no.” “;

if (!is_null($rank[‘oauth_uid’])) echo ““;

echo “

“.dm_displayname_by_id($rank[‘id’]).” “.$rank[‘rank’].”

 

$info) {
if (dm_is_current_user($id)) {
$badges[$id]=dm_earned_achievements($id);
$levels[$id]=dm_earned_achievements_by_level($id);
$result[$id] = count($badges[$id]);
//$result[$id] = count($levels[$id]);
}
}

//print_r($levels);

if (is_array($result)) {
echo ‘

By Achievements

‘;
//arsort($result);

$counter=0;

foreach ($result as $id => $total) {
$levelzz=0;
if ($total!=$next) $rank_no++;
$counter++;
foreach ($levels[$id] as $levelxx) $levelzz=$levelzz+$levelxx;
if ($rank_no==5) $var2=$counter;

if ($total>0) echo “

“;
$next=$total;
}
echo ‘

“.$rank_no.” “.dm_displayname_by_id($id).” [badgelist name='”.dm_username_by_id($id).”‘ size=’40’] (“.$total.”/”.$levelzz.”)

‘;
}

?>

 

FAQ

Q: Why am I not on the list?
A: Have you logged in with facebook yet? If not, please do that first. Also, you will not show up if you did not attend the most recent march. Lastly, my records are occationally incomplete. Please let me know if you attended a year that doesn’t show up on your About Me page.

Q: Wait man, this ranking is bogus! I totally have more points than that!
A: Let me know! Your Grand Marshal loves you and can fix it.

Q: How do you determine how many points I have?
A: As per the bylaws, you earn 3 points for a complete Death March, 2 for an Absentee March, and 1 for being a member of MaST, for failing a Death March, or being a member of the Cavalry. You can also earn extra points for driving, being first to the sea, or through Seasonal Marches. Those points then decay exponentially over time at a rate of -0.25.

Q: How do you calculate point decay exactly?
A: Points for the Year x e(-0.25 x (Current Year – Year Points Were Earned))

Q: Why isn’t my grandiose title listed?
A: You may not have filled out your user info yet or (if you are anti-facebook) filled out this year’s survey!

Q: Why aren’t all of my achievements listed?
A: You may not have claimed them yet.

Q: Why don’t you run a model that allows for the decay to actually be random like the half lives of atoms?
A: SAY RANDOM ONE MORE GODDAMN TIME!

Q: What happened to the old ranking system?
A: Since the old system caused too many ties, a new system was developed. If you really want to know what the historical ranking system would look like today, look at this page: Historical Ranking Playground

var numShown1 = “.$var1.”;“;

echo ““;

echo ““;

echo ““;
?>


Leave a Reply

Your email address will not be published. Required fields are marked *