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)
 Simple 'Users on line' type mod?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Webbo
Average Member

United Kingdom
982 Posts

Posted - 03 December 2003 :  07:49:34  Show Profile  Visit Webbo's Homepage
Hi,

Is there a simple code addition that could be added to the default.asp page that would show the number of people that are viewing the forum at that moment in time?

I know there is the 'Active Users' mod but I'm thinking of something a little simpler where names are left from the details, just number of users online

Thanks,

Dave

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 03 December 2003 :  08:01:18  Show Profile
You could use the global.asa file and keep a count in the Application object

Sub Application_OnStart        
     Application("ActiveUsers") = 0
End Sub

Sub Application_OnEnd
     Application("ActiveUsers") = 0
End Sub

Sub Session_OnStart
    Application.lock
    Application("ActiveUsers") = Application("ActiveUsers") + 1
    Application.UnLock
End Sub

Sub Session_OnEnd
    Application.lock
    Application("ActiveUsers") = Application("ActiveUsers") - 1
    Application.UnLock

End Sub

Application("ActiveUsers") = currently active

The UK MkIVs Forum

Edited by - DavidRhodes on 03 December 2003 08:02:31
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 03 December 2003 :  08:04:32  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Maybe something like this, it is used at http://forum.snitz.com/

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 03 December 2003 :  08:18:17  Show Profile
Or there's the Active Users Lite mosd which includes the changes you would need to make to inc_header.asp.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 04 December 2003 :  07:40:25  Show Profile  Visit Webbo's Homepage
Cheers everyone, I have modified my global.asa to include Richard's script and it works well

Dave
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.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07