Notifications
Clear all

New Feature Most users online

11 Posts
4 Users
8 Reactions
166 Views
marsm
Posts: 126
Topic starter
(@marsm)
Estimable Member
Joined: 4 years ago

Is it possible to add to the stats at the bottom of the forums where it shows number online, latest member, etc. the most users we've had online ever?

10 Replies
1 Reply
allenbest51
(@allenbest51)
Joined: 6 months ago

Trusted Member
Posts: 31

Posted by: @marsm

Is it possible to add to the stats at the bottom of the forums where it shows number online, latest member, etc. the most users we've had online ever?

i agree

 

Reply
Posts: 1187
(@percysgrowroom)
Noble Member
Joined: 5 years ago

I think @tutrix has a feature like this on his website, and a guide on how to do it too 🙂 

tutrix.de (its in German so you may need to translate, but it is worth it. Its a great site)  

Reply
Tutrix
Posts: 1436
(@tutrix)
Noble Member
Joined: 4 years ago

You can use this Plugin >> https://wordpress.org/plugins/wp-useronline/

The code to display only the most users online

<div class="most_users_online"><?php if (function_exists('get_most_users_online')): ?> Your text before the user count <?php echo get_most_users_online(); ?> Your text before date/time <?php echo get_most_users_online_date(); ?> Your text after the date/time <?php endif; ?></div>

Documentation - Theme Customization

Reply
1 Reply
marsm
(@marsm)
Joined: 4 years ago

Estimable Member
Posts: 126

@tutrix thank you. Where do I paste the code?

Reply
Tutrix
Posts: 1436
(@tutrix)
Noble Member
Joined: 4 years ago

@marsm 

Insert the code where you want displayed.

For example, footer.php after

<div class="wpf-topic-icons">......</div>
Reply
2 Replies
marsm
(@marsm)
Joined: 4 years ago

Estimable Member
Posts: 126

@tutrix thanks again. Is there a way of adding it to the bottom bar on the wpforo where it says users online, latest member, posts, etc.?

Reply
Tutrix
(@tutrix)
Joined: 4 years ago

Noble Member
Posts: 1436

@marsm 

<li>
  <svg style="height: 16px; " xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
    <path d="M12,12A6,6,0,1,0,6,6,6.006,6.006,0,0,0,12,12ZM12,2A4,4,0,1,1,8,6,4,4,0,0,1,12,2Z"/>
    <path d="M12,14a9.01,9.01,0,0,0-9,9,1,1,0,0,0,2,0,7,7,0,0,1,14,0,1,1,0,0,0,2,0A9.01,9.01,0,0,0,12,14Z"/>
  </svg>
  <span class="wpf-stat-value"><?php if (function_exists('get_most_users_online')): ?><?php echo get_most_users_online(); ?><?php endif; ?></span>
  <span class="wpf-stat-label">Most Users Online</span>
</li> 
Reply
marsm
Posts: 126
Topic starter
(@marsm)
Estimable Member
Joined: 4 years ago

Thank you for sharing your knowledge and expertise. I assume that this go into wpforo's CSS section? 

Reply
Page 1 / 2