Ethan.Wong
started a topic on Tue, 22 September 2015 at 7:46 PM
I want to show the Level in the leaderboard. But my leaderboard is ordered by SCORE.
Ethan.Wong
started a topic on Tue, 22 September 2015 at 7:46 PM
I want to show the Level in the leaderboard. But my leaderboard is ordered by SCORE.
Best Answer **
**Brendan Vanous said on Tue, 06 Oct at 12:33 AM
Hi Ethan,
Correct, leaderboards are a single column, containing the user's score. If your goal is to display both at the same time, you could query for the additional data when the user clicks on a player (displaying extra info for the specific player) by querying it from that user's data.
Alternately, there's a Feature Request item for custom fields on leaderboard entries, here: hhttps://community.playfab.com/hc/en-us/community/posts/206730237-Request-Custom-Fields-in-Leaderboard-Results. If that's what you need, please do add your voice to that thread, so that we're tracking accurately on who all has asked for each feature.
Brendan
1 Comment
Brendan Vanous said on Tue, 06 Oct at 12:33 AM
Hi Ethan,
Correct, leaderboards are a single column, containing the user's score. If your goal is to display both at the same time, you could query for the additional data when the user clicks on a player (displaying extra info for the specific player) by querying it from that user's data.
Alternately, there's a Feature Request item for custom fields on leaderboard entries, here: https://community.playfab.com/hc/en-us/community/posts/206730237-Request-Custom-Fields-in-Leaderboard-Results. If that's what you need, please do add your voice to that thread, so that we're tracking accurately on who all has asked for each feature.
Brendan
Hi Brendan,
The link is no more working, i have the same needs of Ethan, i need to show few info in the leaderboard and friend list tab in my game, what is the best practice to do it?
Thanks.
Thanks - I've updated the link in the above post to update it for the new support site.
For your friends list tab, you can grab the essentials from the GetFriendsList call, so one way to do this right now is to make one call to that and one to GetFriendLeaderboard (or GetFriendLeaderboardAroundCurrentUser, or GetFriendLeaderboardAroundPlayer), and display the aggregate info.
No one has followed this question yet.