Log in

View Full Version : allowing new group to delete posts


Bernd
06-06-2005, 01:43 PM
How can I setup a new usergroup that is able to delete posts from other users in a certain forum?

I have created a new user group and reviewed the settings, but none list the ability to delete posts by other users. I have also checked under forum permissions.

Thanks in advance

Andreas
06-06-2005, 03:13 PM
Editing/Deleting posts made by other users is a moderator permission, therefore you will not find this as a usergroup permission.
You would have to give all users of this group moderator permissions for this forum.

To achieve this you can put the following code in template phpinclude_start:


if (is_member_of($bbuserinfo, X))
{
$imodcache[Y][$bbuserinfo['userid']]['permissions'] = 3;
}


X must be replaced with the usergroup ID, Y must be replaced with the forum id.

Bernd
06-06-2005, 04:37 PM
Cool, thanks :)