hi... i am using phpbb version 3.0.4
do i have to upgrade it to phpbb version 3.0.5 to use this mod ?
this won't workAdding a Chat Moderator Group
This will give a specific group the ability to edit and delete any messages in the chatbox, similar to how Admins have the ability by default. The first thing you will need to do is have a group ready to add these permissions to. You can either use a current group you already have, or create a new group if need be, the title of the group does not matter. Next you will need the groups id number. There are a number of ways to get it, one way is to go into your User Control Panel -> Usergroups, then put your mouse over the name of the desired group (don't click), look at the address that the link will take you to, the very last number (after the = sign) is that groups id. Remember that number. For example, if the address is http://runicportal.com/memberlist.php?mode=group&g=7, that groups id number is 7.
Note: This is based off of MphUnits Chat Permissions mod.
Open mchat.php
As always, make a backup before you proceed.
Find:
Code: Select all
$mchat_edit = (($mchat_allow_admin_edit && $auth->acl_get('a_')) || ($mchat_allow_moder_edit && $auth->acl_get('m_'))) ? true : false;
Add after, in a new blank line:
Code: Select all
if($user->data['group_id'] == 7)
{
$mchat_edit = true;
}
Note: Change the 7 to the id number of the group you are giving permissions to.
Find:
Code: Select all
$mchat_del = (($mchat_allow_admin_del && $auth->acl_get('a_')) || ($mchat_allow_moder_del && $auth->acl_get('m_'))) ? true : false;
Add after, on a new blank line:
Code: Select all
if($user->data['group_id'] == 7)
{
$mchat_del = true;
}
Note: Change the 7 to the id number of the group you are giving permissions to.
I've it working fine on a 3.0.0 board that I was using for testing, for some odd reason it didnt work right on a 3.0.5 but both forums were on different servers. If I were you, try it on a test forum that uses the same server as the site you want it on.knight.rider69 wrote:hi... i am using phpbb version 3.0.4
do i have to upgrade it to phpbb version 3.0.5 to use this mod ?