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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 how i made a active users like at the
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

netanel
New Member

Israel
89 Posts

Posted - 26 March 2002 :  20:26:53  Show Profile  Send netanel an ICQ Message
snitz forum home page?

Nathan
Help Moderator

USA
7664 Posts

Posted - 26 March 2002 :  20:28:57  Show Profile  Visit Nathan's Homepage
They use the global.asa file I think. There is an easy way to show the active uses on your forum, just download the active users mod from the Snitz Exchange.

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 26 March 2002 :  20:50:39  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
quote:

Here is the contents of the global.asa file:

<SCRIPT LANGUAGE="VBScript" RUNAT="Server">

Sub Application_OnStart
Application("ActiveUsers") = 0
Application("HighestToDate") = 0
Application("TodaysDate") = Date
Application("VisitorsToday") = 0
End Sub

Sub Session_OnStart
Session.Timeout = 20 '## minutes
Session("Start") = Now

Application.Lock

Application("ActiveUsers") = Application("ActiveUsers") + 1

if Application("ActiveUsers") > Application("HighestToDate") then
Application("HighestToDate") = Application("HighestToDate") + 1
end if
if Application("TodaysDate") = Date then
Application("VisitorsToday") = Application("VisitorsToday") + 1
else
Application("TodaysDate") = Date
Application("VisitorsToday") = 1
end if

Application.UnLock
End Sub

Sub Session_OnEnd
' Decrease the active visitors count when the session ends.
Application.Lock
Application("ActiveUsers") = Application("ActiveUsers") - 1
Application.UnLock
End Sub

</SCRIPT>


Here is what the code looks like that is on the front page of this forum:

<%
'## BEGIN Active Users CODE
Response.Write " <font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>Active Users: " & Application("ActiveUsers") & " Visits Today: " & Application("VisitorsToday") & "</font><br>" & vbCrLf
Response.Write " <font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>Highest Active Users: " & Application("HighestToDate") & " " & "</font><br>" & vbCrLf
'## END Active Users CODE
%>



Taken from this topic (post no. 7)


Edited by - OneWayMule on 26 March 2002 20:52:44
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 24 April 2002 :  16:40:49  Show Profile
How do I add to this script for showing the number of visitors since a specific date ?

Go to Top of Page
  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.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07