Active Users in MemberList MOD
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=21943
Printed Date: 29 March 2026 at 6:17pm Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Active Users in MemberList MOD
Posted By: jckruger
Subject: Active Users in MemberList MOD
Date Posted: 16 November 2006 at 4:21am
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=1 - http://www.4webhelp.net/phpbb/online/?list=1
This 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 "
|
Replies:
Posted By: jckruger
Date Posted: 16 November 2006 at 8:26am
I actually just tested it on my live forum when I got home just now and it works perfectly with a few people logged in.
I would assume it would work for all types of the forum being SQL, Access or mysql as it just uses the saryActiveUsers Array.
I am using the Access version of WWF. Could someone test it on each type of the forum types for compatability purposes.
I guess the images could also be used in forum_posts.asp instead of having the words online and offline too.
Cheers
Justin
|
|