View Full Version : Only Original Admin can Remove Users?
Chris M
06-09-2002, 05:13 PM
I am more concerned with their Ability to remove Admins, but Moderators and Users would like to be protected too...
Can someone either point me towards a Hack, or write a hack that will prevent all the Admins except for the Original one to remove other Admins?
Also...If you could do that, could you tell me how to exempt certain Users from this? By this, I mean enable ALL Admins to remove certain users (people we suspect of being troublemakers), but not others?
Thanks...
Satan
Chris M
06-09-2002, 06:33 PM
Anyone?
Satan
i would like to see this aswell
Chen? :)
Logician
06-10-2002, 07:46 AM
1- You are on the wrong track. I really dont understand why you guys need necessitity to grant someone Site Admin priviliges if you have doubts that he can delete your account? :rolleyes: Simply make them Super Moderators and you'll be perfectly fine.
2- However I'm pretty sure you wont listen to me and still ask for the hack so here you go lol: :p
edit admin/user.php:
find:
if ($HTTP_POST_VARS['action']=="kill") {
after that add:
if ($userid==1) { show_nopermission(); exit;}
Now no one can delete the account of user 1.
But I still INSIST you really consider not to make anyone Site Admin. Preventing them not deleting your account is pretty meaningless when he is able to:
change your password
delete all your messages
change your user group and make you a banned user
delete all your templates in your board
delete all other accounts in your board
make all users site admins
thousands of other bad things he can do in your admin cp
And to preventing them from doing all these is only and easily achivable if you remove their Site Admin priviliges ;)
Chris M
06-10-2002, 09:10 AM
Well...
I can sort out the following :
1.) change your password
2.) delete all your messages (he cant without your password)
3.) change your user group and make you a banned user
Those 3 would be covered by my hack...
I only wanted to remove the chance of them deleting my account via the "View all Users" list...They cannot access my profile if I dont want them to...
About the templates and other stuff - Of course, you dont allow users who you dont trust, but it is better to be safe than sorry...
BTW : Thanks:)
Satan
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.