PDA

View Full Version : Disable Hard Thread/Post Deletions


Alan @ CIT
04 Nov 2005, 21:08
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
04 Nov 2005, 21:37
Thank you! :)

Yorixz
06 Nov 2005, 16:51
Thanks, I was looking for something like this.

dcpaq2xx
19 Nov 2005, 05:31
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
19 Nov 2005, 10:59
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
19 Nov 2005, 11:38
workin on vB 3.5.1 ?

dcpaq2xx
19 Nov 2005, 17:29
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
20 Nov 2005, 22:48
I haven't tested it on 3.5.1, but there is no reason it wouldn't work.

dcpaq2xx
20 Nov 2005, 23:02
Ok thanks Alan.

Doug

HabboForum
27 Nov 2005, 16:37
This does not appear to work on 3.5.1

Alan @ CIT
02 Dec 2005, 19:09
Habboforum: Just tested it on 3.5.1 and it appears to work fine.

Alan @ CIT
02 Dec 2005, 20:53
Version 1.1 has been released. This now hides the Hard Delete option as well.

Any problems, let me know.

Hexemer
02 Dec 2005, 23:10
Version 1.1 has been released. This now hides the Hard Delete option as well.

Any problems, let me know.

Nice work. Thanks :)

lionslair
03 Dec 2005, 00:07
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
03 Dec 2005, 09:31
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
26 Dec 2005, 14:31
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=-
26 Dec 2005, 15:45
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
28 Dec 2005, 19:19
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
29 Dec 2005, 07:05
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
08 Jan 2006, 20:44
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
11 Feb 2006, 01:23
Installed, it works exactly as in the description, inline & thread tools only. Smod still can physical delete through Quick Edit & edit in Advanced mode

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
08 Mar 2006, 10:24
How would you make it to disable for ALL users (including admin) ?

RS_Jelle
18 Mar 2006, 23:10
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
18 Mar 2006, 23:51
As physical delete can already be disabled for moderators I suggest this plugin:

Hook Location: can_moderate_supermod

$return = ($do != 'canremoveposts' AND $do != 'canmassprune');


This disables physical delete for inlinemod, thread tools and mass prune in modcp for supermods.

ConqSoft
30 Mar 2006, 18:36
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
06 Apr 2006, 03:15
JUST what i needed!

Hornstar
06 Apr 2006, 12:20
Will admins still be able to hard delete? Because this is what I want but i still want admins to have the option.

nasser71
19 Apr 2006, 14:05
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
10 May 2006, 12:17
As physical delete can already be disabled for moderators I suggest this plugin:

Hook Location: can_moderate_supermod

$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
11 May 2006, 08:01
As physical delete can already be disabled for moderators I suggest this plugin:

Hook Location: can_moderate_supermod

$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
14 May 2006, 20:39
If anyones still using this hack, I'd recommend Andreas' method - a lot cleaner and simpler than mine :)

Thanks,
Alan.

Boofo
15 May 2006, 01:39
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
21 May 2006, 12:48
this one i guess:
http://www.vbulletin.org/forum/showpost.php?p=732678&postcount=8

No, post #24:
http://www.vbulletin.org/forum/showpost.php?p=928672&postcount=24

It disables physical deletion for admins, too

Yes, already known :)

Boofo
21 May 2006, 13:41
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
21 May 2006, 13:42
this one i guess:
http://www.vbulletin.org/forum/showpost.php?p=732678&postcount=8

No, post #24:
http://www.vbulletin.org/forum/showpost.php?p=928672&postcount=24

It disables physical deletion for admins, too

Yes, already known :)

Thanks, but that confuses me even more. LOL

NeutralizeR
27 May 2006, 14:17
Thanks, but that confuses me even more. LOL
Did you able to find a way to exclude admins?

Boofo
27 May 2006, 14:29
Nope, haven't figured out how to do any of it yet. :(

NeutralizeR
30 Jun 2006, 18:55
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
30 Sep 2006, 15:17
As physical delete can already be disabled for moderators I suggest this plugin:

Hook Location: can_moderate_supermod

$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
02 Oct 2006, 21:53
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.

MusicMan
17 Oct 2006, 21:38
Have you considered upgrading to 3.6.X? The improved permissions system for Moderators/Administrators has the ability to stop them from doing this.
Could you point me to an option which actually disables supermods from hard deleting, mass pruning, etc... like Andreas's plugin was designed to do in 3.5.x? I'm seeing absolutely no options for supermod permissions like you're describing.

Also, since the hook location can_moderate_supermod is no longer present in 3.6.x, does anyone else have a way to make this work?

I'm kinda disappointed this kind of supermod permissions are not a default feature. :(

Jeff321
01 Feb 2007, 00:57
Have you considered upgrading to 3.6.X? The improved permissions system for Moderators/Administrators has the ability to stop them from doing this.

Where is this system at? I can't find options to do this.

HabboForum
01 Feb 2007, 03:10
Where is this system at? I can't find options to do this.

AdminCP > Forums and Moderators > Show All Moderators > [Edit Permissions]

Hope that helps. :)