XMLfire: Xfire profiles in XML form!

News and important info, general banter, and suggestions for 5punk

Moderator: Forum Moderators

Stuk
Monkey
Monkey
Posts: 232
Joined: October 27th, 2004, 19:41
Location: Cambridge
Contact:

XMLfire: Xfire profiles in XML form!

Post 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
Last edited by Stuk on May 3rd, 2005, 19:02, edited 1 time in total.
wyrd
Polar Bear
Polar Bear
Posts: 275
Joined: March 23rd, 2005, 0:21
Location: in the navy...
Contact:

Post by wyrd »

i can help with gd

and a DTD for that XML would be nice
Stuk
Monkey
Monkey
Posts: 232
Joined: October 27th, 2004, 19:41
Location: Cambridge
Contact:

Post 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.
wyrd
Polar Bear
Polar Bear
Posts: 275
Joined: March 23rd, 2005, 0:21
Location: in the navy...
Contact:

Post 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?
Stuk
Monkey
Monkey
Posts: 232
Joined: October 27th, 2004, 19:41
Location: Cambridge
Contact:

Post 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
Woo Elephant Yeah
Heavy
Heavy
Posts: 5433
Joined: October 10th, 2004, 17:36
Location: Bristol, UK
Contact:

Post by Woo Elephant Yeah »

I'd comment, but I can't get it to work with my username though :cry:
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...
Stuk
Monkey
Monkey
Posts: 232
Joined: October 27th, 2004, 19:41
Location: Cambridge
Contact:

Post by Stuk »

Woo Elephant Yeah wrote:I'd comment, but I can't get it to work with my username though :cry:
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
Woo Elephant Yeah
Heavy
Heavy
Posts: 5433
Joined: October 10th, 2004, 17:36
Location: Bristol, UK
Contact:

Post by Woo Elephant Yeah »

Keep us updated, sounds really useful :D

*nudge*

do you have a working example of a XML profile page?
Sledra
Polar Bear
Polar Bear
Posts: 285
Joined: October 31st, 2004, 21:44

Post by Sledra »

gah, all that text and indenting makes my eyes hurt, its like the /talk board on steroids
Woo Elephant Yeah
Heavy
Heavy
Posts: 5433
Joined: October 10th, 2004, 17:36
Location: Bristol, UK
Contact:

Post 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.
Stuk
Monkey
Monkey
Posts: 232
Joined: October 27th, 2004, 19:41
Location: Cambridge
Contact:

Post 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 :roll: . 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
Woo Elephant Yeah
Heavy
Heavy
Posts: 5433
Joined: October 10th, 2004, 17:36
Location: Bristol, UK
Contact:

Post 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?
Stuk
Monkey
Monkey
Posts: 232
Joined: October 27th, 2004, 19:41
Location: Cambridge
Contact:

Post 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
wyrd
Polar Bear
Polar Bear
Posts: 275
Joined: March 23rd, 2005, 0:21
Location: in the navy...
Contact:

Post 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)
Stuk
Monkey
Monkey
Posts: 232
Joined: October 27th, 2004, 19:41
Location: Cambridge
Contact:

Post 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
Woo Elephant Yeah
Heavy
Heavy
Posts: 5433
Joined: October 10th, 2004, 17:36
Location: Bristol, UK
Contact:

Post 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 :wink:

Keep up the good work :wink:
wyrd
Polar Bear
Polar Bear
Posts: 275
Joined: March 23rd, 2005, 0:21
Location: in the navy...
Contact:

Post 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
Stoat
Site Admin
Site Admin
Posts: 3291
Joined: October 8th, 2004, 15:48
Location: Sheffield, UK
Contact:

Post by Stoat »

Oooh, intriguing! Good work!
Stuk
Monkey
Monkey
Posts: 232
Joined: October 27th, 2004, 19:41
Location: Cambridge
Contact:

Post by Stuk »

Ooo. very pretty, shame I can't understand it :P

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
wyrd
Polar Bear
Polar Bear
Posts: 275
Joined: March 23rd, 2005, 0:21
Location: in the navy...
Contact:

Post by wyrd »

Post Reply