Page 1 of 1

Add Morning Games to Early Game Listings

Posted: Sun Sep 24, 2017 10:26 am
by Lush
How can I include the 9:30 am London games to the early game listings in the "Contest News" box of the homepage?

Re: Add Morning Games to Early Game Listings

Posted: Tue Oct 03, 2017 8:30 am
by mb323
You will need to edit "default.asp"

Search for these 3 lines:

Code: Select all

			if week <> rs.Fields("Week").Value and _
			   dayName <> vbSunday and _
			   dayName <> vbMonday then
and replace with this 1 line:

Code: Select all

if (week <> rs.Fields("Week").Value and dayName <> vbSunday and dayName <> vbMonday) or (hour(rs.Fields("Time").Value) < 13)  then
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:

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>
And replace with:

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

Posted: Tue Oct 10, 2017 10:56 pm
by Lush
THANK YOU VERY MUCH!!!!!!!