Go Back   vb.org Archive > vBulletin Modifications > vBulletin 5.x Modifications > vBulletin 5.x Products & Extensions
Normal Admin Can't Delete User vB5 Details »»
Normal Admin Can't Delete User vB5
Version: 1.0.0, by yilmaz yilmaz is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 5.5.5 Rating:
Released: 04-17-2021 Last Update: Never Installs: 6
Supported
 

Tested in vbulletin version 5.6.4 works fine

Description:
====================================
Superadmins (from "core/includes/config.php" file) can delete users
but, normal admins can NOT delete users

How to install :
====================================
Follow install instructions

1-) download and open "core/admincp/user.php" file

2-a) find

PHP Code:
print_cp_header($vbphrase['user_manager'], ''$extraheader); 
2-b) replace with

PHP Code:
if ($_REQUEST['do'] == 'remove' AND !in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s'$vb5_config['SpecialUsers']['superadmins'], -1PREG_SPLIT_NO_EMPTY))){
    
print_cp_header('Access Denied');
}
else{
    
print_cp_header($vbphrase['user_manager'], ''$extraheader);

3-a) find
PHP Code:
if ($_REQUEST['do'] == 'remove')

3-b) add BELOW

PHP Code:
if (!in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s'$vb5_config['SpecialUsers']['superadmins'], -1PREG_SPLIT_NO_EMPTY)))
{
    
print_table_start();
    
print_table_header('Access Denied');
    echo 
"<td class=\"alt1\" nowrap=\"nowrap\" align=\"center\">You Have No Permission For This Process</td>";
    
print_table_footer(2''''0);
}
else{ 
4-a) find

PHP Code:
// ###################### Start Kill ####################### 
4-b) add ABOVE

PHP Code:

5-) save and upload to ur admincp directory. that's all

Notice: u can edit sentences manuel which re highlighted at ss

How to uninstall:
========================================
It is sufficient to overwrite the "core/admincp/user.php" file on your server with its original.

-----
Mark as installed = get support.

for vB4

Screenshots

File Type: png screenshot-vb5demo.vbyilmaz.com-2021.04.19-00_38_30.png (23.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-19-2021, 10:59 AM
danielmorashov danielmorashov is offline
 
Join Date: Feb 2021
Location: Israel
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you very much
how i do the memory usage?
Reply With Quote
  #3  
Old 04-20-2021, 07:03 PM
darkboy245 darkboy245 is offline
 
Join Date: Mar 2011
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you very much, it would be great if u can do the same for editing usergroups, like normal admin cant edit the owner's usergroup but he can edit the rest.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03824 seconds
  • Memory Usage 2,238KB
  • Queries Executed 17 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (1)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete