The Furious Angels

FA Discussion => Support => Topic started by: Tbone on February 08, 2010, 05:03:27 pm

Title: Steam Group XML
Post by: Tbone on February 08, 2010, 05:03:27 pm
I'm trying to create a block on our site that will show members who are logged into steam, what game they are playing, etc. After doing some research, it was hinted that all of this is really easy to code using XML. I'm not having much luck. I've found the link with the data I need:

http://steamcommunity.com/groups/followtheangel/memberslistxml/?xml=1

I just don't know how to fetch/parse that data into something useful. Copying someone else's code, I was able to do this:

http://followtheangel.org/tbone/test.php

I want a nice list like we had the other week with my friends' list. A lot of the info I'm getting is coming from this thread:

http://forums.steampowered.com/forums/showthread.php?t=968539

Any ideas? Or can someone find somewhere where this has already been done?
Title: Re: Steam Group XML
Post by: Tbone on February 08, 2010, 05:17:59 pm
The only help the steam forums gave me was this link:

http://us2.php.net/xml

lol...
Title: Re: Steam Group XML
Post by: Ash on February 08, 2010, 06:53:34 pm
What caused the original Steam block to stop working in the first place?
Title: Re: Steam Group XML
Post by: Lithium on February 08, 2010, 07:27:01 pm
The first link only gives half the information you need.

You then need the XML data for every user id. (ie, if they are online, what games they are in)

Which you can do via this: http://steamcommunity.com/profiles/76561197969860577/?xml=1

If you can get that via a link you can use some XSL Transformations to print the data how you want. Or you can do the 'transfomation' through php--which is how I'd probably go about it.

I'll write you something for this maybe later tonight if I have time.
Title: Re: Steam Group XML
Post by: Tbone on February 08, 2010, 07:35:05 pm
That information is available on their profiles. I imagine if you can fetch their ID number from the member list, you can input that into something that gives you all of their profile information, not just their name.

The XML link for profiles is http://steamcommunity.com/profiles/76561197993560336?xml=1

Just replace the number with the ID you want. So in theory, you should be able to use the memberlist to generate the the IDs, and then fetch that into the XML link above to fetch the profiles of each member and then generate data from each of those. It just sounds complicated to me, but I'm guessing that's how it is done.

And Yotogi, the last block was hosted on the developer's website. For some reason, he took all of the stuff related to this project down off of his site. It's not in English, so I couldn't find a reason why.

EDIT: I see you found it, nevermind!
Title: Re: Steam Group XML
Post by: Lithium on February 11, 2010, 08:19:26 pm
If you look to the left, you'll see the steam block that I made.

It shouldn't slow things down, much, if at all. I made it do the 25+ web calls it requires so that they run in parallel. Therefore, it loads pretty quick.
Title: Re: Steam Group XML
Post by: Tbone on February 11, 2010, 09:29:58 pm
Very nice Lith!
Title: Steam Group XML
Post by: Broin on February 11, 2010, 09:44:30 pm
Hell the awesome thing is that if someone is in a game you can actually click a join link and your steam and game will load up.
Title: Steam Group XML
Post by: Tbone on February 11, 2010, 10:13:48 pm
Yeah, with this, I really hope we can get all of FA on Steam and stay easily connected, regardless of the games being played.
Title: Steam Group XML
Post by: Eroz on February 12, 2010, 01:28:23 pm
What do you need to invite me to the group?
Title: Steam Group XML
Post by: ArchNemesis on February 12, 2010, 01:53:51 pm
I think you just find the group and request to join. If that's not the case, friend Tbone and he should be able to add you.

I LOVE steam. I link all my games on it so i don't have a diry desktop filled with icons AND i can chat with anyone while ingame. Along with this, I can join anyone that pops into TF2 or any other Steam-based game just by seeing that little notification on the bottom right saying that they are playing. Steam may have been terrible back in the day but it's grown into a wonderful program that helps not only with keeping tabs of your games but also keeping community intertwined with it.
Title: Steam Group XML
Post by: Eroz on February 12, 2010, 03:21:13 pm
I am friends with Tbone, and the group is by invite only. I want my invite damn it.
Title: Steam Group XML
Post by: Tbone on February 12, 2010, 09:40:08 pm
What's your name on Steam, b/c I don't have an Eroz as a friend...
Title: Steam Group XML
Post by: Eroz on February 13, 2010, 12:22:55 am
I've been changing my online moniker as of late, it's Lotier now.
Title: Steam Group XML
Post by: Tbone on February 13, 2010, 12:31:00 am
Gotcha. Yeah, how was I to know when I was like 15 that the username I would choose for AOL would stick with me for the freakin rest of my life...lol.
Title: Steam Group XML
Post by: Eroz on February 13, 2010, 01:25:35 am
I choose Eroz awhile back, I liked it alot, I spent many a Social Studies class finally coming up with Eroz, but now a lot of services are requiring a username of 5 or more characters, so Eroz doesn't work. Oddly enough I came up with Lotier as a split seconds decision when I had to make a character name for DDO. It's stuck, its unique, and work. So Lotier I become (or Loteir when I screw up typing it.)
Title: Steam Group XML
Post by: Eroz on February 23, 2010, 11:32:27 pm
http://store.steampowered.com/uiupdate/

It uses Webkit rather then IE as the backend :-) and it looks nicer too.
Title: Steam Group XML
Post by: Lithium on February 24, 2010, 05:49:30 am
That's nice. They were about due for some UI changes.

Still, it'd be nice if they provided a better API than the 3 or 4 poorly designed XML schema. (some with too much redundant info and others with not enough)
SimplePortal 2.3.8 © 2008-2025, SimplePortal