Add Morning Games to Early Game Listings
Add Morning Games to Early Game Listings
How can I include the 9:30 am London games to the early game listings in the "Contest News" box of the homepage?
Last edited by Lush on Tue Oct 10, 2017 10:58 pm, edited 1 time in total.
Re: Add Morning Games to Early Game Listings
You will need to edit "default.asp"
Search for these 3 lines:
and replace with this 1 line:
Note the hour is compared to 13, so any game before 1pm Eastern will show up as an early game.
You may also want to modify the display to include time so you know what time the early Sunday game is playing, as with other times, it would be eastern.
A few lines below the previous update you will find:
And replace with:
Search for these 3 lines:
Code: Select all
if week <> rs.Fields("Week").Value and _
dayName <> vbSunday and _
dayName <> vbMonday then
Code: Select all
if (week <> rs.Fields("Week").Value and dayName <> vbSunday and dayName <> vbMonday) or (hour(rs.Fields("Time").Value) < 13) then
You may also want to modify the display to include time so you know what time the early Sunday game is playing, as with other times, it would be eastern.
A few lines below the previous update you will find:
Code: Select all
<li><a href="weeklyEntry.asp?week=<% = rs.Fields("Week").Value %>">Week <% = rs.Fields("Week").Value %></a> - <% = FormatDateTime(rs.Fields("Date").Value & " " & rs.Fields("Time").Value, vbLongDate) %></li>
Code: Select all
<li><a href="weeklyEntry.asp?week=<% = rs.Fields("Week").Value %>">Week <% = rs.Fields("Week").Value %></a> - <% = FormatDateTime(rs.Fields("Date").Value & " " & rs.Fields("Time").Value, vbLongDate) & " " & FormatTime(rs.Fields("Time").Value) %></li>
Re: Add Morning Games to Early Game Listings
THANK YOU VERY MUCH!!!!!!!