another way of doing this could be:
forum/admin/config.php
add at the bottom:
Code:
// user can edit admins
$editadmin='1';
you can add as many users you want there...
forum/admin/user.php
find:
Code:
adminlog(iif($userid!=0,"user id = $userid",""));
below this add:
find:
Code:
if ($HTTP_POST_VARS['action']=="doupdate") {
replace it with:
Code:
if ($HTTP_POST_VARS['action']=="doupdate" && checklogperms($editadmin,1,"<p>You are not allowed to edit this user.</p>")) {
let me know what you think.