Online Statistic's Not Working...

Xarcell

Well-known member
I added the online statistic's to the PAGE_CONTAINER for a custom style:

Code:
<div class="pairsJustified">
                <dl class="memberCount"><dt>{xen:phrase members_online}:</dt>
                    <dd>{xen:number $onlineTotals.members}</dd></dl>
                <dl class="guestCount"><dt>{xen:phrase guests_online}:</dt>
                    <dd>{xen:number $onlineTotals.guests}</dd></dl>
                <dl class="visitorCount"><dt>{xen:phrase total_visitors}:</dt>
                    <dd>{xen:number $onlineTotals.total}</dd></dl>
            </div>

But the results are zero. Even when I visit the online statistic's page, the results are still zero. What am I missing here?

See screenshot(style is a work in progress)
 

Attachments

  • screenshot_onlinestats.webp
    screenshot_onlinestats.webp
    93.6 KB · Views: 6
A template can only work if there is data available to it for use.

In your case, the online statistics are not present in that location. You'll need to create an addon to fetch the actual statistics data and push it to the "PAGE_CONTAINER" (or any other custom template of your choice).
 
Top Bottom