Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 13 Feb 2012, 12:40
vBNinja's Avatar
vBNinja vBNinja is offline
 
Join Date: May 2011
Arrow Setting default super moderator permissions?

Hello,

I need some help with setting the default super mod permissions. For example, when a member is made a super mod, he automatically gets all the permissions enabled, i want to change the defaults so i dont have to fix the permissions everytime theres a new super moderator.

By permissions i mean "Can delete threads, can set forum password, can delete visitor messages, can edit profile, etc"

I'm sure this is possible, it's probably just changing the values of a file/database table
Thanks in advance
Reply With Quote
  #2  
Old 13 Feb 2012, 14:17
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I think you just want to edit the Super Moderator user group.
Reply With Quote
  #3  
Old 13 Feb 2012, 14:25
vBNinja's Avatar
vBNinja vBNinja is offline
 
Join Date: May 2011
No, thats different permissions
Reply With Quote
  #4  
Old 13 Feb 2012, 14:53
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Oh right - that's why you listed the ones you were interested in

Anyway it looks like a super moderator gets all permissions by default (if you haven't edited the permissions). So you'd probably need to change the code to do what you want. You'd either have to insert a record in the moderator table whenever a user is made a super moderator, or else change the code in function fetch_moderator_permissions() (in includes/functions.php). Near the end of that function there's this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


So I think if you were to set $globalperms['permissions'] and $globalperms['permissions2'] to have the bits set only for the permissions you want by default, it might work.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 06:18.

Layout Options | Width: Wide Color: