1

Topic: Displaying Members Currently Online and Totals in Dashboard CP

I wanted to share a simple mod I did to the CP Dashboard to cleanly show the total members online at the moment and the total members registered. I thought these were important stats to display to the admin.

Edit your /includes/templates/dashboard.tpl

Located the following lines:

                                                <td class="gridRow2">
                                                        {lang:"dashboard","quick_stats_comments"}
                                                </td>
                                                <td class="gridOptions2" style="text-align: center">
                                                        {comments_today}
                                                </td>
                                                <td class="gridOptions2" style="text-align: center">
                                                        {comments_week}
                                                </td>
                                        </tr>
                                </table>

Directly below </table> add the following:

                                <table cellpadding="0" cellspacing="1" width="100%" class="gridTable" style="margin:0px 0px 10px 0px">
                                        <tr>
                                                <td class="gridHeader" style="font-weight:normal">
                                                        <b>Additional stats</b>
                                                        [ <a href="{virtual_cp_path}index.php?m=dashboard&p=updatestats">{lang:"dashboard","update"}</a> ]
                                                </td>
                                                <td class="gridHeader" style="width: 80px; text-align: center">
                                                        #
                                                </td>
                                        </tr>
                                        <tr>
                                                <td class="gridRow1">
                                                        Members online
                                                </td>
                                                <td class="gridOptions1" style="text-align: center">
                                                        {stats:count="members",online="1",cache_time=1,cache_name="online"}
                                                </td>
                                        </tr>
                                        <tr>
                                                <td class="gridRow2">
                                                        Members total
                                                </td>
                                                <td class="gridOptions1" style="text-align: center">
                                                        {stats:count="members",="1",cache_time=5,cache_name="empty"}
                                                </td>
                                        </tr>
                                </table>

That's it!

ALWAYS BACKUP YOUR FILES BEFORE EDITING IN CASE YOU SCREW UP!

2

Re: Displaying Members Currently Online and Totals in Dashboard CP

Online is a nice touch, but totals are in the cp stats anyway...

3

Re: Displaying Members Currently Online and Totals in Dashboard CP

Nice mod. Any way to add a display of the actual members?

4

Re: Displaying Members Currently Online and Totals in Dashboard CP

What display do you mean?

5

Re: Displaying Members Currently Online and Totals in Dashboard CP

You have the amount of "members online". I would like to see a listing of those members too.