![]() |
Unalterable Admins Can Edit Themselves
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.
/*===================================*\ || Unalterable Admins Can Edit Themselves || || Author : Anton Kanevsky || Co-Author(s) : Andreas || Works on : vBulletin 3.5.x - 3.8.x || Released : Jan 31, 2009 || || Time required to install: 30 seconds || Difficulty: easy \*===================================*/ DESCRIPTION Allows unalterable administrators to modify their own accounts (with the exception of the password, usergroup and membergroups) via admincp. STATISTICS Products to Install: 1 VERSION HISTORY 1.0.5 [+] Ported to vBulletin 3.7.x - 3.8.x. 1.0.4 [+] The modification is now compatible with vBulletin 3.6.4 - a plugin code change was required due to changed format of CVS_REVISION constant. [+] It is no more possible for an uneditable admin to modify the usergroup(s) he or she belongs to. 1.0.3 [+] The modification is now officially compatible with vBulletin 3.6.0 and above. [+] The modification is now a product rather than a plugin, and it supports version check. 1.0.2 [+] Added restriction to prevent code from executing anywhere but within user.php. [+] Added restriction to prevent alteration of password for unalterable administrators. 1.0.1 This is now a plugin instead of a code hack. Cheers to Andreas. 1.0.0 First Public Release The installation manual is contained within the attached file. IF YOU LIKE MY HACK, PLEASE CLICK INSTALL |
Thank you :)
|
Nice idea. I hate the fact undeletable users can't be edited. Though I prefer just to have one super admin so it doesn't really matter for me.
|
The code in the hack makes sense but for some reason doesn't work. I might have done something wrong though.
|
Did you find and replace both instances?
|
Yes, I still get this message
Sorry, this user is protected from being altered in the config.php file by the $config['SpecialUsers']['undeletableusers'] variable. |
Hmm.. Hold on, I'll take a look at what the problem might be...
|
I can't figure out why it doesn't work =/
|
Give me a minute please...
|
Sure thing, I've just been going through the code to see if there was anything causing a problem, but I couldn't find anything, then again I don't know much about php.. lol
|
Sorry for the delay, didn't have time to look.
I am uploading the fixed version. It is just a matter of an extra $ sign lol. EDIT: A fixed and tested version uploaded. :) |
great idea, thanks.
|
You are welcome, but don't forget to click install -.- :)
|
Cute hack, thanks. ^_^
|
Yay works fine now ^^
Thanks a ton! |
Nice Code Hack.
How about a Plugin? ;) Hook: admin_global PHP Code:
|
That's much better as a plugin so thankies!!
|
Quote:
I will set it up as a plugin. |
Done, converted to a plugin.
Except in mine, it's $_POST['do'] == 'update' |
Well what's the difference? :P
|
The difference is, in Kirby's version you could delete the admin (but not edit him). In mine, you can edit, but not delete.
|
Mod, move it to plugins please thanks.
|
Awesome plugin!
*Clicks install It was a real pain having to edit the config file to modify my settings! Not any more! |
Thank you! I couldn't edit myself (I set myself as unalterable for security reasons) and had to keep FTPing new config.phps every time I changed something...
|
Quote:
As those are the only actions in user.php that check undeletableusers it should be the same? |
Quote:
|
Yeah, I didn't want to check for update as this is used by almost all Scripts.
Maybe PHP Code:
|
Quote:
|
I was too lazy to check other Scripts ^.^
If it's only being used in this one, great. |
Getting a "Invalid File Specified" on trying to import :(
|
Then specify a valid file :)
|
Thankyouthankyouthankyou! THANK YOU!
*Click install* EDIT: -_- It doesn't work on RC2. Drat. Or I've done something stupid. |
It's for RC1... Didn't test on RC2.
|
I'm running on RC2 and it works fine. ;)
|
Quote:
And just exactly where would I find a valid file.... I downloaded it from here... ??? |
Quote:
|
Quote:
|
Quote:
Ok... this is getting silly.... This what I do... 1. Download you zip and unzip it... 2. In the Plugin System/Manage Products I click [Add/Import Product] 3. I then click BROWSE and point the file selection box to your "plg_uacet.xml" file. 4. I click Import. The screen changes to the "Importing Product, Please Wait..." page. I then get 2 sets of dots "[::]" and an error box... "Invalid File Specified" and a "Go Back" button... So, you tell me what I'm doing wrong?? |
Try removing the text from the textbox that allows you to upload a file from the server.
|
Quote:
Nope.. same thing... I've even tried uping directly to the server and using that damn box ya telling me empty.. :( I would so like to use this plugin... :( BR :( |
All times are GMT. The time now is 04:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|