1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Online Statistic's Not Working...

Discussion in 'XenForo Development Discussions' started by Xarcell, Mar 3, 2011.

  1. Xarcell

    Xarcell Well-Known Member

    I added the online statistic's to the PAGE_CONTAINER for a custom style:

    <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>
    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)

    Attached Files:

  2. Shadab

    Shadab Well-Known Member

    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).
    Xarcell likes this.
  3. Xarcell

    Xarcell Well-Known Member

    alright, makes sense.

    I'll just remove it.


Share This Page