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
 Questions/Suggestions about Active User mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

nomad_2k
Junior Member

United Kingdom
173 Posts

Posted - 01 April 2002 :  12:15:48  Show Profile
2 question and 2 suggestions for the Active User mod

The first question, what's the 'LASTDATECHECKED' field for in the database? I can't find any page that uses it.

The second question, when checking the browser/os type in inc_activeusers.asp it looks in Request.ServerVariables("HTTP_UA_OS"), does HTTP_UA_OS exist?

The first suggestion is between lines 279 and 294 of inc_activeusers.asp there is the following code:

' Get Active Users count for display on Default.asp
strOnlineCountType = "U"
onlinecount = GetOnlineActiveCount(strOnlineCountType)
strOnlineUsersCount = onlinecount
'Get Guest count for display on Default.asp
strOnlineCountType = "G"
Guests = GetOnlineActiveCount(strOnlineCountType)
strOnlineGuestsCount = Guests
' Get Member count for display on Default.asp
strOnlineCountType = "M"
Members = GetOnlineActiveCount(strOnlineCountType)
strOnlineMembersCount = Members
' Get Chatter count for display on Default.asp
strOnlineCountType = "C"
Chatters = GetOnlineActiveCount(strOnlineCountType)
strOnlineChattersCount = Chatters


You don't need to call GetOnlineActiveCount() to work out onlinecount you can just add the totals from guest and memebers saving one db call, also not everyone has chat installed on their forums, so some option or comment in the install instructions to comment out the last three lines of the above code would save another db call.

The second suggestion is rather than storing the name of the user's browser and os in the db use two arrays, then you only need to store the array index for the user's browser and os. Then when you need to display the info on the active user page you do something like this aBrowser(rs("BrowserTYPE")).


Good things come to those who wait.

Nathan
Help Moderator

USA
7664 Posts

Posted - 01 April 2002 :  15:19:43  Show Profile  Visit Nathan's Homepage
quote:
does HTTP_UA_OS exist


Yes, it exsists. It only returns (none) for me though. Perhpas it is depriciated.

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

Snitz Exchange | Do's and Dont's
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.46 seconds. Powered By: Snitz Forums 2000 Version 3.4.07