Custom Rank/Ladder pages

Discuss everything related to Shootmania.

Moderator: English Moderator

Post Reply
Agamemnus
Posts: 41
Joined: 04 Oct 2012, 11:38

Custom Rank/Ladder pages

Post 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 :(
User avatar
dreammyw0w
Posts: 690
Joined: 04 Jan 2013, 17:34
Location: Antwerp

Re: Custom Rank/Ladder pages

Post by dreammyw0w »

yeah i need something like this too!
Some1 point me in the right direction please.
Timmeh7
Posts: 242
Joined: 09 Oct 2010, 23:56

Re: Custom Rank/Ladder pages

Post 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);
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: Custom Rank/Ladder pages

Post 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
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
Agamemnus
Posts: 41
Joined: 04 Oct 2012, 11:38

Re: Custom Rank/Ladder pages

Post 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?
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: Custom Rank/Ladder pages

Post 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.
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
User avatar
Electron
Posts: 797
Joined: 15 Jun 2010, 18:02
Contact:

Re: Custom Rank/Ladder pages

Post by Electron »

Nakid
Posts: 7
Joined: 10 Apr 2013, 06:28
Location: Australia
Contact:

Re: Custom Rank/Ladder pages

Post 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?
Post Reply

Return to “Shootmania”

Who is online

Users browsing this forum: No registered users and 0 guests