Allow undeleteable user to modify / edit / delete themself
This modification is in the archives.
Requested here: index.php?t=62395
This hack allows whoever is in the $undeletableusers variable (users who cannot be edited/deleted) to be able to edit/delete themselves, meaning that only the protected user can modify themselves but no one else can modify/delete them. Instructions Open admincp/moderater.php and find PHP Code:
if (!in_array($userinfo['userid'], $noalter))
PHP Code:
if (!in_array($userinfo['userid'], $noalter) or $bbuserinfo['userid'] != $userinfo['userid'])
PHP Code:
if (in_array($userid, $nodelete))
PHP Code:
if (in_array($userid, $nodelete) and $bbuserinfo['userid'] != $userid)
PHP Code:
if (!empty($noalter[0]) AND in_array($userid, $noalter))
PHP Code:
if (!empty($noalter[0]) AND in_array($userid, $noalter) and $bbuserinfo[userid] != $userid)
PHP Code:
if (!empty($noalter[0]) AND (in_array($sourceinfo['userid'], $noalter) OR in_array($destinfo['userid'], $noalter)))
PHP Code:
if (!empty($noalter[0]) AND (in_array($sourceinfo['userid'], $noalter) OR in_array($destinfo['userid'], $noalter)) and $bbuserinfo[userid] != $sourceinfo[userid] and $bbuserinfo[userid] != $destinfo[userid])
PHP Code:
if (!empty($noalter[0]) AND in_array($userid, $noalter))
PHP Code:
if (!empty($noalter[0]) AND in_array($userid, $noalter) and $bbuserinfo[userid] != $userid)
Download This modification is archived and cannot be downloaded. |
Similar Mods
Moderators Functions Hard Delete (physical delete) By User Group | vBulletin 3.7 Add-ons |