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)

Alan @ CIT 11-03-2005 10:00 PM

Disable Hard Thread/Post Deletions
 
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! :D

Enjoy!

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

Snake 11-04-2005 08:37 PM

Thank you! :)

Yorixz 11-06-2005 03:51 PM

Thanks, I was looking for something like this.

dcpaq2xx 11-19-2005 04:31 AM

Alan,

Is it possible you could modify this plugin for us so that it will hide the hard delete option all together so they cant even see the option to check the hard delete box?

Also is it possibly you could modify this to prevent them from deleting the attachments too?

The way im looking at this, at least on my forums, is that if i am wanting to keep a post, I definetly dont want the attachments deleted as they are part of the post.

I hope you consider my request.

Thank you very much.

Doug

Alan @ CIT 11-19-2005 09:59 AM

Doug: Yep, not a problem. I won't be able to do anything until Monday I'm afraid, but I'll add the features you've requested to it then.

IrPr 11-19-2005 10:38 AM

workin on vB 3.5.1 ?

dcpaq2xx 11-19-2005 04:29 PM

Alan,

Thats excellent news! Thank you.

As Moosa mentioned, this plug I assume will work on VB 3.5.1 as well right?

Doug

Alan @ CIT 11-20-2005 09:48 PM

I haven't tested it on 3.5.1, but there is no reason it wouldn't work.

dcpaq2xx 11-20-2005 10:02 PM

Ok thanks Alan.

Doug

HabboForum 11-27-2005 03:37 PM

This does not appear to work on 3.5.1

Alan @ CIT 12-02-2005 06:09 PM

Habboforum: Just tested it on 3.5.1 and it appears to work fine.

Alan @ CIT 12-02-2005 07:53 PM

Version 1.1 has been released. This now hides the Hard Delete option as well.

Any problems, let me know.

Hexemer 12-02-2005 10:10 PM

Quote:

Originally Posted by Alan @ CIT
Version 1.1 has been released. This now hides the Hard Delete option as well.

Any problems, let me know.

Nice work. Thanks :)

lionslair 12-02-2005 11:07 PM

It does not seem to hide thew physical delete option or prevent moderators physically deleting posts. Is there any configuration for this plugin? I only want administrators to be able to physically delete posts.

I'm running 3.5.1

Alan @ CIT 12-03-2005 08:31 AM

Lionslair: Works fine on posts as far as I can tell. How are you deleting the posts? Using the inline dropdown, or another way?

Also, what is the primary usergroup, and any additional usergroups of the user you are using to test it?

Thanks,
Alan.

bashy 12-26-2005 01:31 PM

Hi

I have installed this, when i try a hard delete i get this error

Fatal error: Call to undefined function: can_administer() in /home/sites/bashys-place.com/public_html/forums/inlinemod.php(220) : eval()'d code on line 3

Please advise???

Bashy

-=Sniper=- 12-26-2005 02:45 PM

Quote:

Originally Posted by bashy
Hi

I have installed this, when i try a hard delete i get this error


Fatal error: Call to undefined function: can_administer() in /home/sites/bashys-place.com/public_html/forums/inlinemod.php(220) : eval()'d code on line 3


Please advise???

Bashy

I get the same, on making it unactive it works.

ConqSoft 12-28-2005 06:19 PM

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.

cinemablend 12-29-2005 06:05 AM

Works mostly in 3.5.2, but we find that it is also disabling inline hard delete for Admins... which is undesirable.

Any fix for this?

Alan @ CIT 01-08-2006 07:44 PM

Hi all,

I have now returned from my holidays, hope you all had a good <insert-seasonal-holiday-name-here> :)

I'll start answering any questions, fixing any bugs, and adding any new features next week, but I've got a lot of hacks to update, so it might not be immediate :)

Thanks,
Alan.

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

Alan @ CIT 05-14-2006 07:39 PM

If anyones still using this hack, I'd recommend Andreas' method - a lot cleaner and simpler than mine :)

Thanks,
Alan.

Boofo 05-15-2006 12:39 AM

Quote:

Originally Posted by Alan @ CIT
If anyones still using this hack, I'd recommend Andreas' method - a lot cleaner and simpler than mine :)

Thanks,
Alan.

Which hack is that, sir? ;)

NeutralizeR 05-21-2006 11:48 AM

this one i guess:
https://vborg.vbsupport.ru/showpost....78&postcount=8

No, post #24:
https://vborg.vbsupport.ru/showpost....2&postcount=24

It disables physical deletion for admins, too

Yes, already known :)

Boofo 05-21-2006 12:41 PM

Quote:

Originally Posted by Alan @ CIT
If anyones still using this hack, I'd recommend Andreas' method - a lot cleaner and simpler than mine :)

Thanks,
Alan.

Isn't his version a file edit?

And it is already disabled by default for Mods without any hacks added?

Boofo 05-21-2006 12:42 PM

Quote:

Originally Posted by NeutralizeR
this one i guess:
https://vborg.vbsupport.ru/showpost....78&postcount=8

No, post #24:
https://vborg.vbsupport.ru/showpost....2&postcount=24

It disables physical deletion for admins, too

Yes, already known :)

Thanks, but that confuses me even more. LOL

NeutralizeR 05-27-2006 01:17 PM

Quote:

Originally Posted by Boofo
Thanks, but that confuses me even more. LOL

Did you able to find a way to exclude admins?

Boofo 05-27-2006 01:29 PM

Nope, haven't figured out how to do any of it yet. :(

NeutralizeR 06-30-2006 05:55 PM

Quote:

Originally Posted by Boofo
Nope, haven't figured out how to do any of it yet. :(

Just upgrade to vb 3.6 if you haven't done it yet :P

Baraja 09-30-2006 02:17 PM

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.

I would like to implement this to my 3.5.x vBulletin board, but I don't know how to do it. How do I install this plugin? May anyone help me? :)

Thanks in advance :nervous:

HabboForum 10-02-2006 08:53 PM

Quote:

Originally Posted by Baraja
I would like to implement this to my 3.5.x vBulletin board, but I don't know how to do it. How do I install this plugin? May anyone help me? :)

Thanks in advance :nervous:

Have you considered upgrading to 3.6.X? The improved permissions system for Moderators/Administrators has the ability to stop them from doing this.


All times are GMT. The time now is 06:25 PM.

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.01394 seconds
  • Memory Usage 1,827KB
  • 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
  • (4)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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