Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Normal Admin Can't Delete User Details »»
Normal Admin Can't Delete User
Version: 1.20, by TilkiBey TilkiBey is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.0.x Rating:
Released: 08-17-2010 Last Update: Never Installs: 19
Code Changes  
No support by the author.

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']); 
2-b) replace with
PHP Code:
if ($_REQUEST['do'] == 'remove' AND !in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s'$vbulletin->config['SpecialUsers']['superadministrators'], -1PREG_SPLIT_NO_EMPTY))){
    
print_cp_header('Access Denied');
}
else{
    
print_cp_header($vbphrase['user_manager']);

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'$vbulletin->config['SpecialUsers']['superadministrators'], -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


Turkish Support ~ T?rk?e Destek
http://www.vbulletin-turko.com/showt...ini-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

Screenshots

File Type: jpg ss.jpg (108.4 KB, 0 views)

Show Your Support

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

Comments
  #12  
Old 08-29-2010, 08:17 PM
TilkiBey's Avatar
TilkiBey TilkiBey is offline
 
Join Date: Jul 2008
Location: Konya, TR
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx all :up:
Reply With Quote
  #13  
Old 09-01-2010, 01:59 AM
elderpooter elderpooter is offline
 
Join Date: Sep 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks a lot
Reply With Quote
  #14  
Old 09-01-2010, 03:57 PM
vmwareguy vmwareguy is offline
 
Join Date: Aug 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed this mod on vb 4.0.6 Patch 1 but now I cannot delete any users.

Normal admins now cannot delete users which is excellent but when I, as the super admin, try to delete I just get redirected to a blank page and the deletion doesn't complete.

I have looked at the code but I can't see any reason why this is occurring.

Any help would be greatly appreciated.

-Mike
Reply With Quote
  #15  
Old 09-01-2010, 04:19 PM
daveaite's Avatar
daveaite daveaite is offline
 
Join Date: Jul 2009
Location: Florida
Posts: 1,890
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
Just turn off being able to edit users in the admin permissions for each admin.
Exactly, you prob dont need a mod for this. Either way, some admins might not know how to do that xD
Reply With Quote
  #16  
Old 09-13-2010, 06:20 AM
Lethaeus's Avatar
Lethaeus Lethaeus is offline
 
Join Date: Sep 2010
Location: Turkey
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks bro
Reply With Quote
  #17  
Old 09-14-2010, 06:57 AM
TilkiBey's Avatar
TilkiBey TilkiBey is offline
 
Join Date: Jul 2008
Location: Konya, TR
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vmwareguy View Post
I have installed this mod on vb 4.0.6 Patch 1 but now I cannot delete any users.

Normal admins now cannot delete users which is excellent but when I, as the super admin, try to delete I just get redirected to a blank page and the deletion doesn't complete.

I have looked at the code but I can't see any reason why this is occurring.

Any help would be greatly appreciated.

-Mike
thx for reporting and i'm soryy bout i am late, bout bairam =)

bug is fixed and modification is updated 1.10
so, u can use more safely now =)

regards..

updated: version 1.20, u can look 1st post
Reply With Quote
  #18  
Old 09-27-2010, 08:41 PM
Lethaeus's Avatar
Lethaeus Lethaeus is offline
 
Join Date: Sep 2010
Location: Turkey
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1.20 thanks
Reply With Quote
  #19  
Old 09-28-2010, 01:57 PM
vmwareguy vmwareguy is offline
 
Join Date: Aug 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much! I really do appreciate this modification as the admin I put it in place for did end up causing problems and we had to let him go. He never hit this but I was more comfortable having it there!!

-Mike
Reply With Quote
  #20  
Old 09-28-2010, 07:35 PM
TilkiBey's Avatar
TilkiBey TilkiBey is offline
 
Join Date: Jul 2008
Location: Konya, TR
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lethaeus View Post
1.20 thanks
thx too

Quote:
Originally Posted by vmwareguy View Post
Thank you very much! I really do appreciate this modification as the admin I put it in place for did end up causing problems and we had to let him go. He never hit this but I was more comfortable having it there!!

-Mike
i am very happy if this modif. helped to u ^^
regards...
Reply With Quote
  #21  
Old 11-17-2010, 08:14 AM
sweetpotato sweetpotato is offline
 
Join Date: Oct 2010
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for this Mod. It's very useful for my site.
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 09:42 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.04894 seconds
  • Memory Usage 2,341KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete