Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Remove mass-prune posts option in ModCP Details »»
Remove mass-prune posts option in ModCP
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-04-2004 Last Update: Never Installs: 16
 
No support by the author.

This is a simple hack that I have in my private forums.

I do not want my 70+ moderators mass-pruning posts, so all I did was to do this:

In modcp/index.php -

Find:

PHP Code:
    if (can_moderate(0'canmassprune'))
    {
        
$canmass true;
        
construct_nav_option($vbphrase['prune'], 'thread.php?do=prune');
    } 
Change to:

PHP Code:
    if (can_moderate(0'canmassprune'))
    {
        
$canmass true;
    } 
Simple.

Show Your Support

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

Comments
  #12  
Old 05-02-2004, 01:18 PM
HabboForum HabboForum is offline
 
Join Date: May 2003
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just removed thread.php from modCP and removed the links from the Index page.
Also stops them from mass moving.

I personally believe that this is a big security problem and Jelsoft should give admins the option to disable or enable this from the ModCP. Some boards have many mods, what if one of their accounts got stolen? The whole forum could be erased in seconds.
For this very reason, i have also removed thread.php from the AdminCP, but i have not removed the links. That way, i can simply upload it when i need to use it.
Reply With Quote
  #13  
Old 06-22-2004, 04:07 AM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Koutaru
Is there a way to make it so super mods can pass prune but not regular mods?
Thanks
Anyone? Please? :ermm:
Reply With Quote
  #14  
Old 07-10-2004, 10:43 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Erwin
Hmm ... this hack doesn't make sense at all.
One could just directly enter the URL.
Reply With Quote
  #15  
Old 07-11-2004, 11:42 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
@Erwin
Hmm ... this hack doesn't make sense at all.
One could just directly enter the URL.
The assumption is that unless the mod knows the direct url, they won't be doing that.

But you can always open thread.php in the modcp directory, and remove:

PHP Code:
// ###################### Start Prune #######################
if ($_REQUEST['do'] == 'prune')
{

    if (!
can_moderate(0'canmassprune'))
    {
        
print_stop_message('no_permission');
    }

    
print_form_header('''');
    
print_table_header($vbphrase['prune_threads_manager']);
    
print_description_row($vbphrase['pruning_many_threads_is_a_server_intensive_process']);
    
print_table_footer();

    
print_form_header('thread''dothreads');
    
construct_hidden_code('type''prune');
    
print_move_prune_rows('canmassprune');
    
print_submit_row($vbphrase['prune_threads']);

The rest of the mass prune code is intermingle with the mass move code, and would be messy to remove, which was why I didn't post about that.
Reply With Quote
  #16  
Old 12-17-2004, 06:53 PM
jilly jilly is offline
 
Join Date: Jul 2002
Location: central maryland
Posts: 461
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just what I had been needing lately
Reply With Quote
  #17  
Old 01-04-2005, 05:52 AM
jilly jilly is offline
 
Join Date: Jul 2002
Location: central maryland
Posts: 461
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you remove mass prune from supermods too?

(besides setting the option board by board)
Reply With Quote
Reply


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 06:05 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.04399 seconds
  • Memory Usage 2,274KB
  • Queries Executed 21 (?)
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
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete