Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Greeting message that changes according to time
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Kumachan
Starting Member

Italy
1 Posts

Posted - 03 September 2003 :  17:36:28  Show Profile
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
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.43 seconds. Powered By: Snitz Forums 2000 Version 3.4.07