in

Community Server

The platform that enables you to build rich, interactive communities

Auto-loading game scores

Last post 12-22-2011 10:54 PM by HansMoore. 31 replies.
Page 1 of 3 (32 items) 1 2 3 Next >
Sort Posts: Previous Next
  • 08-11-2011 5:57 PM

    Auto-loading game scores

     The updateScores.asp page was not update for the 2011 season. You can get a corrected version from the download or make the change yourself. Near the top of the file, change the following line:

            var scoresUrlBase        = "http://www.nfl.com/scores/2010/REG"

     to:

            var scoresUrlBase        = "http://www.nfl.com/scores/2011/REG"
     

    Filed under: ,
  • 08-11-2011 7:56 PM In reply to

    • drizzt09
    • Top 10 Contributor
    • Joined on 08-22-2009
    • Ontario Canada
    • Posts 399

    Re: Auto-loading game scores

    Well, not sure if this fully fixes things for the pre- season.

    clicking update scores does nothing... finds nothing.

    my scoreboard at the bottom still shows the playoffs and superbowl scores from last year... LOL

  • 08-11-2011 8:06 PM In reply to

    • drizzt09
    • Top 10 Contributor
    • Joined on 08-22-2009
    • Ontario Canada
    • Posts 399

    Re: Auto-loading game scores

    OK found in "scripts/scoreboard.js"

     // Determine the correct URL to use for retrieving scoreboard data.
     var isPlayoffs = true;

     changed TRUE to FALSE.. fixed the scoreboard. autoupdate is still not working but manually entering scores does of course

  • 08-12-2011 11:38 AM In reply to

    Re: Auto-loading game scores

     Didn't realize you were doing preseason. In that case, it should be

     

    http://www.nfl.com/scores/2011/PRE

  • 08-12-2011 9:00 PM In reply to

    • drizzt09
    • Top 10 Contributor
    • Joined on 08-22-2009
    • Ontario Canada
    • Posts 399

    Re: Auto-loading game scores

    Thanks worked. What I did is:

      // These are used to load the scores page from the NFL.com web site.
      var scoresIframe         =  null;
      // var scoresUrlBase        = "http://www.nfl.com/scores/2011/REG"
      var scoresUrlBase        = "
    http://www.nfl.com/scores/2011/PRE"
      var loadCheckIntervalID  =  null;
      var loadCheckInterval    =  1000; // one second.
      var loadCheckMaxWaitTime = 30000; // 30 seconds.
      var loadStartTime        =     0;

     So when regulare season starts I can just switch the comment // lines and ready to go. This way next year when I look at this code Ill remember.

    Did the same type thing for the databases in "includes/config.asp  [pre season and regular season]

     'Location of the database.
     const DATABASE_FILE_PATH = "./data/NFL.preseason.mdb"
     'const DATABASE_FILE_PATH = "./data/NFL.mdb"

    Here the comment out is '

  • 08-14-2011 7:43 AM In reply to

    • Anton
    • Top 25 Contributor
    • Joined on 07-16-2010
    • Posts 42

    Re: Auto-loading game scores

     how did you fix the scoreboard

  • 08-14-2011 7:54 AM In reply to

    • Anton
    • Top 25 Contributor
    • Joined on 07-16-2010
    • Posts 42

    Re: Auto-loading game scores

     My scoreboard works it is showing the preseason scores.

  • 09-09-2011 5:39 AM In reply to

    Re: Auto-loading game scores

    i've tried to update the score from last night automatically and it's not working. i downloaded the file and checked to make sure it has the correct information and it's still not working. Any help would be appreciated.
  • 09-09-2011 6:05 AM In reply to

    Re: Auto-loading game scores

    Same here. Doesn't update automatically or when I press the "Load" button.
  • 09-09-2011 6:29 AM In reply to

    Re: Auto-loading game scores

    Same here. Changed the file to 2011/REG and it is still having and issue / timing out when trying to update the scores. Any help would be appreciated!
  • 09-09-2011 7:23 AM In reply to

    Re: Auto-loading game scores

  • 09-09-2011 7:28 AM In reply to

    Re: Auto-loading game scores

    I've replaced the file that was mentioned in the thread and i still get a message that there are no updates even though last night's game has finished.

  • 09-09-2011 8:22 AM In reply to

    Re: Auto-loading game scores

    jhronesz:

    I've replaced the file that was mentioned in the thread and i still get a message that there are no updates even though last night's game has finished.

    Confirmed here too. Same problem.

  • 09-09-2011 9:13 AM In reply to

    • Spooky
    • Top 10 Contributor
    • Joined on 08-19-2009
    • Denver CO
    • Posts 64

    Re: Auto-loading game scores

    http://brainjar.com/community/forums/t/587.aspx

    Mike has a fix available inside the current download of 4.0 code. Download the package, grab the updateScores.asp file and upload it to your site. If you have made modifications to that file of your own, well... have fun re-doing those changes on the new file.

     

  • 09-09-2011 9:21 AM In reply to

    Re: Auto-loading game scores

    I have already done that.

Page 1 of 3 (32 items) 1 2 3 Next >
Powered by Community Server (Non-Commercial Edition), by Telligent Systems