View Full Version : Administrative and Maintenance Tools - Normal Admin Can't Delete User
TilkiBey
08-17-2010, 10:00 PM
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
print_cp_header($vbphrase['user_manager']);
2-b) replace with
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
if ($_REQUEST['do'] == 'remove')
{
3-b) add BELOW
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{
4-a) find
// ###################### Start Kill #######################
4-b) add ABOVE
}
5-) save and upload to ur admincp directory. that's all ;)
Notice: u can edit sentences manuel which re highlighted at ss
Turkish Support ~ T?rk?e Destek
http://www.vbulletin-turko.com/showthread.php/2285-Adminlerinizin-%C3%9Cye-Silmesini-Engelleyin
regards...
Known Bugs
White Page Problem --> Fixed at version 1.10
Version History
1.00
1.10 --> White Page is Fixed
1.20 --> Changed Scene, Screenshot added
hakan68
08-20-2010, 07:20 PM
Eline Sağlık Tilkißey
Thx man (:
Boofo
08-20-2010, 07:31 PM
Just turn off being able to edit users in the admin permissions for each admin.
Videx
08-21-2010, 01:47 AM
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? 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.
Boofo
08-21-2010, 02:10 AM
"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.
Videx
08-21-2010, 02:23 AM
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.
TilkiBey
08-21-2010, 07:33 AM
Just turn off being able to edit users in the admin permissions for each admin.
if u turn off this option, that admin wont edit user profile
cannot ban user, cannot change users' usergroup... etc...
if u wanna that ur admin has permission edit users but has NO permission for delete user accounts
there is no option at vb default settings
Dr.osamA
08-22-2010, 04:50 PM
thanxx bro
installed
5 stars
WhiskeyOSS
08-22-2010, 05:43 PM
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..
atmaca
08-23-2010, 04:59 PM
Thanks TilkiBey useful modification.
TilkiBey
08-29-2010, 08:17 PM
thx all :):up:
elderpooter
09-01-2010, 01:59 AM
thanks a lot :)
vmwareguy
09-01-2010, 03:57 PM
I have installed this mod on vb 4.0.6 Patch 1 but now I cannot delete any users.
Normal admins now cannot delete users which is excellent but when I, as the super admin, try to delete I just get redirected to a blank page and the deletion doesn't complete.
I have looked at the code but I can't see any reason why this is occurring.
Any help would be greatly appreciated. :)
-Mike
daveaite
09-01-2010, 04:19 PM
Just turn off being able to edit users in the admin permissions for each admin.
Exactly, you prob dont need a mod for this. Either way, some admins might not know how to do that xD
Lethaeus
09-13-2010, 06:20 AM
Thanks bro
TilkiBey
09-14-2010, 06:57 AM
I have installed this mod on vb 4.0.6 Patch 1 but now I cannot delete any users.
Normal admins now cannot delete users which is excellent but when I, as the super admin, try to delete I just get redirected to a blank page and the deletion doesn't complete.
I have looked at the code but I can't see any reason why this is occurring.
Any help would be greatly appreciated. :)
-Mike
thx for reporting and i'm soryy bout i am late, bout bairam =)
bug is fixed and modification is updated 1.10
so, u can use more safely now =)
regards..
updated: version 1.20, u can look 1st post
Lethaeus
09-27-2010, 08:41 PM
1.20 thanks
vmwareguy
09-28-2010, 01:57 PM
Thank you very much! I really do appreciate this modification as the admin I put it in place for did end up causing problems and we had to let him go. He never hit this but I was more comfortable having it there!!
-Mike
TilkiBey
09-28-2010, 07:35 PM
1.20 thanks
thx too
Thank you very much! I really do appreciate this modification as the admin I put it in place for did end up causing problems and we had to let him go. He never hit this but I was more comfortable having it there!!
-Mike
i am very happy if this modif. helped to u ^^
regards...
sweetpotato
11-17-2010, 08:14 AM
Thank you for this Mod. It's very useful for my site.
I have another problem and need help .
My code:
if ($_REQUEST['do'] == 'remove' AND in_array($vbulletin->GPC['userid'], array(Your ID)) ){
print_cp_header('Access Denied');
}
else{
print_cp_header($vbphrase['user_manager']);
}
if ($_REQUEST['do'] == 'remove')
{
if (in_array($vbulletin->GPC['userid'], array(Your ID)) )
{
print_table_start();
print_table_header('Access Denied');
echo "<td class=\"alt1\" nowrap=\"nowrap\" align=\"center\">Good try ;)</td>";
print_table_footer(2, '', '', 0);
}
else{
This code works on my vB4.2.5 - 5 PHP
But , we upload our forum on vB4.2.5 - 7.3.31 PHP .
Since then ( upload on new PHP ) , my code didn't work anymore . We are just only changed the PHP .
Does anyone know how to do that nobody can delete , ban or edit a specifici User ID in this file ?
Some solution ?
fortforum.org
01-21-2022, 10:21 AM
A 12 year bump, that must be some kind of record.
Hostboard
01-26-2022, 08:50 PM
First vBulletin v4.2.5 will only work with PHP 7.1.x Running a PHP version higher than that will not work unless you have modified your files.
First vBulletin v4.2.5 will only work with PHP 7.1.x Running a PHP version higher than that will not work unless you have modified your files.
Thanks for writing and for that information (:
Did you have a another solution for my " problem " ?
yilmaz
02-06-2022, 07:26 AM
Thanks for writing and for that information (:
Did you have a another solution for my " problem " ?
PHP version 7.4.27 was fine, it worked just fine.
I added a screenshot video
https://www.youtube.com/watch?v=R-qJ9EPE0yQ
PHP version 7.4.27 was fine, it worked just fine.
I added a screenshot video
https://www.youtube.com/watch?v=R-qJ9EPE0yQ
But , it doesn't work in your video either ...
... Or did I misunderstand something?
Can someone help here ? (:
@Hostboard
@yimaz
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.