Hi. I hope someone can help.
I need to have number of users online for statistics block in my index_body template, only the number not the whole string which is {{ TOTAL_USERS }}. How can this be done?
I give different information for registered users and for guest.
This variable has nothing to do with language files as it is created in functions.php
No, it's.romeo_piter wrote: ↑Mon Apr 22, 2024 4:42 am
This variable has nothing to do with language as it is created in fonctions.php
Code: Select all
// "... :: x registered, y hidden and z guests"
'ONLINE_USERS_TOTAL_GUESTS' => array(
1 => 'In total there is <strong>%1$d</strong> user online :: %2$s, %3$s and %4$s',
2 => 'In total there are <strong>%1$d</strong> users online :: %2$s, %3$s and %4$s',
),
Code: Select all
// "... :: x registered, y hidden and z guests"
'ONLINE_USERS_TOTAL_GUESTS' => array(
1 => '<strong title="%2$s, %3$s and %4$s">%1$d</strong>',
2 => '<strong title="%2$s, %3$s and %4$s">%1$d</strong>',
),