I've changed this up quite a bit to give much finer game lock date control instead of forcing bulk locking of games at a single set date/time. This really opens up the addon being used for Sports that have matches spread out over multiple days/weeks instead of sports with 90% of the games played on 1 day. Its something that I've wanted to do since Day 1.
Some quick notes about this....
Weeks now have 3 Date/Time fields. They are Week Start Date, Week Alert Date and Week Stop Date.
Week Start Date controls the Week Focus for the Leaderboard and Picks pages (as well as the Red Status Messages). It also is used to pre populate the game lock date on the Game Create form when creating new games for a given week.
Week Alert Date (new), is only used for determining when the 48 hour and 24 hour reminders (Alerts) are sent out.. ie, if you set this date to Friday at noon... then alerts would be sent out Wed at noon (48 hours) and Thu at noon (24 hours). Thats its sole purpose, nothing more, nothing less.
Week Stop Date. This functionality has changed. It USED to be used to bulk lock games as well as the reminders system used it to determine when to send alerts. This now serves one purpose and that is to lock the week after the LAST game has started. All this does is change the Week Status from OPEN to CLOSED. Nothing more, nothing less.
THIS is where the fun begins....
I've added a 'Game Lock Date' to the Create Game and Edit Game forms. This date is used to auto lock each individual game (no more having to set the score to lock a game).
When creating a new game, the Week Start Date is used to Pre Populate the field which you then edit to the precise date/time. The reason for this is because without pre populating, it starts with the current date/time. This would mean that when its August and you are entering games for December, you will have to switch the calender 5 months (one click at a time) to just get to december and then pick the date. By using the week start date, the calendar is already just a few days away from the actual game date (hope that makes sense)... its a TIME SAVER
What all this allows is stuff like this:
This is what I will be doing for my NFL pools... you can now auto lock ALL games at their actual start date/time which allows players to edit their picks right up till kickoff (example matrix below)
- Thursday Night Game... locks at kickoff 7:30 Eastern
- Sunday Early Games... locks at kickoff 1pm Eastern
- Sunday Late Games.. locks at kickoff 4:25pm Eastern
- Sunday Night Game... locks at kickoff 8pm Eastern
- Monday Night Game... locks at kickoff 8pm Eastern
Where this really kicks in is for sports like Baseball, Hockey, Basketball that have daily games. With the old system, it was just about impossible to do pickems for these sports outside of the playoffs... now its totally possible because of individual game locking control. You can now create a Week for Baseball that has games on every day of the week (setup games for that week that lock day 1, day 2, day 3, day 4, day 5 etc.. at their respective times). Then just do the scoring at the end of the week and set the week winners. You don't have to do every single MLB game (that would take a lot of effort), but you could offer x many games per day to make one hell of an awesome MLB pickem. Same can be done with NBA, NHL etc..