I have made modification to the games.php file to make 2006 work. The problem is short were some minor changes in the schedule format that broke some of the array creation in games.php.
Do the following to fix games.php:
Start with the if statment to determine step 1 or 2, under the "else" where $schedulearray is set to file:http:/www.nfl.com/schedules.
I tried using your code and it downloaded the game data as you said it would. Thanks for your contribution.
Maybe this is just my configuration, but I noticed that all the game times were set to 12:00 AM (they displayed as 11:00 PM on my OFFL website). It appears the game times are not getting imported correctly. Have you seen this issue?
Brad
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've added all the changes in this post to the games.php file in the main branch for this project, but I can't release a patch file with the next version of OFFL until I get permission from Stephen. Has anyone heard from him?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The new schedule is on NFL.com but I can't import it. I changed the season_start to the start of 2006, what else is there?
Dave,
I have made modification to the games.php file to make 2006 work. The problem is short were some minor changes in the schedule format that broke some of the array creation in games.php.
Do the following to fix games.php:
Start with the if statment to determine step 1 or 2, under the "else" where $schedulearray is set to file:http:/www.nfl.com/schedules.
CHANGE 1:
$days = explode ("<td align=left><b>", $week);
to
$days = explode ("<font class=bg1font><b>", $week);
CHANGE 2:
$game_date_array = explode("</b></td>", $day);
to
$game_date_array = explode("</b></font>", $day);
CHANGE 3:
@list($vTeam, $rest) = explode(" at ", $thisgamedata[1], 2) ;
to
@list($vteam, $rest) = explode(" at ", $thisgamedata[0], 2) ;
This will fix your problem, let me know if you still have issues.
Billy
Billy,
I tried using your code and it downloaded the game data as you said it would. Thanks for your contribution.
Maybe this is just my configuration, but I noticed that all the game times were set to 12:00 AM (they displayed as 11:00 PM on my OFFL website). It appears the game times are not getting imported correctly. Have you seen this issue?
Brad
Thanks to Joe Snyder for this fix...
To get the game times to import correctly, you also need to edit the line in games.php from:
@list ($time, $rest) = explode("<", $thisgamedata[0], 2);
to
@list ($time, $rest) = explode("<", $thisgamedata[1], 2);
I've added all the changes in this post to the games.php file in the main branch for this project, but I can't release a patch file with the next version of OFFL until I get permission from Stephen. Has anyone heard from him?
Where is this Variable located season_start? I went to my admin and I have Misc_Season_Start_2004 and Misc_Season_Start_2005
When I made the changes to the games.php I get could'nt look up teams continously.
Thank you for you help.
John
I made a database patch file here (right click on "Download", put it in your upgrades folder, and run the script):
<http://offl.cvs.sourceforge.net/offl/offl/www/upgrade/upgrade-2006season.php?view=log>
Let me know if this works. I haven't run the script myself, as I made the changes manually, but this should do the trick.
Brad