Page 1 of 1

Custom Rank/Ladder pages

Posted: 06 Apr 2013, 23:15
by Agamemnus
Hi, on player.maniaplanet.com you can point to "community" then click "rankings" to see a nice ladder of you and your friends world rank.

I help run an Australian gaming community and we like to promote competitive streak by putting a ladder like this up for many different games (unreal tournament, left 4 dead, battlefield) and I'm super keen to get a shootmania ladder happening on our website.

If there's some information somewhere that could help us do this I'd love to know. If we can make a ladder of our friends, our smootmania "group" or something, would be amazing. There seems to be options in player.maniaplanet.com that would allow for ranks to be accessed by external websites, but I can't find any help on how to do it :(

Re: Custom Rank/Ladder pages

Posted: 07 Apr 2013, 01:01
by dreammyw0w
yeah i need something like this too!
Some1 point me in the right direction please.

Re: Custom Rank/Ladder pages

Posted: 07 Apr 2013, 02:20
by Timmeh7
You could use PHP/MPWS to get the ranking of your buddies:

Code: Select all

$rankings = new \Maniaplanet\WebServices\Rankings\Storm($apiuser, $apipass);
$mplayer = $rankings->getMultiplayerPlayer($login);

Re: Custom Rank/Ladder pages

Posted: 07 Apr 2013, 17:41
by magnetik
Timmeh7 wrote:You could use PHP/MPWS to get the ranking of your buddies:

Code: Select all

$rankings = new \Maniaplanet\WebServices\Rankings\Storm($apiuser, $apipass);
$mplayer = $rankings->getMultiplayerPlayer($login);
True :thumbsup:

You can get the rankings of anyone on any title you want (even custom titles) :D

Re: Custom Rank/Ladder pages

Posted: 08 Apr 2013, 03:39
by Agamemnus
That's the kind of thing I'm looking for. Is there a page that shows all the commands? Like how to specify the title?

Re: Custom Rank/Ladder pages

Posted: 08 Apr 2013, 08:49
by magnetik
The best way is to check the code directly : https://code.google.com/p/maniaplanet-w ... 253Dclosed

You have a few classes for official title, and Title.php for all other titles.

Re: Custom Rank/Ladder pages

Posted: 08 Apr 2013, 16:35
by Electron

Re: Custom Rank/Ladder pages

Posted: 10 Apr 2013, 07:29
by Nakid
I'm Agamemnus' code monkey and I've been learning the API over the past day or so. I thought I'd post my code if anyone was interested in doing their own community ladder :)

I put up a topic here:
http://forum.maniaplanet.com/viewtopic. ... 82&t=18441

One question though, is it possible to make a single call and pull multiple players at the same time?