Version: 1.20, by TilkiBey
Developer Last Online: May 2016
Category: Administrative and Maintenance Tools -
Version: 4.0.x
Rating:
Released: 08-17-2010
Last Update: Never
Installs: 19
Code Changes
No support by the author.
at 1st, i am sorry if i opened this thread to wrong category
at 2nd, i am sorry bout my English =)
at my forum, an admin deleted a user account without our permission
after deletion, there are a lot of db errors
so, i ve to find a solve for this problem and i found =)
Superadmins (from config.php file) can delete users
but, normal admins can NOT delete users
..::Upgrade Instructions::..
1-) Download new user.php file from ur license account
2-) Follow install instructions
..::Install Instructions::..
1-) download and open admincp/user.php file
2-a) find
PHP Code:
print_cp_header($vbphrase['user_manager']);
2-b) replace with
PHP Code:
if ($_REQUEST['do'] == 'remove' AND !in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s', $vbulletin->config['SpecialUsers']['superadministrators'], -1, PREG_SPLIT_NO_EMPTY))){ print_cp_header('Access Denied'); } else{ print_cp_header($vbphrase['user_manager']); }
3-a) find
PHP Code:
if ($_REQUEST['do'] == 'remove') {
3-b) add BELOW
PHP Code:
if (!in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s', $vbulletin->config['SpecialUsers']['superadministrators'], -1, PREG_SPLIT_NO_EMPTY))) { print_table_start(); print_table_header('Access Denied'); echo "<td class=\"alt1\" nowrap=\"nowrap\" align=\"center\">You Have No Permission For This Process</td>"; print_table_footer(2, '', '', 0); } else{
Just turn off being able to edit users in the admin permissions for each admin.
I dunno. I thought of that too, but then I looked and the best I could find was this (vb 406), which doesn't match the functionality at all. Maybe I'm just missing the "Can edit users" option?
Quote:
Can Administer Users This setting determines whether an admin will be able to access the Users, Usergroups, User Infractions, User Titles, User Ranks, User Reputations,User Profile Fields and Paid Subscriptions areas of the Admin CP.
"Admin CP -> Usergroups -> Administrator Permissions" will list your Admins. Then just go to "Edit Permissions" of the Admins you want to edit and it is all in there.
Can Administer Users = Can Edit Users
If they can't edit users they can't delete them either.
If they can't edit users they can't delete them either.
True, but then neither can they do a dozen other things pertaining to users. Presumably this mod is intended to simply prevent an admin from deleting a user. But they can still administer all those other user functions.
We only allow Two admins in the admin side of the cp the rest of them only have access to the mod panel ... to many finger in the admincp spell a whole heap of trouble for the senior admins..