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
 snitz forums
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

agar
New Member

72 Posts

Posted - 09 May 2001 :  23:22:00  Show Profile
does any1 know how the snitz page forums have an active users and visits today thing at the very top under the logo. I'm just wondering if any1 knows how to do this

-------------------------
http://www.Danland.cjb.net/forum

agar
New Member

72 Posts

Posted - 09 May 2001 :  23:30:15  Show Profile
were does every1 find all these mods!?!?

-------------------------
http://www.Danland.cjb.net/forum
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 09 May 2001 :  23:38:45  Show Profile
For this mod you need the following.

First, you need a global.asa file ( this file MUST be in your root directory )

If you already have that you need to add this

<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 you need to add this to where ever you want the info to show

<%Response.Write "Active Users: " &  Application("ActiveUsers") &"  Visits Today: " & Application("VisitorsToday") %>



http://www.ugfl.net/forums

Edited by - big9erfan on 09 May 2001 23:43:33
Go to Top of Page

agar
New Member

72 Posts

Posted - 14 May 2001 :  22:51:44  Show Profile
i know this is from a long time ago but i did what you said and it doesn't say anythign beside active users: and visits today

-------------------------
http://www.Danland.cjb.net/forum
Go to Top of Page

RDoGG™
Junior Member

USA
329 Posts

Posted - 10 July 2001 :  20:39:57  Show Profile  Visit RDoGG™'s Homepage  Send RDoGG™ an AOL message  Send RDoGG™ a Yahoo! Message
quote:

i know this is from a long time ago but i did what you said and it doesn't say anythign beside active users: and visits today

-------------------------
http://www.Danland.cjb.net/forum



*bump* and also, (if you still care 2 months later), your host probably doesn't support global.asa

RDoGG™
Go to Top of Page

agar
New Member

72 Posts

Posted - 11 July 2001 :  20:23:37  Show Profile
I was a bit confused when I got the email saying someone replied. But since this post I got the thing to work and I host my own forums on IIS 5.

-------------------------
http://www.Danland.cjb.net/forum
Go to Top of Page

Jest
Starting Member

Slovenia
1 Posts

Posted - 15 July 2001 :  13:08:08  Show Profile  Visit Jest's Homepage  Send Jest an ICQ Message
It works great.... thank's

Thomas Bergant
http://www.communicator-online.com

Edited by - Jest on 15 July 2001 13:12:30
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.28 seconds. Powered By: Snitz Forums 2000 Version 3.4.07