How to get user leaderboard position?
-
Hi! I need to display a special icon next to the username if the user is on top of the leaderboard. How to get user leaderboard position based on balance and timeframe this-month?
I’d like to use it that way:
$position = get_user_leaderboard_position($userid); if ($position == 1) { echo '...'; } if ($position == 2) { echo '...'; } if ($position == 3) { echo '...'; } if ($position >= 4 && $position <= 10 ) { echo '...'; }
Can you help me create ‘get_user_leaderboard_position’ function?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to get user leaderboard position?’ is closed to new replies.