vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Disable Hard Thread/Post Deletions (https://vborg.vbsupport.ru/showthread.php?t=100100)

vampireus 02-11-2006 12:23 AM

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.


graham_w 03-08-2006 09:24 AM

How would you make it to disable for ALL users (including admin) ?

RS_Jelle 03-18-2006 10:10 PM

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.

Andreas 03-18-2006 10:51 PM

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.

ConqSoft 03-30-2006 05:36 PM

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!

LeftCoastBias 04-06-2006 02:15 AM

JUST what i needed!

Hornstar 04-06-2006 11:20 AM

Will admins still be able to hard delete? Because this is what I want but i still want admins to have the option.

nasser71 04-19-2006 01:05 PM

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

Boofo 05-10-2006 11:17 AM

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. ;)

gonkowonko 05-11-2006 07:01 AM

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??


All times are GMT. The time now is 05:47 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01104 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete