Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Disable Hard Thread/Post Deletions Details »»
Disable Hard Thread/Post Deletions
Version: 1.1, by Alan @ CIT Alan @ CIT is offline
Developer Last Online: Apr 2012 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 11-03-2005 Last Update: 12-01-2005 Installs: 56
Uses Plugins
 
No support by the author.

This little product disables hard deletes for everyone (ie, Supermods) but Admins.

Install
Just install the attached product XML as normal. It adds 3 plugins.

Note
This doesn't do anything to the Prune functions in the ModCP, so if the user has access to that, then it's likely they can still hard delete threads and posts. This product only stops them doing it using inline moderation, and the thread tools menu.

Important: Unfortunately, my leased vBulletin licence has now expired, and I won't be renewing it until September which means I will be unable to reply to this thread, or update this mod until then. I'm hopeful that the great vBulletin.org community will step in to answer any questions in my absence though See you all in early September!

Enjoy!

Version 1.1: This now hides the Hard Delete option as well.

Show Your Support

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

Comments
  #22  
Old 02-11-2006, 12:23 AM
vampireus vampireus is offline
 
Join Date: Jan 2005
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, it works exactly as in the description, inline & thread tools only. Smod still can physical delete through Quick Edit & edit in Advanced mode

Quote:
Originally Posted by ConqSoft
Installed this. Seems to work for the most part, but SuperMods still have access to (and can sucessfully use) the Physical Delete option when QuickEditing a post.

EDIT: They also get the option, and can use it, when editing a post in Advanced mode.
Reply With Quote
  #23  
Old 03-08-2006, 09:24 AM
graham_w graham_w is offline
 
Join Date: Apr 2005
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would you make it to disable for ALL users (including admin) ?
Reply With Quote
  #24  
Old 03-18-2006, 10:10 PM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I fixed the Call to undefined function: can_administer() in inlinemod.php(220) : eval()'d code on line 3 error.
You can find my fixed version in the attachment

Tomorrow I'm going to try making a version which will disable physical deletion also through quick edit and edit in advanced mode.
Reply With Quote
  #25  
Old 03-18-2006, 10:51 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As physical delete can already be disabled for moderators I suggest this plugin:

Hook Location: can_moderate_supermod
PHP Code:
$return = ($do != 'canremoveposts' AND $do != 'canmassprune'); 
This disables physical delete for inlinemod, thread tools and mass prune in modcp for supermods.
Reply With Quote
  #26  
Old 03-30-2006, 05:36 PM
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Location: Raleigh, NC
Posts: 686
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Andreas,

Can something similar be used to prevent Mass Move?

Also, I notice that your code also prevents Admins from Physically deleting. Any way to allow that?

Thanks!
Reply With Quote
  #27  
Old 04-06-2006, 02:15 AM
LeftCoastBias's Avatar
LeftCoastBias LeftCoastBias is offline
 
Join Date: Dec 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

JUST what i needed!
Reply With Quote
  #28  
Old 04-06-2006, 11:20 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will admins still be able to hard delete? Because this is what I want but i still want admins to have the option.
Reply With Quote
  #29  
Old 04-19-2006, 01:05 PM
nasser71 nasser71 is offline
 
Join Date: Jul 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed in 3.5.3

gr8 jope m8

thanks a lot

i do have on suggestion
can you make it with group permission so i can give someone a secondary group for who ever i want from the staff to give him the permission to delete
Reply With Quote
  #30  
Old 05-10-2006, 11:17 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
As physical delete can already be disabled for moderators I suggest this plugin:

Hook Location: can_moderate_supermod
PHP Code:
$return = ($do != 'canremoveposts' AND $do != 'canmassprune'); 
This disables physical delete for inlinemod, thread tools and mass prune in modcp for supermods.
Doesn't your Supermods permissions hack do this?

And where is the setting to turn off physical delete for Mods? I didn't find it.
Reply With Quote
  #31  
Old 05-11-2006, 07:01 AM
gonkowonko gonkowonko is offline
 
Join Date: Jun 2005
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
As physical delete can already be disabled for moderators I suggest this plugin:

Hook Location: can_moderate_supermod
PHP Code:
$return = ($do != 'canremoveposts' AND $do != 'canmassprune'); 
This disables physical delete for inlinemod, thread tools and mass prune in modcp for supermods.
how do i use this?? do i need to install this plugin first then edit with urs or is urs a new one??
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 05:45 AM.


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.05151 seconds
  • Memory Usage 2,311KB
  • Queries Executed 27 (?)
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
  • (3)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
  • (4)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
  • (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_postinfo_query
  • fetch_postinfo
  • 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