Version: 1.00, by TECK
Developer Last Online: Nov 2023
Version: 2.2.x
Rating:
Released: 07-06-2002
Last Update: Never
Installs: 36
No support by the author.
This hack will let you NOT allow certain users to edit your administrator usernames properties and also other options you want to restrict access to, for example editing the templates.
I recommend you to enable only the ones you really trust, that means only yourself.
[high]UPDATE[/high]
The hack was updated. It was fixed the problem I had with editing yourself of all users.
NOTE: FireFly posted also another way of doing this, few posts below.
In my hack, I also explained how to stop other admins to edit other options, for example the templates.
You like this hack? Please click on the [high]Install[/high] button.
To download the latest version of this hack, click below:
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Originally posted by Nakkid I recommend you to enable only the ones you really trust, that means only yourself.
Lool, but you're right
Really a good idea, i won't use it, because im the only admin of my board, but ist very usefull, perhaps when i work on other boards where are more admins.
Also i know hellsatan loves this hack isn't it so?
it wont let you edit nothing, not even the passwords if you are not listed in config.php file. it works the same way as pruning the admin log (i got the idea from there). simple and secure.
if i understood correctly, in his hack you still can edit the passwords? not sure. let me know please.
also dont look as doing more, but rather as hacking in a different way.
my hacks are learning tools for myself, while experiencing with different aspects of vB.
Also, can this same idea be applied to a hack I want to see, I'd like it so only adminid 1 can edit the templates, and create new styles, etc. Is that possible?
+-----------------------------------------------+
| FILE: FORUM/admin/user.php (1 change) |
+-----------------------------------------------+
|
+-----------------------------------------------+
| 1. Find this code:
+--------------------------------------------------------------------------+
if ($HTTP_POST_VARS['action']=="doupdate") {
+--------------------------------------------------------------------------+
|
+-----------------------------------------------+
| Replace it with:
+--------------------------------------------------------------------------+
if ($HTTP_POST_VARS['action']=="doupdate" && checklogperms($caneditadmin,1,"<p>You are not allowed to edit this user.</p>")) {
+--------------------------------------------------------------------------+
Call me crazy but according to this you will not be able to edit ANY user (regular included), if you are not listed in config.php.
yep. it is. for example, if you dont want your admins to modify the templates do this...
admin/template.php
find:
Code:
if ($action=="modify") {
replace it with:
Code:
if ($action=="modify" && checklogperms($caneditadmin,1,"<p>You are not allowed to modify the templates.</p>")) {
bingo. only the $caneditadmin listed users will be able to edit from now on the templates. replace anywhere you want to block access to other admins with a similary line.