Hi all,
in older versions of the forum there used to be a greeting message just above the UserId (where today we can read "You are logged on as"), that changed according to time. So if you logged in in the morning, you would get "Good Morning", and so on. The corresponding code in inc_top.asp was the following (this is an Italian version, so some words are translated, but the code itself is the same):
<table>
<tr>
<td align="center">
<font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
<%
dim saluto, ora
ora=time
if ora>=TimeValue("06:00") and ora<=TimeValue("11:59") then
saluto="BUONGIORNO"
end if
if ora>=TimeValue("12:00") and ora<=TimeValue("17:59") then
saluto="BUON POMERIGGIO"
end if
if ora>=TimeValue("18:00") and ora<=TimeValue("21:59") then
saluto="BUONASERA"
end if
if ora>=TimeValue("22:00") and ora<=TimeValue("23:59") then
saluto="BUONANOTTE"
end if
if ora>=TimeValue("00:00") and ora<=TimeValue("01:59") then
saluto="SOGNI D'ORO"
end if
if ora>=TimeValue("02:00") and ora<=TimeValue("05:59") then
saluto="ANCORA SVEGLIO?"
end if
%>
<%= saluto%>
<br>
I'd like to have the same feature on my new forum (3.4.03) but simply putting that code into my inc_header.asp file in the place of the words "You are logged on as" doesn't work (you can tell I'm not really much into ASP ).
Is there a way to do it?
Thanks,
KC