Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - members.asp
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

members.asp

 Post Reply Post Reply
Author
purna View Drop Down
Newbie
Newbie


Joined: 06 August 2013
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote purna Quote  Post ReplyReply Direct Link To This Post Topic: members.asp
    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


 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 08 April 2015 at 5:33pm
Thank you for the information and a fix.Smile
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.