PDA

View Full Version : Disable Hard Thread/Post Deletions


Alan @ CIT
11-03-2005, 10:00 PM
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
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
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

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

$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
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
05-11-2006, 07:01 AM
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
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
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.php?p=732678&postcount=8

No, post #24:
https://vborg.vbsupport.ru/showpost.php?p=928672&postcount=24

It disables physical deletion for admins, too

Yes, already known :)

Boofo
05-21-2006, 12:41 PM
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
this one i guess:
https://vborg.vbsupport.ru/showpost.php?p=732678&postcount=8

No, post #24:
https://vborg.vbsupport.ru/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
05-27-2006, 01:17 PM
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
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
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
10-02-2006, 08:53 PM
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
10-17-2006, 08:38 PM
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-31-2007, 11:57 PM
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
02-01-2007, 02:10 AM
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. :)