XF 2.1 footer how can I show the number of online users?

SkinsForum

Member
hello footer how can I show the number of online users?

this did not happen
Code:
{'total': number($online.counts.total) }
 

SyTry

Well-known member
Hello,

I think you need to have an expression with that code, like the widget_members_online template ;)

Regards, SyTry
 

SyTry

Well-known member
Thanks for the answer Do you have any idea how I can do it?
I will take a look tomorrow ;)
For now you can try to add something like this :
HTML:
{{ phrase('online_now_x',{
                'total': number($online.counts.total)})
            }}
In online_now_x add this :
  • Total : {total}
Not tested ^^
 
Top