![]() ![]() |
Sep 26 2007, 11:28 AM
Post
#1
|
|
![]() Veteran ![]() ![]() ![]() Group: Members Posts: 1948 Joined: 29-August 05 From: Leamington ON, Canada Member No.: 3058 2009 MFL: 31589 , 24836 |
Here is a code that will display the matchups for the upcoming games as well as list out the starters for each team.
Once a player's game is over he will be removed from the starters list. I have added a var that you can set to display the module only on specific days if you don't want it displayed all the time. Let me know of any issues or suggestions. CODE <script language="JavaScript" type="text/javascript">
<!-- // FYI: Last updated August 29, 2008 //Display Game Report Manually var gameReportClickToStart = false; //If you wish to use icons from previous iframe apps var useOldGameIconMethod = false; //Icon URL including base name and extension var gameReportIconURL = ''; var gameReportIconExt = 'gif'; //Use league icons as default images var gameReportDefaultIcon = false; //Use league logos as default images var gameReportDefaultLogo = false; //Number of Decimals to display var gameReportDecimals = 0; // Main Title for report var gameReportTitle = "Game Report Summary"; // Title for games that are completed var gameReportTitle1 = "Matchup Analysis"; // Title for games where team has won but still has players playing var gameReportTitle2 = "Final Scores"; // Title for games where team has won but still has players playing var gameReportTitle3 = "In Progress"; //Days to display report; 0 is Sunday, 1 is Monday etc. var gameReportDayDisplay = "0123456"; //Franchise Name or Nickname display var hideGameReportTeamName = false; var useGameReportNickNames = false; //Set up your Nick names here if you choose to use them var franchiseNickNames = new Object(); franchiseNickNames['0001'] = 'NICK 1'; franchiseNickNames['0002'] = 'NICK 2'; franchiseNickNames['0003'] = 'NICK 3'; franchiseNickNames['0004'] = 'NICK 4 '; // . // . // etc. //--> </script> <style type='text/css'> #gameReportMatchups, #gameReportFinals, #gameReportsInProgress { width: 100%; } #home #gameReportMatchups caption , #home #gameReportFinals caption, #home #gameReportsInProgress caption { width: 100%; } .gameReportTeam { text-align: center; } .gameReportScore { text-align: center; } .gameReportAtSymbol { text-align: center; } .gameReportYTP { /* Yet to play */ text-align: left; vertical-align: top; } .gameReportIcon { height:; /* Use #px for fixed width i.e. 100px */ width:; } </style> <script language="JavaScript" type="text/javascript" src="http://www.habman.com/mfl/apps/js/habman_common.js"></script> <script language="JavaScript" type="text/javascript" src="http://www.habman.com/mfl/apps/js/gamereport.js"></script> -------------------- My MFL scripts . . . . . . . . http://www.habman.com/mfl/
|
|
|
|
Sep 26 2007, 11:33 AM
Post
#2
|
|
|
Veteran ![]() ![]() ![]() Group: Members Posts: 823 Joined: 19-August 04 From: Seattle, WA Member No.: 1127 |
Very cool, clean layout to display the info we used to have to jump off our homepages to find.
-------------------- Used to be useful.
|
|
|
|
Sep 26 2007, 11:39 AM
Post
#3
|
|
|
Veteran ![]() ![]() ![]() Group: Members Posts: 823 Joined: 19-August 04 From: Seattle, WA Member No.: 1127 |
Any chance you could add the franchise id to an ID for each team name? I see that you are passing it in as a title, hoping you could pass it in as an ID as well....seems like a good report to get some team banners on.
Nevermind, for some reason I didnt see your normal icon loop...going back to bed. -------------------- Used to be useful.
|
|
|
|
Sep 26 2007, 12:44 PM
Post
#4
|
|
|
Veteran ![]() ![]() ![]() Group: Members Posts: 4718 Joined: 22-February 04 Member No.: 31 2009 MFL: 33218 |
Holy cow there Habman. Pretty soon my MFL page might as well just be hosted on your site.
-------------------- Scott
All Rosters code: http://sidelineleagues.com/forums/index.php?showtopic=18864 Custom CSS upload: http://sidelineleagues.com/forums/index.php?showtopic=15112 Do *NOT* look at the boxscores on nfl.com They are known to be unreliable and rarely updated. You should be looking at the GameBook for the game for the most "official" stats that are available to the public. Also as noted live scoring on MFL is not official and often defensive stats are delayed. Once the final stats are out early Tuesday after the Monday night game then see what happens. |
|
|
|
Sep 26 2007, 02:22 PM
Post
#5
|
|
|
Veteran ![]() ![]() ![]() Group: Members Posts: 50 Joined: 28-May 07 Member No.: 5183 |
Hab, What did I do wrong . I put the module in my gameday tab and it show up when I save it but when I look for it in my gameday tab. It isn't there. Help I must have done something stupid.
|
|
|
|
Sep 26 2007, 03:04 PM
Post
#6
|
|
|
Veteran ![]() ![]() ![]() Group: Members Posts: 823 Joined: 19-August 04 From: Seattle, WA Member No.: 1127 |
Hab, What did I do wrong . I put the module in my gameday tab and it show up when I save it but when I look for it in my gameday tab. It isn't there. Help I must have done something stupid. Its there and looks great...not sure whats happening on yours...try refresth (CTRL+F5) -------------------- Used to be useful.
|
|
|
|
Sep 26 2007, 03:23 PM
Post
#7
|
|
![]() Veteran ![]() ![]() ![]() Group: Members Posts: 1948 Joined: 29-August 05 From: Leamington ON, Canada Member No.: 3058 2009 MFL: 31589 , 24836 |
Hab, What did I do wrong . I put the module in my gameday tab and it show up when I save it but when I look for it in my gameday tab. It isn't there. Help I must have done something stupid. For whatever reason it's showing up in your MVP/Free Agents tab for me. You must have an error somewhere else if you expected it to show up in your Game Day tab. -------------------- My MFL scripts . . . . . . . . http://www.habman.com/mfl/
|
|
|
|
Oct 4 2007, 06:15 AM
Post
#8
|
|
|
Veteran ![]() ![]() ![]() Group: Members Posts: 4718 Joined: 22-February 04 Member No.: 31 2009 MFL: 33218 |
Habman,
Here is something I noticed. I have this on my "Starting Lineups" tab. The starters weren't displaying correctly (wrong players on wrong teams). So I went to the regular Starting Lineups report to see what was going on. Then I went back to the Game summary report and everything was updated. Also saw similar things with the Fantasy schedule report and the vegas lines. They all changed after I accessed the MFL Starting lineup reports. So I'm thinking that perhaps the XML doesn't update until the MFL report is accessed? And thus these modules aren't "up to date" until the XML updates. May not be anything you can do about it but just an FYI of what I'm seeing. -------------------- Scott
All Rosters code: http://sidelineleagues.com/forums/index.php?showtopic=18864 Custom CSS upload: http://sidelineleagues.com/forums/index.php?showtopic=15112 Do *NOT* look at the boxscores on nfl.com They are known to be unreliable and rarely updated. You should be looking at the GameBook for the game for the most "official" stats that are available to the public. Also as noted live scoring on MFL is not official and often defensive stats are delayed. Once the final stats are out early Tuesday after the Monday night game then see what happens. |
|
|
|
Oct 4 2007, 07:12 AM
Post
#9
|
|
![]() Veteran ![]() ![]() ![]() Group: Members Posts: 1948 Joined: 29-August 05 From: Leamington ON, Canada Member No.: 3058 2009 MFL: 31589 , 24836 |
Habman, Here is something I noticed. I have this on my "Starting Lineups" tab. The starters weren't displaying correctly (wrong players on wrong teams). So I went to the regular Starting Lineups report to see what was going on. Then I went back to the Game summary report and everything was updated. Also saw similar things with the Fantasy schedule report and the vegas lines. They all changed after I accessed the MFL Starting lineup reports. So I'm thinking that perhaps the XML doesn't update until the MFL report is accessed? And thus these modules aren't "up to date" until the XML updates. May not be anything you can do about it but just an FYI of what I'm seeing. I have added a hidden iframe to my code that will load the starting lineups report. Do a ctrl-f5 then let me know over the next couple of days if this issue has been resolved. I think that I may have found the issue as to why you are seeing this error while I haven't. I tweaked the script a bit. Do a CTRL-F5 and let me know in the next couple of days if the issue has corrected itself. -------------------- My MFL scripts . . . . . . . . http://www.habman.com/mfl/
|
|
|
|
Oct 4 2007, 08:03 AM
Post
#10
|
|
|
Veteran ![]() ![]() ![]() Group: Members Posts: 4718 Joined: 22-February 04 Member No.: 31 2009 MFL: 33218 |
So this is what I'm seeing now (cache has been cleared and CTRL-F5 pressed just to make sure several times).
So when I first visit my site in Firefox the Fantasy Schedule has the correct odds (verified by the MFL schedule found on the Starting Lineups tab). On that tab the Game summary does not appear at all. If I then view the MFL lineups report and go back to the home page the fantasy schedule odds are incorrect but the Game Summary now appears. For the Fantasy schedule, if you switch to a different week and then back it now displays the odds correctly (or a CTR-F5 will do it as well). I'm not seeing this issue in IE6 on the same computer which makes me think it's not the corporate firewall messing things up. -------------------- Scott
All Rosters code: http://sidelineleagues.com/forums/index.php?showtopic=18864 Custom CSS upload: http://sidelineleagues.com/forums/index.php?showtopic=15112 Do *NOT* look at the boxscores on nfl.com They are known to be unreliable and rarely updated. You should be looking at the GameBook for the game for the most "official" stats that are available to the public. Also as noted live scoring on MFL is not official and often defensive stats are delayed. Once the final stats are out early Tuesday after the Monday night game then see what happens. |
|
|
|
Oct 4 2007, 08:13 AM
Post
#11
|
|
![]() Veteran ![]() ![]() ![]() Group: Members Posts: 1948 Joined: 29-August 05 From: Leamington ON, Canada Member No.: 3058 2009 MFL: 31589 , 24836 |
So this is what I'm seeing now (cache has been cleared and CTRL-F5 pressed just to make sure several times). So when I first visit my site in Firefox the Fantasy Schedule has the correct odds (verified by the MFL schedule found on the Starting Lineups tab). On that tab the Game summary does not appear at all. If I then view the MFL lineups report and go back to the home page the fantasy schedule odds are incorrect but the Game Summary now appears. For the Fantasy schedule, if you switch to a different week and then back it now displays the odds correctly (or a CTR-F5 will do it as well). I'm not seeing this issue in IE6 on the same computer which makes me think it's not the corporate firewall messing things up. I have been able to reproduce the error in Firefox with regards to the game summary not appearing. I am pretty sure that it has to do with your cache being cleared and then it takes at least one visit to the site to reload all of my javascript files. My javascript files aren't in the <head> section of the site (which is where they should be) so they may not all be loaded when the scripts are called. After one visit everything should be good to go. Try this. Exit firefox and then open it up again and go to your site. DO NOT do a CTRL-F5. Let me know if the game summary module appears the first time you enter your site. BTW I haven't been able to reprodue the odds error that you are seeing in the fantasy schedule but let's first get this resolved. -------------------- My MFL scripts . . . . . . . . http://www.habman.com/mfl/
|
|
|
|
Oct 4 2007, 08:50 AM
Post
#12
|
|
|
Veteran ![]() ![]() ![]() Group: Members Posts: 4718 Joined: 22-February 04 Member No.: 31 2009 MFL: 33218 |
I have been able to reproduce the error in Firefox with regards to the game summary not appearing. I am pretty sure that it has to do with your cache being cleared and then it takes at least one visit to the site to reload all of my javascript files. My javascript files aren't in the <head> section of the site (which is where they should be) so they may not all be loaded when the scripts are called. After one visit everything should be good to go. Try this. Exit firefox and then open it up again and go to your site. DO NOT do a CTRL-F5. Let me know if the game summary module appears the first time you enter your site. Ok, just did this. No, the Game Summary does not appear when I first enter the site. I have not hit CTRL-F5. If you want I can check to see if I can reproduce at home just in case it is the company firewall. -------------------- Scott
All Rosters code: http://sidelineleagues.com/forums/index.php?showtopic=18864 Custom CSS upload: http://sidelineleagues.com/forums/index.php?showtopic=15112 Do *NOT* look at the boxscores on nfl.com They are known to be unreliable and rarely updated. You should be looking at the GameBook for the game for the most "official" stats that are available to the public. Also as noted live scoring on MFL is not official and often defensive stats are delayed. Once the final stats are out early Tuesday after the Monday night game then see what happens. |
|
|
|
Oct 4 2007, 10:08 AM
Post
#13
|
|
![]() Veteran ![]() ![]() ![]() Group: Members Posts: 1948 Joined: 29-August 05 From: Leamington ON, Canada Member No.: 3058 2009 MFL: 31589 , 24836 |
I have been able to reproduce the error in Firefox with regards to the game summary not appearing. I am pretty sure that it has to do with your cache being cleared and then it takes at least one visit to the site to reload all of my javascript files. My javascript files aren't in the <head> section of the site (which is where they should be) so they may not all be loaded when the scripts are called. After one visit everything should be good to go. Try this. Exit firefox and then open it up again and go to your site. DO NOT do a CTRL-F5. Let me know if the game summary module appears the first time you enter your site. Ok, just did this. No, the Game Summary does not appear when I first enter the site. I have not hit CTRL-F5. If you want I can check to see if I can reproduce at home just in case it is the company firewall. Try it when you get home. Maybe that is the issue. What you can also do is use the "click to display" method. This will create a link to the app so that whoever visits the tab will see a link instead of the table. When they click the link the table will (should) appear. This will also speed up the initial loading time of your site. To do this add the following just below the FYI section in the code : CODE //Display Game Report Manually
var gameReportClickToStart = true; -------------------- My MFL scripts . . . . . . . . http://www.habman.com/mfl/
|
|
|
|
Oct 4 2007, 03:29 PM
Post
#14
|
|
|
Veteran ![]() ![]() ![]() Group: Members Posts: 4718 Joined: 22-February 04 Member No.: 31 2009 MFL: 33218 |
Try it when you get home. Maybe that is the issue. Yep, same issue at home. First launch up the web site and the Game summary isn't there. Run the starting lineups report and then it appears for that session until the browser is closed. Doesn't appear to be an issue with IE7. One thing I do notice in this testing is that the site loads much slower on IE (probably the amount of your apps I have). I don't really care but found it interesting that FireFox loaded faster, probably twice as fast. Not sure if that has anything to do with it or not. All things considered it's not the end of the world, especially if nobody else has the issue. I can just put a note on that tab to run the lineup report if you don't see the table. -------------------- Scott
All Rosters code: http://sidelineleagues.com/forums/index.php?showtopic=18864 Custom CSS upload: http://sidelineleagues.com/forums/index.php?showtopic=15112 Do *NOT* look at the boxscores on nfl.com They are known to be unreliable and rarely updated. You should be looking at the GameBook for the game for the most "official" stats that are available to the public. Also as noted live scoring on MFL is not official and often defensive stats are delayed. Once the final stats are out early Tuesday after the Monday night game then see what happens. |
|
|
|
Oct 7 2007, 11:04 PM
Post
#15
|
|
![]() Veteran ![]() ![]() ![]() Group: Members Posts: 1948 Joined: 29-August 05 From: Leamington ON, Canada Member No.: 3058 2009 MFL: 31589 , 24836 |
I was away last weekend and it was our Canadian Thanksgiving this weekend so I really didn't have a good chance to look at this module until right now.
This module was initially setup to give everyone a list of the starters for each team before the games were played. Once the games began this module would only display the score of a fantasy game when it became "Final". I have now added an "In Progress" mode which is what I should have had in the first place. Do a CTRL-F5 to clear your cache and you will see the new table. -------------------- My MFL scripts . . . . . . . . http://www.habman.com/mfl/
|
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 3rd September 2010 - 11:40 PM |