Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Pimp My Site! > Adding server details and such to webpage
Grace Diamond (Guild Admin) 7/8/2008 12:28 AM EST : Adding server details and such to webpage
Grace Diamond
Posts: 197
Posts With Wolves

Hello again!

I've got another puzzle for you all and this might be a touch more technical (in fact I know it is!)

So, I'm making up these forums for pirates of the burning sea and what I wanted was a server status box for the forums and also what the developers class as Server contention and port battle status.

To give you an idea on how these look independantly, this is the server status page, created by someone and this is the main server page by the same person.

Now the only details I would need would be that of Roberts, for our society plus I wouldn't need the whole of the second page either, more something that looks roughly like this (thrown together on photoshop)




Now, from what I've read from speaking with people on the game forums, to do this requires knowledge of html and xml for making php stuffs... that's where they lost me

From reading this devlog here, I can see that there's a few things I need to get, which are from the pdf that give a walkthrough on where the information is and how to get it.

Now I already have my apikey and userid, yet that's as far as I got

I've been given some information, like some PHP examples 1 and 2. The latter might not work apparently.
Then the urls you'd need (from the API PDF)
For the server status you'd want: http://data.burningsea.com/servers/Roberts
The scoreboard: http://data.burningsea.com/servers/Roberts/scoreboard
And the scheduled port battles: http://data.burningsea.com/servers/Roberts/landmarks

The first two are quite simple or so I was told, print out the raw XML first and take it from there (I was also given a link to SimpleXML). For the scheduled port battles you'll have to iterate over all Ports in the PortList that have the portState LM_CONTENTION and then use 'battleStartDate' (note; at this time all timestamps are at pacific time, without any timezone code added, this might change though) to see when it starts. I'd need those to have the option to be changable from that to GMT & BST too so I can cover the times through the year.

I guess my final question is, would this (any of it) be possible on Guildportal?

I'm not sure what the deal is on php things on the forums, yet I can see that a lot of code can be added onto these so perhaps it can be done...

I was also told I'd need to cache the data somewhere for each bit as these things get updated at certain times and that's what the stuff would run off (i've read through the pdf file and they have fixed updating times which the devs don't want us overriding, so stick to them please.)

I'd appreciate any help that you could give me.

Yours,

Grace

TopBottom

Mottie (MVP) 7/8/2008 7:57 AM EST : RE: Adding server details and such to webpage
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Wow that's quite a bit of work! I wish I knew Php better!

I'd be up for the challenge, but sadly I don't have the time at the moment for something this big =(

Maybe there are some other members that have a solution or up for a project?
TopBottom

Grace Diamond (Guild Admin) 7/8/2008 11:51 AM EST : RE: Adding server details and such to webpage
Grace Diamond
Posts: 197
Posts With Wolves

Mottie said:
Wow that's quite a bit of work! I wish I knew Php better!

I'd be up for the challenge, but sadly I don't have the time at the moment for something this big =(

Maybe there are some other members that have a solution or up for a project?


I know, I do pick the fun stuff don't I?

The whole thing about showing server status isn't anything new really, as players have them available for lots of games.

The other stuff I've posted on there however are a whole lot more complicated... and well beyond my skills

TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%