What's new
Fantasy Football - Footballguys Forums

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Myfantasyleague developers program (1 Viewer)

http://sidelineleagues.com/forums/index.php?showtopic=6842

Anyone ever do anything with this?

Figured some web geeks here(like me) would find this interesting, hoped maybe there's some discussion in how we could make league pages better.
Yup, I've used their XML feeds. Very cool idea for hackers, but unfortunately they are missing some key feeds in my eyes such as player scoring, owner information (security/spam issue here so I understand), etc.
 
http://sidelineleagues.com/forums/index.php?showtopic=6842

Anyone ever do anything with this?

Figured some web geeks here(like me) would find this interesting, hoped maybe there's some discussion in how we could make league pages better.
There are alot of people that do stuff with this. Check this out.I was a part of mfladdons.com last season that used this among other skills to make custom sites. I made an app for proxy style bidding using the XML feeds to pull info and integrate it into my site via PHP and MySQL.

A couple of different companies spawned off of mfladdons this offseason, the one that most notably uses the developer program is mflhistory , this is a really sweet add on.

I started tweaking my league a little, but I dont think I will get into much of the coding this year as I dont have as much time.

 
Last edited by a moderator:
I wrote a mini-app last year that parsed all the zealots teams info. was then able to give stats for teams across all 48 leagues.

best records, worst records, top scorers, lowest scorers, etc...

 
There are alot of people that do stuff with this. Check this out.

I was a part of mfladdons.com last season that used this among other skills to make custom sites. I made an app for proxy style bidding using the XML feeds to pull info and integrate it into my site via PHP and MySQL.

A couple of different companies spawned off of mfladdons this offseason, the one that most notably uses the developer program is mflhistory , this is a really sweet add on.

I started tweaking my league a little, but I dont think I will get into much of the coding this year as I dont have as much time.
MFLhistory is a great addition to my LEAGUE this year. You can even adjust your League Records to match the .css of your chosen site's theme. A good extension to have in Firefox is "Web Developer". You can easily edit, save, and upload the .css to your site or mflhistory. I do some editing of the html and .css in Frontpage as well. I don't have the knowledge or time to learn how to properly use XML but I am all for trial and error and "borrowing" from others. :D

 
Last edited by a moderator:
Explain XML apps to me as if I had some PHP knowledge. This is one aspect I have never understood.
They just output it in XML because its not really language dependant at that point, I parsed the XML feeds with PHP and input the data into a MySQL DB.
 
There are alot of people that do stuff with this. Check this out.

I was a part of mfladdons.com last season that used this among other skills to make custom sites. I made an app for proxy style bidding using the XML feeds to pull info and integrate it into my site via PHP and MySQL.

A couple of different companies spawned off of mfladdons this offseason, the one that most notably uses the developer program is mflhistory , this is a really sweet add on.

I started tweaking my league a little, but I dont think I will get into much of the coding this year as I dont have as much time.
MFLhistory is a great addition to my LEAGUE this year. You can even adjust your League Records to match the .css of your chosen site's theme. A good extension to have in Firefox is "Web Developer". You can easily edit, save, and upload the .css to your site or mflhistory. I do some editing of the html and .css in Frontpage as well. I don't have the knowledge or time to learn how to properly use XML but I am all for trial and error and "borrowing" from others. :D
I agree with about MFLhistory real cool addition!!I incorporated it into my team pages here...

http://football12.myfantasyleague.com/2006...793&O=01&F=0001

Each team has there own specific history page that shows you all-time records as well as your record vs each teams thats ever been in your league!!

 
Explain XML apps to me as if I had some PHP knowledge.  This is one aspect I have never understood.
They just output it in XML because its not really language dependant at that point, I parsed the XML feeds with PHP and input the data into a MySQL DB.
please explain more
 
http://sidelineleagues.com/forums/index.php?showtopic=6842

Anyone ever do anything with this?

Figured some web geeks here(like me) would find this interesting, hoped maybe there's some discussion in how we could make league pages better.
There are alot of people that do stuff with this. Check this out.I was a part of mfladdons.com last season that used this among other skills to make custom sites. I made an app for proxy style bidding using the XML feeds to pull info and integrate it into my site via PHP and MySQL.

A couple of different companies spawned off of mfladdons this offseason, the one that most notably uses the developer program is mflhistory , this is a really sweet add on.

I started tweaking my league a little, but I dont think I will get into much of the coding this year as I dont have as much time.
I've got alot of free programs and scripts to work with XML at my house. I should be home late tomorrow night so I'll post some links then top of my heads guesses:Top of my head, Exportizer is a great program. Can find it with google.

newsreaders(RSS feeds, XML, Atom etc) can parse XML 1,2,3 and display it nicely. The "how to" is in those scripts, I just don't know how to manipulate those scripts. What happens if you load your league's xml file in your news reader?

XML Hacks is an awesome book. It's too much I haven't digested it all yet. The author's site does have all the scripts and programs at it, ya just need to find the back door. Can't remember the exact URL but it was easy and free. He's a famous web designer and...this is an awesome link if you've got time to search.

Can you please elaborate on what you did?

There's enough web geeks here that we could probably combine ideas and come up with something sweet. As you see some already replied. Just need some sorta starting point

 
Explain XML apps to me as if I had some PHP knowledge. This is one aspect I have never understood.
They just output it in XML because its not really language dependant at that point, I parsed the XML feeds with PHP and input the data into a MySQL DB.
please explain more
That's the beauty of XML really -- it has nothing to do with languages. In a lot of ways, it's similar to html -- you surround each set of values with a set of customized tags.For example, you could have something like this:

<standings><franchise id="0001"><wins>12</wins><losses>2</losses><ties>0</ties></franchise>...</standings>You can use php, javascript, asp, or any other language to parse an XML file. You do that similarly to how you would parse a text file, line-by-line, but you set up parsing functions that recognize the tags and then you build logic in to handle each type of data element.I'd recommend looking for information related to your programming language of choice, as opposed to XML, since that will actually give you the knowledge you need to parse the data.

 
http://sidelineleagues.com/forums/index.php?showtopic=6842

Anyone ever do anything with this?

Figured some web geeks here(like me) would find this interesting, hoped maybe there's some discussion in how we could make league pages better.
There are alot of people that do stuff with this. Check this out.I was a part of mfladdons.com last season that used this among other skills to make custom sites. I made an app for proxy style bidding using the XML feeds to pull info and integrate it into my site via PHP and MySQL.

A couple of different companies spawned off of mfladdons this offseason, the one that most notably uses the developer program is mflhistory , this is a really sweet add on.

I started tweaking my league a little, but I dont think I will get into much of the coding this year as I dont have as much time.
I've got alot of free programs and scripts to work with XML at my house. I should be home late tomorrow night so I'll post some links then top of my heads guesses:Top of my head, Exportizer is a great program. Can find it with google.

newsreaders(RSS feeds, XML, Atom etc) can parse XML 1,2,3 and display it nicely. The "how to" is in those scripts, I just don't know how to manipulate those scripts. What happens if you load your league's xml file in your news reader?

XML Hacks is an awesome book. It's too much I haven't digested it all yet. The author's site does have all the scripts and programs at it, ya just need to find the back door. Can't remember the exact URL but it was easy and free. He's a famous web designer and...this is an awesome link if you've got time to search.

Can you please elaborate on what you did?

There's enough web geeks here that we could probably combine ideas and come up with something sweet. As you see some already replied. Just need some sorta starting point
I personally had a program that would read various mfl XML feeds (players in DB, player id's in roster, team name etc...) and parse them with php (thanks to help from propost above) and input them into my MySQL db to be displayed on my site, I would then use an Iframe to display them on mfl sites. The site basically looked like your basic FA mfl page, but it allowed you to bid on players and awarded the player to the highest bidder at 1$ over the 2nd highest bidder.I used code similar to this to parse the files and store them in my DB

The following PHP code would display all teams ID listed in the XML feed and all player ID's on thier roster.

As you can see, with other XML feeds, you can associate player ID's with the actualy player and this makes alot of sense.

Code:
<?php$leagueid = '#####'; // Put your league ID here$year = '2005'; // Year that you league is / was hosted$number = '20'; // Size of team rosters$file = "[URL="http://football.myfantasyleague.com/%24year/export?L=%24leagueid&TYPE=rosters"]http://football.myfantasyleague.com/$year/export?L=$leagueid&TYPE=rosters";$usercount[/URL] = 0;$matchupcount = 0;$userdata = array();$state = '';function startElement ($parser,$name,$attrib){global $number;global $matchupcount;global $userdata;global $state;$test =($number+1);switch ($name) {case $name=="FRANCHISE" : {$userdata[$matchupcount]["fid"] = $attrib["ID"];break;}case $name=="PLAYER" : {$userdata[$matchupcount]["id"][] = $attrib["ID"];break;}default : {$state=$name;break;}}}function endElement ($parser,$name){global $matchupcount;global $userdata;global $state;$state='';if($name=="FRANCHISE") {$matchupcount++;}}function characterData ($parser, $data) {global $matchupcount;global $userdata;global $state;if (!$state) {return;}}$simpleparser = xml_parser_create('UTF-8');xml_set_element_handler($simpleparser, "startElement", "endElement");xml_set_character_data_handler($simpleparser, "characterData");if (!($fp = fopen($file, "r"))) {die("could not open XML input");}while (!feof($fp)) {$data = fgets($fp);if (!xml_parse($simpleparser, $data, feof($fp))) {die(xml_error_string(xml_get_error_code($simpleparser)));}}$b=0;for ($i=0;$i<$matchupcount;$i++) {    $fran = $userdata[$i]["fid"];    echo '<b>Team: ' . $fran . "</b><br>\n";    for ($a=0;$a<$number;$a++) {        $player[] = $userdata[$i]["id"][$a];        echo 'Player: ' . $player[$b] . "<br>\n";        $b++;   }}include 'mfl/closedb.php';xml_parser_free($simpleparser);?>
I have 3 or 4 of these codes listed on the sideline forums, just do a search for my name (msweany) and you can see them.
 
A few guys on sourceforge.net tried to make up a free fantasy league management suite , using php and mysql db, the ONLY sticking point and the reason for the demise of the project, was the fact that there is no FREE stat service online..they wanted to keep everything free, as in OpenSource...not even Yahoo offers free stat downloads..

the name of the project was ffl-6.0 or something similar..you could go to sourceforge.net and search for it there..

It was a great looking project, very similar to the myfantasyleague suite of software.

 

Users who are viewing this thread

Back
Top