Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Moderators to Change a users group?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Moderators to Change a users group?

 Post Reply Post Reply Page  123>
Author
Jason View Drop Down
Newbie
Newbie


Joined: 16 October 2003
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jason Quote  Post ReplyReply Direct Link To This Post Topic: Moderators to Change a users group?
    Posted: 16 October 2003 at 2:25pm

Is there a good way to Allow my Moderators to change a users group? I know I could just make them Admins, But then I would have 20 or so admins running around. I would like to keep the mods out of the admin page but still have the ability to promote or demote Users.

If Anyone Has any advice on this it would be greatly apricated.

 

Back to Top
huwnet View Drop Down
Senior Member
Senior Member


Joined: 30 May 2003
Location: England
Status: Offline
Points: 1375
Post Options Post Options   Thanks (0) Thanks(0)   Quote huwnet Quote  Post ReplyReply Direct Link To This Post Posted: 17 October 2003 at 12:58am
I remember hearing about it before. You have to add blnmoderators somewhere but where is a mystery!
Back to Top
huwnet View Drop Down
Senior Member
Senior Member


Joined: 30 May 2003
Location: England
Status: Offline
Points: 1375
Post Options Post Options   Thanks (0) Thanks(0)   Quote huwnet Quote  Post ReplyReply Direct Link To This Post Posted: 17 October 2003 at 12:59am
It might be in register.asp
Back to Top
Adrael View Drop Down
Newbie
Newbie


Joined: 27 April 2003
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Adrael Quote  Post ReplyReply Direct Link To This Post Posted: 19 April 2004 at 2:51am
Hmmm... register.asp huh?
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 19 April 2004 at 6:30am

the permissions are in the register.asp near the bottom..i think where it says if blnAdmin = True then ......

you would have to add some code so that the moderators can't change your password ... by adding if AND NOT lngUserID = 1

i think would do it....

Back to Top
Adrael View Drop Down
Newbie
Newbie


Joined: 27 April 2003
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Adrael Quote  Post ReplyReply Direct Link To This Post Posted: 19 April 2004 at 8:01am
Ok, I messed with it a bit and got it to work.

Here's a walkthrough:

(Line locations are approximate)

File: register.asp

First, allow Moderators to change member groups:

Line 1814
       'Only allow admin to change the member group
       If blnAdmin OR blnModerator Then


Then I added a simple 'If' statement to restrict them from making a user an Administrator:

Line 1850 - 1863
       If NOT intSelGroupID = "1" Then
       'Display the selection
       Response.Write("<option value=""" & intSelGroupID & """")
   
       'If this is the group the member is part of then have it slected
       If intUsersGroupID = intSelGroupID Then Response.Write(" selected")
   
       'Display the end of the select option
       If blnSelSpecialGroup Then
       Response.Write(">" & strSelGroupName & " - " & strTxtNonRankGroup & "</option>" & vbCrLf)
       Else
       Response.Write(">" & strSelGroupName & " - " & strTxtRankGroupMinPosts & " " & lngSelMinimumRankPosts & "</option>" & vbCrLf)
       End If
       End If

After I tested that out I could change users group as a Moderator, but the change didn't take effect. The solution was at:

Line 936
       'If the admin mode is enabled then add update some extra parts
       If blnAdminMode AND (blnAdmin Or blnModerator) AND strMode = "update" Then

And I just added in the (blnAdmin Or blnModerator) statement.

Let me know if I missed anything.

-Adrael


Back to Top
polecat View Drop Down
Groupie
Groupie


Joined: 14 April 2004
Location: Argentina
Status: Offline
Points: 131
Post Options Post Options   Thanks (0) Thanks(0)   Quote polecat Quote  Post ReplyReply Direct Link To This Post Posted: 19 April 2004 at 11:45am

Is there a way to allow moderators to ban users and not IPs?
I mean, in the part of setting if the user is active or not...that option is only for the admins, but I want it also for moderators.
If any of you know how to do it, i will be REALLY happy ;)

Thanx for reading!!

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: 19 April 2004 at 1:28pm
Moderators can already supsend/de-activate or activate accounts by editing a members profile. They just can't delete a member.
Back to Top
 Post Reply Post Reply Page  123>

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.