Adding a new group in Team Block - v.2.0.0b1
Posted: 4. April 2012 21:44
To add a new group, you will need edit the files:
- /styles/your_style/template/portal/modulesleaders_side.html
- root/portal/modules/portal_leaders.php
- root/language/en/mods/portal/portal_leaders_module.php
- root/language/en/common.php
Let's go add a new group called "Colaborators", but first you have to create this group in your Forum, from ACP.
Basically is:
1- /styles/your_style/template/portal/modulesleaders_side.html:
Find the line...... and Add Before in new line:
2- root/portal/modules/portal_leaders.php:
Find the line...... and Replace with:
Find the lines...... and Add After, in new lines:
3- root/language/en/portal_leaders_module.php:
Find the line...... and Add After, in new line:
Find the line...... and on line, Replace the text "admins/mods" for "admins/mods/colaborators".
4- root/language/en/common.php:
Find the line...... and Add after, in new line:
Find the line...... and Add after, in new line:
[].
Source: http://www.suportephpbb.com.br
- /styles/your_style/template/portal/modulesleaders_side.html
- root/portal/modules/portal_leaders.php
- root/language/en/mods/portal/portal_leaders_module.php
- root/language/en/common.php
Let's go add a new group called "Colaborators", but first you have to create this group in your Forum, from ACP.
Basically is:
1- /styles/your_style/template/portal/modulesleaders_side.html:
Find the line...
Code: Select all
{$LR_BLOCK_F_L}{$LR_BLOCK_F_R}
Code: Select all
<br style="clear:both" />
<strong>{L_COLABORATORS}</strong><br />
<!-- BEGIN col -->
<span style="float:left;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="float:left; padding-left:5px; padding-top:2px;"><strong>{col.USERNAME_FULL}</strong></span><br style="clear:both" />
<!-- BEGINELSE -->
{L_NO_COLABORATORS_P}
<!-- END col -->
Find the line...
Code: Select all
'WHERE' => 'u.group_id = g.group_id AND ' . $db->sql_in_set('g.group_name', array('ADMINISTRATORS', 'GLOBAL_MODERATORS')),
Code: Select all
'WHERE' => 'u.group_id = g.group_id AND ' . $db->sql_in_set('g.group_name', array('ADMINISTRATORS', 'GLOBAL_MODERATORS', 'Colaborators')),
Code: Select all
elseif ($row['group_name'] == 'GLOBAL_MODERATORS')
{
$which_row = 'mod';
}
Code: Select all
elseif ($row['group_name'] == 'Colaborators')
{
$which_row = 'col';
}
Find the line...
Code: Select all
'NO_MODERATORS_P' => 'No Moderators',
Code: Select all
'NO_COLABORATORS_P' => 'No Colaborators',
Code: Select all
'PORTAL_LEADERS_EXT_EXP' => 'The standard block lists all admins/mods, while the extended block includes all non-hidden groups with a legend.',
4- root/language/en/common.php:
Find the line...
Code: Select all
'G_BOTS' => 'Bots',
Code: Select all
'G_COLABORATORS' => 'Colaborators',
Code: Select all
'CLICK_VIEW_PRIVMSG' => '%sGo to your inbox%s',
Code: Select all
'COLABORATORS' => 'Colaborators',
Source: http://www.suportephpbb.com.br