The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums

    Improvement : View the number of members in group's

    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19147
    Reputation : 1994
    Language : fluent in dork / mumbojumbo & English haha

    Improvement : View the number of members in group's Empty Improvement : View the number of members in group's

    Post by Ape Mon Nov 22, 2021 4:58 pm

    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
    Improvement : View the number of members in group's Captu462

    If the admin chooses to display it, the number of members present in the group appears in the information of each group:
    Improvement : View the number of members in group's Captu463

    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 king

    ļŖ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)




    Improvement : View the number of members in group's Left1212Improvement : View the number of members in group's Center11Improvement : View the number of members in group's Right112
    Improvement : View the number of members in group's Ape_b110
    Improvement : View the number of members in group's Ape1010

    SLGray, Terminator44, Winging and qatala like this post

    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19147
    Reputation : 1994
    Language : fluent in dork / mumbojumbo & English haha

    Improvement : View the number of members in group's Empty Re: Improvement : View the number of members in group's

    Post by Ape Mon Nov 22, 2021 4:59 pm

    TemplateĀ Settings


    ļ‚­ 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}&nbsp;
            <!-- 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}&nbsp;
            <!-- 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}&nbsp;
        <!-- 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.





    Improvement : View the number of members in group's Left1212Improvement : View the number of members in group's Center11Improvement : View the number of members in group's Right112
    Improvement : View the number of members in group's Ape_b110
    Improvement : View the number of members in group's Ape1010

    SLGray and qatala like this post


      Current date/time is Wed May 08, 2024 5:59 pm