Can someone please test this out for me as I am just running this on my work laptop and can only log on with one person. I'm pretty sure it works but I need to be sure before I add it to my live site.
I need to see if the active users array will work with multiple users logged on.
You will also need on online and offline image called
Offline_Img.gif and Online_Img.gif copied to the forum_images directory I got mine from http://www.4webhelp.net/phpbb/online/?list=1This is the entire original members.asp with only the changes for the MOD. The changes will be highlighted in
RED
Feedback would be appreciated.
Cheers
Justin
[CODE]
<% @ Language=VBScript %>
<% Option Explicit %>
<!--#include file="common.asp" -->
<!--#include file="functions/functions_date_time_format.asp" -->
<%
'****************************************************************************************
'** Copyright Notice
'**
'** Web Wiz Guide - Web Wiz Forums
'** http://www.webwizforums.com
'**
'** Copyright 2001-2006 Bruce Corkhill All Rights Reserved.
'**
'** This program is free software; you can modify (at your own risk) any part of it
'** under the terms of the License that accompanies this software and use it both
'** privately and commercially.
'**
'** All copyright notices must remain in tacked in the scripts and the
'** outputted HTML.
'**
'** You may use parts of this program in your own private work, but you may NOT
'** redistribute, repackage, or sell the whole or any part of this program even
'** if it is modified or reverse engineered in whole or in part without express
'** permission from the author.
'**
'** You may not pass the whole or any part of this application off as your own work.
'**
'** You may not deactivate any adverts or links to Web Wiz Guide and it’s associates
'** and must remain visible when the pages are viewed unless permission is first granted
'** by the copyright holder.
'**
'** This program is distributed in the hope that it will be useful,
'** but WITHOUT ANY WARRANTY; without even the implied warranty of
'** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR ANY OTHER
'** WARRANTIES WHETHER EXPRESSED OR IMPLIED.
'**
'** You should have received a copy of the License along with this program;
'** if not, write to:- Web Wiz Guide, PO Box 4982, Bournemouth, BH8 8XP, United Kingdom.
'**
'**
'** Official support is available for this program through the free support forum at: -
'** http://www.webwiz.net/forum
'**
'** Support questions are NOT answered by e-mail ever!
'**
'** For correspondence or non support questions contact: -
'**
'** Web Wiz Guide, Unit 10E, Dawkins Road Industrial Estate, Poole, Dorset, UK, BH15 4JD
'**
'****************************************************************************************
'Set the response buffer to true as we maybe redirecting
Response.Buffer = True
'Make sure this page is not cached
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 2
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "No-Store"
'Dimension variables
Dim strUsername 'Holds the users username
Dim strHomepage 'Holds the users homepage if they have one
Dim strEmail 'Holds the users e-mail address
Dim blnShowEmail 'Boolean set to true if the user wishes there e-mail address to be shown
Dim lngUserID 'Holds the new users ID number
Dim lngNumOfPosts 'Holds the number of posts the user has made
Dim intMemberGroupID 'Holds the users interger group ID
Dim strMemberGroupName 'Holds the umembers group name
Dim intRankStars 'holds the number of rank stars the user holds
Dim dtmRegisteredDate 'Holds the date the usre registered
Dim intTotalRecordsPages 'Holds the total number of pages
Dim intTotalRecords 'Holds the total number of forum members
Dim intRecordPositionPageNum 'Holds the page number we are on
Dim dtmLastPostDate 'Holds the date of the users las post
Dim intLinkPageNum 'Holds the page number to link to
Dim strSearchCriteria 'Holds the search critiria
Dim strSortBy 'Holds the way the records are sorted
Dim intForumID 'Holds the forum ID if within a forum
Dim intGetGroupID 'Holds the group ID
Dim strRankCustomStars 'Holds custom stars for the user group
Dim sarryMembers 'Holds the getrows db call for members
Dim intPageSize 'Holds the number of memebrs shown per page
Dim intStartPosition 'Holds the start poition for records to be shown
Dim intEndPosition 'Holds the end poition for records to be shown
Dim intCurrentRecord 'Holds the current record position
Dim dtmLastActiveDate 'Holds the date this user was last active
Dim strSortDirection 'Holds the sort order
Dim strLinkPage 'Holds the page to link to
Dim intPageLinkLoopCounter 'Holds the loop counter for the page links
Dim strPassword
'*************************************
' Addition for Online Users
Dim IsOnline
'*************************************
'Initalise variables
blnShowEmail = False
intGetGroupID = CInt(Request.QueryString("GID"))
intPageSize = 25
'If this is the first time the page is displayed then the members record position is set to page 1
If Request.QueryString("PN") = "" Then
intRecordPositionPageNum = 1
'Else the page has been displayed before so the members page record postion is set to the Record Position number
Else
intRecordPositionPageNum = CInt(Request.QueryString("PN"))
End If
'Get the search critiria for the members to display
If NOT Request.QueryString("SF") = "" Then
strSearchCriteria = Trim(Mid(Request.QueryString("SF"), 1, 15))
End If
'Take out parts of the username that are not permitted
strSearchCriteria = disallowedMemberNames(strSearchCriteria)
'Get rid of milisous code
strSearchCriteria = formatSQLInput(strSearchCriteria)
'Get the sort critiria
Select Case Request.QueryString("SO")
Case "PT"
strSortBy = strDbTable & "Author.No_of_posts "