Normal Admin Can't Delete User
at 1st, i am sorry if i opened this thread to wrong category
at 2nd, i am sorry bout my English =) at my forum, an admin deleted a user account without our permission after deletion, there are a lot of db errors so, i ve to find a solve for this problem and i found =) Superadmins (from config.php file) can delete users but, normal admins can NOT delete users ..::Upgrade Instructions::.. 1-) Download new user.php file from ur license account 2-) Follow install instructions ..::Install Instructions::.. 1-) download and open admincp/user.php file 2-a) find PHP Code:
print_cp_header($vbphrase['user_manager']);
PHP Code:
if ($_REQUEST['do'] == 'remove' AND !in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s', $vbulletin->config['SpecialUsers']['superadministrators'], -1, PREG_SPLIT_NO_EMPTY))){
PHP Code:
if ($_REQUEST['do'] == 'remove')
PHP Code:
if (!in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s', $vbulletin->config['SpecialUsers']['superadministrators'], -1, PREG_SPLIT_NO_EMPTY)))
PHP Code:
// ###################### Start Kill #######################
PHP Code:
}
Notice: u can edit sentences manuel which re highlighted at ss Turkish Support ~ Türkçe Destek http://www.vbulletin-turko.com/showthread.php/2285-Adminlerinizin-%C3%9Cye-Silmesini-Engelleyin regards... Known Bugs White Page Problem --> Fixed at version 1.10 Version History 1.00 1.10 --> White Page is Fixed 1.20 --> Changed Scene, Screenshot added Download No files for download. Addons Screenshots |