View Full Version : [VB3] Remove Physical delete for non-admin


Barry
25th July 2003, 06:55 AM
Author: Barry
Description: Removes the ability for non-administrators to Physically Remove Threads or Posts. Supermods & Mods will still retain the ability to delete threads by Leave "Deleted" Message.
Complexity : Very Easy
Install time : 2 minutes
Screenshot: No screenshot necessary.

It really annoyed me that my mods were physically deleting threads and posts when it was not necessary. In my mind there are very few reasons why a post should be physically removed and I can personally handle those cases.

Floris
25th July 2003, 02:18 PM
You do know this is a usergroup setting and you can add this by default, per usergroup?

I have it setup that only administrators can physically delete posts/threads, and super mods and mods can only delete it.

Barry
25th July 2003, 06:04 PM
You do know this is a usergroup setting and you can add this by default, per usergroup?

I have it setup that only administrators can physically delete posts/threads, and super mods and mods can only delete it.

If that is the case you can go ahead and delete this, I couldnt find an option to do this and it didnt look as if there was an option looking at the code.

All I see in usergroup managers is:
1. Can See Deletion Notices
2. Can Delete Own Posts
3. Can Delete Own Threads

Floris
25th July 2003, 06:18 PM
I know it is possible :)

Now we just have to find it :P

Barry
25th July 2003, 06:28 PM
I may be a retard, but Ive looked and looked for this option and can not find it...

Floris
26th July 2003, 12:12 PM
I am still sure that I saw it, I can't find it too anymore. I contacted Scott, hopefully he could reply to the question.

Mephisteus
26th July 2003, 02:32 PM
I also can't find it, perhaps you had a vision that it was in vB3 beta 5 :yawn:

Barry
26th July 2003, 07:13 PM
Well either way this template mod does work... :)

Barry
27th July 2003, 08:15 AM
OK this has been bothering me for a while as I could have sworn I saw this option at one time as well. I started digging through the code and found a line in moderator.php that lead me to believe this option existed. After working my way through the code I found it.

The option is under Forum Manager/Add Moderator. It appears to only work if the Moderator is listed to moderate a forum thus will not work on SuperMods unless you have them added to each forum. This really does no good for me as I want my supermods to have mod access to all forums, but I do not want them to be able to physically remove threads/posts. I also do not want my supermods listed on every forum (I have 11 supermods).

Thus the template mod does come in handy... :) The vB developers really need to consider making this a usergroup option instead of a forum/moderator option.

I hope this clears things up for everyone.

Floris
27th July 2003, 01:58 PM
Scott told me it was under Moderator Permissions where you can get after going to the Forum Manager and do what you say.

Maybe someone can suggest this as a usergroup option for the future ? Much easier :)

Barry
27th July 2003, 06:12 PM
Scott told me it was under Moderator Permissions where you can get after going to the Forum Manager and do what you say.

Maybe someone can suggest this as a usergroup option for the future ? Much easier :)
I guess you missed my post right above yours... :)

Buczilla
20th September 2003, 05:00 AM
Thanks alot! Nice hack :)

Joshua Clinard
29th September 2003, 10:18 AM
I'll have to install this one as soon as I can see the attatchments.

Floris
29th September 2003, 01:48 PM
Users who have more then 2 posts, will be able to see the attachments. Maybe not directly after 2 posts, but surely within the hour.

monstergamer
22nd November 2003, 09:21 AM
thanx man i really wanted this :)

monstergamer
17th December 2003, 09:51 PM
thanx man i really wanted this :)how could i do this for gamma now

JoergZ
17th December 2003, 10:34 PM
Go to AdminCP -> Forums & Moderators -> Forummanager and go to the Forum, where you want to edit the rights of the moderator.

Then select the moderator you want to edit, and then you can set this option as you can see on this screenshot.

Jörg

monstergamer
17th December 2003, 11:19 PM
Go to AdminCP -> Forums & Moderators -> Forummanager and go to the Forum, where you want to edit the rights of the moderator.

Then select the moderator you want to edit, and then you can set this option as you can see on this screenshot.

Jörgwhat about supermods

JoergZ
17th December 2003, 11:37 PM
what about supermodsFor a "quick and dirty" solution, you can do the following:

Edit the template editpost like this:


Find

<if condition="$show['physicaldeleteoption']">

replace it with

<if condition="is_member_of($bbuserinfo[usergroupid],6)">

Now only Administrators have the right to delete physically.

And now don't tell me, that you want to denie super-mods the physical deleting, but allow it to "normal" moderators. :D

If you want to do that, or only want to denie it for some super-mods, you must change the condition to your need.

Of course the only clean solution would be to add a hidden field to userprofile, that contains the permission. The content of this field must be used to show the option or not.

Jörg

monstergamer
18th December 2003, 02:04 AM
no i dont want any mod to have that option, just admins
but it did not work, Supermods still have the option

JoergZ
18th December 2003, 03:13 AM
O.k., sorry, I did not tested it.. You know.. too little time :) And I did not know the new way of deleting postings yet..

Here we go:

template threadadmin_deleteposts and threadadmin_deletethread

find

<if condition="$show['harddelete']">

replace it with

<if condition="is_member_of($bbuserinfo[usergroupid],6)">


Of course it is nicer not to replace it, but add your conditon after the original-condition. But then don't forget to put an additional </if> !!

I think these are now all places, that you have to modify.


Jörg


Just found another template where show[hard...] is used: "threadadmin_managepost" But did not found the place, where this template is used.

monstergamer
18th December 2003, 04:26 AM
thanx that worked wonderfuly :D