Advertisement:

Author Topic: How to allow a global mod to change registration settings?  (Read 316 times)

Offline jmille44

  • Semi-Newbie
  • *
  • Posts: 49
How to allow a global mod to change registration settings?
« 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.

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 46,600
Re: How to allow a global mod to change registration settings?
« Reply #1 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

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 4,217
  • Gender: Male
    • i30 Owners Club
Re: How to allow a global mod to change registration settings?
« Reply #2 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:

Code: [Select]
/index.php?action=admin;area=regcenter;sa=settings