Print Page | Close Window

members.asp

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=31181
Printed Date: 30 March 2026 at 3:25am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: members.asp
Posted By: purna
Subject: members.asp
Date Posted: 08 April 2015 at 3:43pm
In version 11 I think the following code needs to be added to the members.asp file otherwise blnModerator can never be 'True' and therefore the changes to the code which remove banned members from the list can only be seen by an administrator and not a moderator

At line approx 195

'First see if the user is a in a moderator group for any forum
'Initalise the strSQL variable with an SQL statement to query the database
strSQL = "SELECT " & strDbTable & "Permissions.Moderate " & _
"FROM " & strDbTable & "Permissions " & _
"WHERE (" & strDbTable & "Permissions.Group_ID = " & intGroupID & " OR " & strDbTable & "Permissions.Author_ID = " & lngLoggedInUserID & ") AND  " & strDbTable & "Permissions.Moderate=" & strDBTrue & ";"

'Set error trapping
On Error Resume Next
   
'Query the database
rsCommon.Open strSQL, adoCon

'If an error has occurred write an error to the page
If Err.Number <> 0 Then    Call errorMsg("An error has occurred while executing SQL query on database.", "permissions ", "members.asp")
                       
'Disable error trapping
On Error goto 0
           
'If a record is returned then the user is a moderator in one of the forums
If NOT rsCommon.EOF Then blnModerator = True

'Clean up
rsCommon.Close


 



Replies:
Posted By: WebWiz-Bruce
Date Posted: 08 April 2015 at 5:33pm
Thank you for the information and a fix.Smile


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net