Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: jmille44 on March 19, 2017, 12:16:55 PM

Title: How to allow a global mod to change registration settings?
Post by: jmille44 on March 19, 2017, 12:16:55 PM
Hopefully a simple question.  How do I allow a global moderator to be able to change registration settings to disable registration of new users in case of a forum attack and the forum admin is not around to do this?

The admin has this setting but I can't figure out how to allow the Global Mod to receive this menu?

Thanks for any help.
Title: Re: How to allow a global mod to change registration settings?
Post by: Illori on March 19, 2017, 12:33:17 PM
i dont believe there is a way to do that. are you doing it to prevent spam?

if so there are better way to prevent the spammers. http://wiki.simplemachines.org/smf/Spam_-_my_forum_is_flooded_with_spam,_what_can_I_do
Title: Re: How to allow a global mod to change registration settings?
Post by: Shambles on March 19, 2017, 01:49:58 PM
It can be achieved with a small change to Sources/ManageRegistration.php

Code (Find) Select

'settings' => array('ModifyRegistrationSettings', 'admin_forum'),


Code (Replace) Select

'settings' => array('ModifyRegistrationSettings', 'moderate_forum'),



Then your global moderators can access the section via:

/index.php?action=admin;area=regcenter;sa=settings