PDA

View Full Version : Hide Specific UserGroup from Control Panel


hurrican
06-26-2007, 12:17 AM
Isn't there some way to hide a specific UserGroupID in the CP from being selected using a mysql != statement somewhere in the admin/user.php file? I want to have UserGroupID 15 NOT available to a choice, but don't want to remove that particular group from my forum (it's used for external suspensions).

If easier, I'd be happy with if another admin were to select that usergroup to change a user to, that when they clicked "Submit" it would error out on them telling them that the UserGroup chosen is not available, to use the external script written for that usergroup. Any help greatly appreciated.

nexialys
06-26-2007, 01:05 AM
making this add, why having the usergroup #15 if you do not want it to be available ?!

hurrican
06-26-2007, 01:57 AM
Because that usergroup #15 is actually a "Suspended" usergroup, but have a seperate script that takes care of user suspensions. I don't want the admins/mods to be able to manually choose that usergroup unless they use the proper tool to do so. :)

HMBeaty
06-26-2007, 02:02 AM
So basically you want to remove the "Group Memberships" options from the view of Usergroup #15? If so, that can be done with a simple template edit

hurrican
06-26-2007, 12:43 PM
Sounds about right, Basically, anything that allows an admin to change the usergroup id to 15 (other than the script), don't display usergroup 15 as an option for an admin to change the usergroup to.

hurrican
06-28-2007, 02:13 AM
And BTW -- This is for vB2.3.x so it's even easier than anything I would think. I found the sql query for it to pull the usergroups, and I added usergroupid!=15 but when I do that, of course, it just loads up a blank user form if the user is in that usergroup.

hurrican
07-01-2007, 12:51 PM
Ohh well - I'll live without it - Thought it'd been an easy fix, but guess not.

Thx!