Active Users
<%
'***** START WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ******
Response.Write("")
'***** END WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ******
%>
<%
'Get the number of active users
'Get the active users online
For intArrayPass = 1 To UBound(saryActiveUsers, 2)
'If this is a guest user then increment the number of active guests veriable
If saryActiveUsers(1, intArrayPass) = 2 Then
intActiveGuests = intActiveGuests + 1
'Else if the user is Anonymous increment the Anonymous count
ElseIf CBool(saryActiveUsers(8, intArrayPass)) Then
intAnonymousMembers = intAnonymousMembers + 1
End If
Next
'Calculate the number of members online and total people online
intActiveUsers = UBound(saryActiveUsers, 2)
intActiveMembers = intActiveUsers - intActiveGuests
%>
<%
'display the active users
For intArrayPass = 1 To UBound(saryActiveUsers, 2)
intForumColourNumber = intForumColourNumber + 1
'Array dimension lookup table
' 0 = IP
' 1 = Author ID
' 2 = Username
' 3 = Login Time
' 4 = Last Active Time
' 5 = OS/Browser
' 6 = Location Page Name
' 7 = URL
' 8 = Hids user details
'Read in the details from the rs
lngUserID = saryActiveUsers(1, intArrayPass)
strUsername = saryActiveUsers(2, intArrayPass)
dtmLoggedIn = saryActiveUsers(3, intArrayPass)
dtmLastActive = saryActiveUsers(4, intArrayPass)
strOSbrowser = saryActiveUsers(5, intArrayPass)
strLocation = saryActiveUsers(6, intArrayPass)
strURL = saryActiveUsers(7, intArrayPass)
blnHideActiveUser = CBool(saryActiveUsers(8, intArrayPass))
intForumID = CInt(saryActiveUsers(9, intArrayPass))
'Check the permissions to see if the user has permission to see the topic subject
If intForumID > 0 Then
'Check permissions
Call forumPermissions(intForumID, intGroupID)
'If the user doesn't have read permissions then remove the Location URL
If blnRead = False Then strURL = ""
End If
'Write the HTML of the Topic descriptions as hyperlinks to the Topic details and message
%>
">
<%
'If the user is a Guest then display them as a Guest
If lngUserID = 2 Then
'Add 1 to the Guest number
intGuestNumber = intGuestNumber + 1
'Display the User as Guest
Response.Write(strTxtGuest & " "& intGuestNumber)
'If the user wants to hide there ID then do so (unless this is an admin or moderator)
ElseIf blnHideActiveUser AND blnAdmin = False AND blnModerator = False Then
'Display the user as an annoy
Response.Write(strTxtAnnoymous)
'Else display the users name
Else
%><% = strUsername %><%
End If
%>