Page 1 of 2
First version of my site using the API
Posted: 10 Jul 2012, 18:16
by sylario
Hi here is the very first version of my rails app using maniaplanet app :
http://92.243.25.188/
It is using a one hour cache based on the request to the API. Despite that it is still quite heavy with 4 requests to the API each time you search a player (that has not been viewed in the past hour).
Re: First version of my site using the API
Posted: 10 Jul 2012, 18:32
by spaii
Whouah, cool site
It would be nice to put his nickname in the URL directly. Like this
http://url/login
Nice work

Re: First version of my site using the API
Posted: 10 Jul 2012, 19:44
by sylario
Good idea, currently you can use the nick as a parameter, but this is a good idea too.
I have works to do on the links anyaway, i should keep the current player name when browsing ladders. Also i must highlight the searched player in the ladders. And i am still considering displaying nickname instead of login in the ladders.
Re: First version of my site using the API
Posted: 10 Jul 2012, 20:04
by m4rcel
You may consider to cache the MPWS results at least for 24 hours, because the MPWS servers themselves do not update the data more often

Re: First version of my site using the API
Posted: 11 Jul 2012, 10:29
by gouxim
Indeed, the ladders are updated once a day, so you might consider a 24 hours cache to decrease the rate.
Re: First version of my site using the API
Posted: 11 Jul 2012, 12:01
by sylario
Ok, i changed the value to 24 hours, it will go up with the next version. Is player data (like the nickname) also subject to a 24 hour caching delay?
Re: First version of my site using the API
Posted: 11 Jul 2012, 12:44
by gouxim
Player data is cached for around 1 hour.
Re: First version of my site using the API
Posted: 11 Jul 2012, 15:33
by sylario
Now there is a domain name :
http://www.statsmania.net
I added ubisoft/NADEO mention at the bottom, tell me if itis ok.
Now the ladders display the nickname, and the login is displayed as tool-tip.
Re: First version of my site using the API
Posted: 11 Jul 2012, 16:00
by spaii
It's ok here, nice work
Just one thing : in "Multiplayer Ladder", nickname is shadowed, not in "Solo Ladder"
I think it's better in "Multiplayer Ladder" for visibility

Re: First version of my site using the API
Posted: 12 Jul 2012, 09:07
by sylario
The nicks are shadowed from the $ markup of maniaplanets nickname. I could add it to all the nicknames, but then i would not respect the nickname original formatting.