Page 1 of 2
XMLfire: Xfire profiles in XML form!
Posted: April 30th, 2005, 17:42
by Stuk
Well I had the idea, saw some people wanted it on the Xfire forums, but nothing had been done, so I decided to use my php skillz to create....
XMLfire!
This script scrapes all the usefull info from the Xfire profile page (
http://www.xfire.com/xf/modules.php?nam ... e=USERNAME) and puts it into XML (
http://http://www.thejunkyard.co.uk/XML ... r=USERNAME). If you can't see anything, then try viewing the source.
Hopefully I'll be releasing this on the Xfire forums soon (if I don't find that its already been done, and you guys think its good enough) but I havn't done anything useful with the data it grabs. I don't know how to use gd lib at the moment, so I was wondering if any of you guys who have some spare time and some php knowledge (although it doesn't have to be php) would like to create some custom mini profiles etc.
Anyone who doesn't have teh skillz, tell me what you think of it, and any ideas you have.
Hope everyone likes it
Stuk
Posted: April 30th, 2005, 23:12
by wyrd
i can help with gd
and a DTD for that XML would be nice
Posted: May 1st, 2005, 12:03
by Stuk
The XML now has a
DTD. I was learning as I created it, but I think everything is as it should be.
I don't want to make anyone the php/gd bitch

, but it would be great wyrd if you could create a little demo mini profile (maybe avatar 80x80 size?). I'm going to have a stab at it but I won't be able to create anything decent at the moment.
Posted: May 1st, 2005, 12:49
by wyrd
if i give the gd a whirl can you help me with getting the values from the XML?
PS did you send a text/xml header?
Posted: May 1st, 2005, 20:28
by Stuk
XML now sent as text/xml
Hmm, its easy spitting out XML, just write it to the document like text, but it looks like accessing it is going to be the real bastard
What I'm planning on doing is writing some php that will take the xml and place it into a (quite complicated) array for you.
Anyone else have any thoughts?
Stuk
Posted: May 2nd, 2005, 17:32
by Woo Elephant Yeah
I'd comment, but I can't get it to work with my username though
http://www.thejunkyard.co.uk/xmlfire/in ... ephantyeah
Do you already have an example page for yourself that's hosted somewhere?
If it's any good, I'd love to integrate it into our custom xfire buttons etc...
Posted: May 2nd, 2005, 20:27
by Stuk
Woo Elephant Yeah wrote:I'd comment, but I can't get it to work with my username though
http://www.thejunkyard.co.uk/xmlfire/in ... ephantyeah
Do you already have an example page for yourself that's hosted somewhere?
If it's any good, I'd love to integrate it into our custom xfire buttons etc...
Hmm, after a bit of investigation, it turns out that xml doesn't like the & symbol. I'm just about to update it. so when you next try, it should work fine *hopes*
As for incorperating it with the board, that would be great (maybe top ten played games or gamers?) but a would need a nice amount of coding =)
wyrd, I'm still working on the XML to array thing.
Stuk
Posted: May 2nd, 2005, 22:06
by Woo Elephant Yeah
Keep us updated, sounds really useful :D
*nudge*
do you have a working example of a XML profile page?
Posted: May 3rd, 2005, 7:30
by Sledra
gah, all that text and indenting makes my eyes hurt, its like the /talk board on steroids
Posted: May 3rd, 2005, 9:02
by Woo Elephant Yeah
Unfortunately I have the skills of a spasticated fish with no fins when it comes to coding php.
Stoat is the clever fucker behind all the goodness on this board, so you might want to nudge him.
Posted: May 3rd, 2005, 19:01
by Stuk
*oh Stooooooat....*
wyrd (and anyone else)
here is a class that will grab the XML data and put it into an array (as explained in the file)
Wooelephantyeah, the answer is no

. But I was actually wondering what you meant, do you mean a custom profile page using the XML data like the normal Xfire ones? If so, now I've coded up that class, I could do it pretty quickly.
Stuk
Posted: May 3rd, 2005, 21:09
by Woo Elephant Yeah
yep, that's what I thought this was for?
*confuzzled*
What, (in numpty terms) does this clever thing of yours actually do?
Posted: May 4th, 2005, 20:58
by Stuk
Woo Elephant Yeah wrote:yep, that's what I thought this was for?
*confuzzled*
What, (in numpty terms) does this clever thing of yours actually do?
Ok, I'll try to do this as simply as possible :D : I'm grabbing the data from the Xfire profile pages and putting it into a form that many different programming languages can read. This means that people can do what ever they want with the data. For example, Amazon do a similar thing for their pages, and so people have made things like "Name that tune" and the "Amazon picture collage thing". What people want to do with the data is up to them, but some obvious examples are custom mini profiles and intergration with forum profiles. Hope that helps.
I'm going to create a custom profile page (HTML) soon, just to try it out
Stuk
Posted: May 6th, 2005, 14:18
by wyrd
UPDATE: i've started on the GD
it's very basic atm, and i'm having problems with true type fonts (the ones built into GD suck balls)
check it
(very early days)
Posted: May 6th, 2005, 15:17
by Stuk
WOO!!!
I can't believe I'm so excited by some Courier New (?) on a blue background! Keep up the good work. Now I'm off to see Queen :D
Posted: May 6th, 2005, 20:49
by Woo Elephant Yeah
Wow, looking good so far.
Keep us updated, and if anyone can think of a really good use for this, and integrating it into 5punk, suggestions would be welcome.
I think an xfire.php page on the forum could be really useful, especially if there was some way of sorting people out by what games they play by having a complete list of all current 5punkers on one page.
Thinking aloud here, so I might be talking bollocks, but I'll wait and see what you guys come up with, and then try to figure out a useful way of using it here at 5punk
Keep up the good work

Posted: May 14th, 2005, 18:56
by wyrd
http://mooses.34sp.com/xmlfire/xmlfirep ... n=Tezzrexx
another update tried a piechart, really flakey and no key as yet, but it's a work in progress
Posted: May 14th, 2005, 20:00
by Stoat
Oooh, intriguing! Good work!
Posted: May 14th, 2005, 20:06
by Stuk
Ooo. very pretty, shame I can't understand it
I can't seem to get images working on my web host (although I can on localhost) so could I ask you to host the files in
this zip, so that it can be shared with the world? *please*
Stuk
Posted: May 14th, 2005, 21:09
by wyrd