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
 hi need scrpit
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ez4arab
Junior Member

479 Posts

Posted - 08 June 2001 :  05:02:26  Show Profile  Visit Ez4arab's Homepage
hi
where can i get this scrpit visits today
i have setup active users in my forum.is it show in the same scrpit


Classicmotorcycling
Development Team Leader

Australia
2085 Posts

Posted - 08 June 2001 :  05:14:38  Show Profile
Hello Aljish,

Create a global.asa with the following code in your root directory;


<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Application_OnStart
Application("ActiveUsers") = 0
Application("TodaysDate") = Date
End Sub
Sub Session_OnStart
If Application("VisitorsToday") = "" then
Application("VisitorsToday") = 0
end if
Session.Timeout = 10 ' minutes
Session("Start") = Now
Application.Lock
Application("ActiveUsers") = Application("ActiveUsers") + 1
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>


Then add this to where you want to see the active user (normally placed in the inc_top.asp);

<%Response.Write "<font size='-2'>  Active Users: <font color='green'>" & Application("ActiveUsers") &"</font><br>  Visits Today: <font color='red' size='-2'>" & Application("VisitorsToday") %>


I trust this is what you are after, the same as what is listed under the Snitz Forums 2000 graphic in the top left hand corner.

quote:

hi
where can i get this scrpit visits today
i have setup active users in my forum.is it show in the same scrpit






Regards,

Webmaster @ Classic Motor Cycling
Classic Motor Cycling


Edited by - Classicmotorcycling on 08 June 2001 05:19:35
Go to Top of Page

Ez4arab
Junior Member

479 Posts

Posted - 08 June 2001 :  07:14:12  Show Profile  Visit Ez4arab's Homepage
quote:

Hello Aljish,

Create a global.asa with the following code in your root directory;


<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Application_OnStart
Application("ActiveUsers") = 0
Application("TodaysDate") = Date
End Sub
Sub Session_OnStart
If Application("VisitorsToday") = "" then
Application("VisitorsToday") = 0
end if
Session.Timeout = 10 ' minutes
Session("Start") = Now
Application.Lock
Application("ActiveUsers") = Application("ActiveUsers") + 1
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>


Then add this to where you want to see the active user (normally placed in the inc_top.asp);

<%Response.Write "<font size='-2'>  Active Users: <font color='green'>" & Application("ActiveUsers") &"</font><br>  Visits Today: <font color='red' size='-2'>" & Application("VisitorsToday") %>


I trust this is what you are after, the same as what is listed under the Snitz Forums 2000 graphic in the top left hand corner.

quote:

hi
where can i get this scrpit visits today
i have setup active users in my forum.is it show in the same scrpit






Regards,

Webmaster @ Classic Motor Cycling
Classic Motor Cycling


Edited by - Classicmotorcycling on 08 June 2001 05:19:35



thankx Classicmotorcycling this one that i am looking for


Go to Top of Page

Ez4arab
Junior Member

479 Posts

Posted - 10 June 2001 :  09:02:27  Show Profile  Visit Ez4arab's Homepage
hi
i do this but the visits today number does not appear. do any body know about this




Edited by - aljish on 10 June 2001 09:06:52
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 1.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07