Add Morning Games to Early Game Listings

Post here to discuss topics relate to the 4.x version for the ASP Football Pool software program. All support topics should go here.
Post Reply
User avatar
Lush
Posts: 22
Joined: Wed Nov 26, 2014 11:37 pm

Add Morning Games to Early Game Listings

Post 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?
Last edited by Lush on Tue Oct 10, 2017 10:58 pm, edited 1 time in total.
User avatar
mb323
Posts: 11
Joined: Tue Oct 22, 2013 3:31 pm

Re: Add Morning Games to Early Game Listings

Post 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>
User avatar
Lush
Posts: 22
Joined: Wed Nov 26, 2014 11:37 pm

Re: Add Morning Games to Early Game Listings

Post by Lush »

THANK YOU VERY MUCH!!!!!!!
Post Reply