It does not work
Image attached?
http://img11.hostingpics.net/pics/780191201701160135.png
-
This reply was modified 9 years, 4 months ago by
kingteamdunet. Reason: edit
Hi,
Need help, and like that?
To see who is online
add_action('asgarosforum_statistics_custom_element', 'my_function_footer', 10, 1);
function my_function_footer() {
?>
<?php if (function_exists('get_most_users_online')): ?>
<div class="statistics-element">
<div class="element-number dashicons-before dashicons-groups"><?php echo get_most_users_online(); ?></div><div class="element-name">Utilisateur en ligne</div></div>
<?php endif;
}
Thank you
Hi,
I would like to display?
There are currently 1 user online: 0 Members, 0 Guests and 0 Bots.
Not found for Guests and Bots
Need a helping hand I’m not a developer, I’m a beginner I’m learning
add_action('asgarosforum_statistics_custom_element', 'my_function_footer', 10, 1);
function my_function_footer() {
?>
<?php if (function_exists('get_most_users_online')): ?>
<div id="statistics">
<div id="statistics-header">
<strong class="dashicons-before dashicons-chart-line">Qui est en ligne</strong>
</div>
<div id="statistics-body">
<div class="statistics-element">
<div class="element-number dashicons-before dashicons-groups">
Il y a <?php echo get_users_online_count(); ?>
</div>
<div class="element-name">
Utilisateur en ligne actuellement
</div>
</div>
<div class="statistics-element">
<div class="element-number dashicons-before dashicons-groups">
<?php echo get_users_online_count(); ?>
</div>
<div class="element-name">
Membres en ligne
</div>
</div>
<div class="statistics-element">
<div class="element-number dashicons-before dashicons-groups">
<?php echo get_users_online_count(); ?>
</div>
<div class="element-name">
Invités en ligne
</div>
</div>
<div class="statistics-element">
<div class="element-number dashicons-before dashicons-groups">
<?php echo get_users_online_count(); ?>
</div>
<div class="element-name">
Bots en ligne
</div>
</div>
</div>
</div>
<?php endif;
}
add_action('asgarosforum_after_post_author', 'my_function', 10, 1);
Thank you
Hello,
Would it be possible to have the php code to display
Online Guests and Bots Online
The code here <?php echo get_users_online_count(); ?> only displays Members online
Thank you
Hello,
I’m still waiting for a developer’s response.
Thank you