Back to vBulletin 3.0 Add-Ons

Allow undeleteable user to modify / edit / delete themself
Mod Version: 1.00, by Gary King

This modification is in the archives.
vB Version: 3.0.0 Rating: (0 vote - 0 average) Installs: 19
Released: 12 Mar 2004 Last Update: Never Downloads: 2
Not Supported  

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)) 
Replace with
PHP Code:
            if (!in_array($userinfo['userid'], $noalter) or $bbuserinfo['userid'] != $userinfo['userid']) 
Open admincp/user.php and find
PHP Code:
    if (in_array($userid$nodelete)) 
Replace with
PHP Code:
    if (in_array($userid$nodelete) and $bbuserinfo['userid'] != $userid
Find
PHP Code:
    if (!empty($noalter[0]) AND in_array($userid$noalter)) 
Replace with
PHP Code:
    if (!empty($noalter[0]) AND in_array($userid$noalter) and $bbuserinfo[userid] != $userid
Open admincp/usertools.php and find
PHP Code:
    if (!empty($noalter[0]) AND (in_array($sourceinfo['userid'], $noalter) OR in_array($destinfo['userid'], $noalter))) 
Replace with
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]) 
Open modcp/user.php and find ALL SIX (6) instances of the following code
PHP Code:
    if (!empty($noalter[0]) AND in_array($userid$noalter)) 
Replace ALL 6 INSTANCES WITH
PHP Code:
    if (!empty($noalter[0]) AND in_array($userid$noalter) and $bbuserinfo[userid] != $userid
There, all done!

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

vblts.ru supports vBulletin®, 2022-2024