Improvement : View the number of members in group's
Dear users,
Following one of your suggestions, a new option allows you to display the number of members of the group on the page of each group. You will find it right here.
Admin Control Panel. Admin Panel Users & Groups Groups Group Administration
If the admin chooses to display it, the number of members present in the group appears in the information of each group:
This improvement requires an update of the template groupcp_info_body. If you modified this template before 18/11/2021, some changes will be necessary to benefit from this new option.
From The Forumotion Team
Administrators who have customized the groupcp_info_body template should consider the changes below. (Administrators who have not customized this template are not affected by these changes included natively in the basic template of the forum)
A Forumotion Important Announcement
Ape
Administrator
Posts : 19084 Reputation : 1988 Language : fluent in dork / mumbojumbo & English haha
SLGray, Terminator44, Winging and qatala like this post
Admin Control panel settings. In View > Templates > Groups > phpBB2 groupcp_info_body:
phpBB2
Add:
Code:
<!-- BEGIN switch_count_users_group --> <tr> <td class="row1" width="20%"><span class="gen">{switch_count_users_group.L_GROUP_COUNT}:</span></td> <td class="row2"><span class="gen">{switch_count_users_group.GROUP_COUNT}</span></td> </tr> <!-- END switch_count_users_group -->
After:
Code:
<tr> <td class="row1" width="20%"><span class="gen">{L_GROUP_MEMBERSHIP}:</span></td> <td class="row2"> <span class="gen">{GROUP_DETAILS} <!-- BEGIN switch_subscribe_group_input --> <input class="mainoption" type="submit" name="joingroup" value="{L_JOIN_GROUP}" /> <!-- END switch_subscribe_group_input --> <!-- BEGIN switch_unsubscribe_group_input --> <input class="mainoption" type="submit" name="unsub" value="{L_UNSUBSCRIBE_GROUP}" /> <!-- END switch_unsubscribe_group_input --> </span> </td> </tr>
Invision, Modernbb, PhpBB3, PunBB:
Add:
Code:
<!-- BEGIN switch_count_users_group --> <dl> <dt><label>{switch_count_users_group.L_GROUP_COUNT}:</label></dt> <dd>{switch_count_users_group.GROUP_COUNT}</dd> </dl> <!-- END switch_count_users_group -->
After:
Code:
<dl> <dt><label>{L_GROUP_MEMBERSHIP}:</label></dt> <dd>{GROUP_DETAILS} <!-- BEGIN switch_subscribe_group_input --> <input type="submit" name="joingroup" value="{L_JOIN_GROUP}" class="button" /> <!-- END switch_subscribe_group_input --> <!-- BEGIN switch_unsubscribe_group_input --> <input type="submit" name="unsub" value="{L_UNSUBSCRIBE_GROUP}" class="button" /> <!-- END switch_unsubscribe_group_input --> </dd> </dl>
Awesomebb:
Add:
Code:
<!-- BEGIN switch_count_users_group --> <dt>{switch_count_users_group.L_GROUP_COUNT}:</dt> <dd>{switch_count_users_group.GROUP_COUNT}</dd> <!-- END switch_count_users_group -->
After:
Code:
<dd>{GROUP_DETAILS} <!-- BEGIN switch_subscribe_group_input --> <input class="btn btn-default" type="submit" name="joingroup" value="{L_JOIN_GROUP}" /> <!-- END switch_subscribe_group_input --> <!-- BEGIN switch_unsubscribe_group_input --> <input class="btn btn-default" type="submit" name="unsub" value="{L_UNSUBSCRIBE_GROUP}" /> <!-- END switch_unsubscribe_group_input --> </dd>
Please don't forget to save and publish your templates.
A Forumotion Important Announcement
Ape
Administrator
Posts : 19084 Reputation : 1988 Language : fluent in dork / mumbojumbo & English haha