falafel
Member
+5|6547
i looks cool
it would be even better if I could get the stats as XML though (easy access from both javascript and PHP with XML DOM)
liquidat0r
wtf.
+2,223|6844|UK

=Robin-Hood= wrote:

Perhaps Jeff will give them some lessons in programming...
lmao
Emil
Teh strogg!
+205|6697|Trondheim, Norway
Zomg that sounds awesome, gonna read the wiki-link now
']['error
Banned
+630|6861|The Netherlands
Nice work!
Hurricane
Banned
+1,153|6848|Washington, DC

I have no idea how to use that stuff as I am a website and in general coding noob, but good job!

edit: Chuy did you get my PM?

Last edited by Hurricane (2007-02-19 06:53:48)

Brasso
member
+1,549|6848

Hurricane wrote:

I have no idea how to use that stuff as I am a website and in general coding noob, but good job!
I was waiting for that.  Me too. :ashamed:
"people in ny have a general idea of how to drive. one of the pedals goes forward the other one prevents you from dying"
Havok
Nymphomaniac Treatment Specialist
+302|6892|Florida, United States

chuyskywalker wrote:

Havok wrote:

Hmm... I'm impressed with the new features, but I was hoping the new features would be more flashy...   Good work nonetheless.
Like I had said when I hinted at it's release: this is a feature for developers. Some very cool things may come of it from motivated people, but not instantly. Sorry!
No no, no apologies are necessary.  I'm just not a developer at all, so I guess most of the features of this update go right over my head.

kilgoretrout wrote:

Havok wrote:

Hmm... I'm impressed with the new features, but I was hoping the new features would be more flashy...   Good work nonetheless.
More flashy?  This shit is awesome.  It's really, really flashy from a coder's standpoint.  This is going to open up a ton of possibilities for clan pages and such.  Thanks a lot, Chuy.  It's extremely cool of you to develop this API and let people piggy back off of your hard work.
Like I said to Chuy, I'm not a developer or clan leader/member, so most of the features aren't useful to me.  By flashy, I mean something like bringing the sigs back (with a guide for dummies like me).
2tuff
Positive Karma Here!
+357|6993
C H U Y F T W ! ! !
Jenspm
penis
+1,716|6950|St. Andrews / Oslo

holy fuck, this is awesome....

Ima gonna make something leet when I get home from this crappy cabin....
https://static.bf2s.com/files/user/26774/flickricon.png https://twitter.com/phoenix/favicon.ico
SEREMAKER
BABYMAKIN EXPERT √
+2,187|6786|Mountains of NC

Awesome ------- now if only EA would release the hold on 2142 stats, I know you could do something incredible with that
https://static.bf2s.com/files/user/17445/carhartt.jpg
duk0r
Administrator
+306|6885|Austin, TX

This will open the door for more stats tracking on clan websites, personal sites, sigs, etc... Now that anyone can pull their raw bf2 stats from bf2s this means people are going to start writing php applications that will allow you to add your stats to your site with ease. Hell, I am even considering writing a few applications myself.

And as far as XML is concerned; this data feed is already in a json format. (PHP's foreach() and while()) FTW! Remember, this is an API (Application Programming Interface).
Maybe there will be more XML feeds in the future, but if you are really desperate im sure you could code one up in about a day.
https://bf3s.com/sigs/a3a6d1102d14bf2f7e266fba7f728dc2cc38b316.png
chuyskywalker
Admin
+2,439|7065|"Frisco"

falafel wrote:

i looks cool
it would be even better if I could get the stats as XML though (easy access from both javascript and PHP with XML DOM)
Actually, parsing XML from Javascript is a pain in the butt. You have to use the built in and ackward DOM traversal methods. With JSON, it's just done. That's it. It's data. The JS interpreter, literally, looks like this:

Code:

var json_object = eval("("+json_code+")");
alert(json_object.pid + " -- " + json_object.nick);
As for PHP, it's just as easy:

Code:

$json_object = json_decode($json_code);
echo $json_object->pid . " -- " . $json_object->nick;
requires php5 -- but you should be on that anyway

I think JSON is actually a better format than XML for data sets like this.
Slickdawg8
Visit TAW.NET
+58|6995|Long Island
sounds cool.  i'm going to head over there right now and check it out!
ThaReaper
Banned
+410|6857
I don't get it
Uncle Mombassa
Member
+13|6544|Mombassa
Well i don't undersand a damn thing how to do this, but whatever i let it over to our new webdesigner

Chuy, say hey!

Uncle Mombassa

https://www.hungryyears.com/images/doughnut.jpg
Slickdawg8
Visit TAW.NET
+58|6995|Long Island
yea i looked at it but dont get it.  too complicated for me.  i'll just stick to my regular bf2s.com stats.
Viper007Bond
Moderator Emeritus
+236|7023|Portland, OR, USA

Aweeeeeeeeeeeeeeesome.
https://bf3s.com/sigs/044900892044e7fc95e599e832a086ae9bcd7efb.png
duk0r
Administrator
+306|6885|Austin, TX

chuyskywalker wrote:

I think JSON is actually a better format than XML for data sets like this.
QFE!
https://bf3s.com/sigs/a3a6d1102d14bf2f7e266fba7f728dc2cc38b316.png
Scorpion0x17
can detect anyone's visible post count...
+691|6983|Cambridge (UK)

=Robin-Hood= wrote:

Ty wrote:

Fucking Hell dude, when are EA going to pay you for all this?
Well that will probably be the day that we are obliged to pay for a number of patches that will fuck up BF2s!

Nah lets just hint at the pay pal button

hint hint

top right corner

Hint hint

R
Agree with Ty.

But also, mustn't mention those google ads and how clicking on them generates income for chuy...

Oh, sorry, did I just mention google ads and how clicking on them generates income for chuy?

So sorry, won't do it again...
panderiz
Member
+32|6984
nice, recommended this to my clan
Towelly
It's A State Of Mind
+399|6808|Your attic
Does no-one else find it funny that the support e-mail address can be read as "a pikey @ bf2s.com"?

No? Just me then, either way, good stuff.
Scorpion0x17
can detect anyone's visible post count...
+691|6983|Cambridge (UK)

Towelly wrote:

Does no-one else find it funny that the support e-mail address can be read as "a pikey @ bf2s.com"?

No? Just me then, either way, good stuff.
Does Chuy have an unwanted van at the end of his garden?
Nikola Bathory
Karkand T-90 0wnage
+163|7004|Bulgaria

Scorpion0x17 wrote:

=Robin-Hood= wrote:

Ty wrote:

Fucking Hell dude, when are EA going to pay you for all this?
Well that will probably be the day that we are obliged to pay for a number of patches that will fuck up BF2s!

Nah lets just hint at the pay pal button

hint hint

top right corner

Hint hint

R
Agree with Ty.

But also, mustn't mention those google ads and how clicking on them generates income for chuy...

Oh, sorry, did I just mention google ads and how clicking on them generates income for chuy?

So sorry, won't do it again...
what ads??? There are no ads here! And I'm very happy about it!
jsnipy
...
+3,276|6740|...

chuyskywalker wrote:

falafel wrote:

i looks cool
it would be even better if I could get the stats as XML though (easy access from both javascript and PHP with XML DOM)
Actually, parsing XML from Javascript is a pain in the butt. You have to use the built in and ackward DOM traversal methods. With JSON, it's just done.
I think JSON is actually a better format than XML for data sets like this.
I guess in this case, 99.9% of people using it are going to put it on their prepackaged PHP sites; and its leaner with bandwidth. I'm with you falafel in having something a bit more context agnostic. Either way its a pretty easy parse.

Last edited by jsnipy (2007-02-20 03:30:35)

=Robin-Hood=
A stranger in the dark
+213|7038|Belgium

jsnipy wrote:

I guess in this case, 99.9% of people using it are going to put it on their prepackaged PHP sites; and its leaner with bandwidth. I'm with you falafel in having something a bit more context agnostic. Either way its a pretty easy parse.
Nobody is stopping anybody in generating some prefixed scripts that handle the basics. If they are posted, they might end up in the wiki, as example. (For the interested and knowledgeable few: hint hint!)

R

Board footer

Privacy Policy - © 2024 Jeff Minard