MyBB Community Forums

Full Version: [s] replace 'Adminstrators' as default 'primary user group' @ ACP / change-user-group
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
.
Attached scrnshot shows interface in question.

Would like to change 'Adminstrators' to another group... sometimes (in my spam/ban control process) hit 'save' without changing 'Primary User Group' and would like it to be a safer group when make that mistake.

Assume may be some language file ?
Any clues ?
Add a new group named Abracadabra or something else earlier than Administrators in alphabetical order. You can copy settings From Registered group to that group if you want to be fully secure. Or simply rename Registered group with the same requirement.

That would be the easiest solution, however, if you don't want to mess with groups you would need a PHP solution, not sure where the code is though and how hard it is to edit.
E: Found it. In admin/modules/user/users.php change around line 2908:
				$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title'));
to:
				$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'gid'));
They will be sorted by group id then.
.
Thanks for the guidance.
Used the alpha solution.
When tried the php, the gid order didnt match the gid order at the database.
No idea why.
But with that said, the alpha solution worked great ! Smile

(2013-10-30, 09:37 PM)Destroy666 Wrote: [ -> ]Add a new group named Abracadabra or something else earlier than Administrators in alphabetical order. You can copy settings From Registered group to that group if you want to be fully secure. Or simply rename Registered group with the same requirement.

That would be the easiest solution, however, if you don't want to mess with groups you would need a PHP solution, not sure where the code is though and how hard it is to edit.
E: Found it. In admin/modules/user/users.php change around line 2908:
				$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title'));
to:
				$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'gid'));
They will be sorted by group id then.