Achievements

‘.$ainfo[‘name’].’

‘;
echo ‘

‘;
dm_achievement_badge_by_id($ainfo[‘id’],300);
echo ‘

‘.$ainfo[‘description’].’

‘;

$earned_by=dm_achievements_earned($ainfo[‘id’]);
if (count($earned_by)>0) echo ‘

Earned By:

    ‘;

    //print_r($earned_by);
    foreach ($earned_by as $user) {
    echo “

  • “.dm_displayname_by_id($user[‘user’]).” – Level “.dm_earned_achievement_level($user[‘user’],$ainfo[‘id’]).” – First earned “.$user[‘year’].”
  • “;
    }

    echo ‘

‘;

if (isset($ainfo[‘attribution’]) && $ainfo[‘attribution’] != “”) echo ‘Image CC The Noun Project‘;
}
else {

echo “These are the various achievements that you can perform on the Death March to earn fame for all time. Grayed out achievements have NEVER been performed. You can be the first!”;

if ($_SESSION[‘fb_340492796034948_user_id’]) {
//check to see if they are in the db
if ($user = dm_user_by_oauth_uid($_SESSION[‘fb_340492796034948_user_id’])) {
echo “

Don’t see your name under an achievement? Claim it here!

“;
}
}
?>
See also: The Difference between Achievements and Punishments

2) {
echo “

“;
$i=0;
}

echo “

“;
dm_achievement_badge($badge[‘name’]);
echo ““.$badge[‘name’].”

“;
echo “

“.$badge[‘description’].”

“;
echo “

“;
$i++;
}
echo “

“;
}
?>


Leave a Reply

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