PDA

View Full Version : Limit Delete for Super Moderators


Ryuujin
11-06-2004, 08:59 PM
Hello:

I was wondering, how can I set the permisions so SUPER MODERATORS are NOT allowed to PERMENATLY DELETE thread and posts (Soft Delete, yes. Permanent Delete, no.)

vprp
11-06-2004, 10:11 PM
I am also extremely interested in this.

Ryuujin
11-08-2004, 12:29 AM
Bump!

Link14716
11-08-2004, 12:39 AM
postings.php:
Find:$show['harddelete'] = iif(can_moderate($threadinfo['forumid'], 'canremoveposts'), true, false);
Replace with:$show['harddelete'] = iif(can_moderate($threadinfo['forumid'], 'canremoveposts') && $bbuserinfo['usergroupid'] != 5, true, false);
Find: if (!can_moderate($threadinfo['forumid'], 'canremoveposts'))
{
$type = 0;
Replace with: if (!can_moderate($threadinfo['forumid'], 'canremoveposts') || $bbuserinfo['usergroupid'] == 5)
{
$type = 0;

Suprised this isn't a default feature.

vprp
11-09-2004, 07:36 PM
Thank you very much! I will try this now.

jojo77
07-05-2005, 05:40 AM
This only prevents them from deleting threads permanently but not individual posts. Got a hack for that part?

jojo77
07-08-2005, 04:22 PM
bump

Andreas
07-08-2005, 08:17 PM
I think I've answered this (or requests for other Permissions) several times already ...
In functions.php
FIND

if ($userid == $bbuserinfo['userid'])
{
if ($bbuserinfo['permissions']['adminpermissions'] & ISMODERATOR)
{
DEVDEBUG(' USER IS A SUPER MODERATOR');
return 1;
}
}


REPLACE that with

if ($userid == $bbuserinfo['userid'])
{
if ($bbuserinfo['permissions']['adminpermissions'] & ISMODERATOR)
{
DEVDEBUG(' USER IS A SUPER MODERATOR');
if ($do != 'canremoveposts')
{
return 1;
}
else
{
return 0;
}
}
}


@Link14716
Your suggestion doesn't really work, as Supermods can be any Usergroup.

Rubal
11-22-2005, 10:32 AM
How this is possible with vB 3.5.1 ( Supermods to Just allow SoftDelete and not physical delete )

Thanks