Enable you to display how many users are online on your WordPress blog with detailed statistics.
You can either install it automatically from the WordPress admin, or do it manually:
wp-useronline folder into your plugins folder (/wp-content/plugins/).General Usage (With Widget)
WP-Admin -> Appearance -> WidgetsGeneral Usage (Without Widget)
Open wp-content/themes/<YOUR THEME NAME>/sidebar.php and add Anywhere:
<?php if (function_exists('users_online')): ?>
<p>Users online: <div id="useronline-count"><?php users_online(); ?></div></p>
<?php endif; ?>
UserOnline Page
WP-Admin -> Pages -> Add Newuseronline in the text field and click 'Save'.[page_useronline] in the post's content areaIf you ARE NOT using nice permalinks, you need to go to WP-Admin -> Settings -> UserOnline and under 'UserOnline URL', you need to fill in the URL to the UserOnline Page you created above.
UserOnline Stats (Outside WP Loop)
To Display Most Number Of Users Online use:
<?php if (function_exists('get_most_users_online')): ?>
<p>Most Users Ever Online Is <?php echo get_most_users_online(); ?> On <?php echo get_most_users_online_date(); ?></p>
<?php endif; ?>
To Display Users Browsing Site use:
<?php if (function_exists('get_users_browsing_site')): ?>
<div id="useronline-browsing-site"><?php echo get_users_browsing_site(); ?></div>
<?php endif; ?>
To Display Users Browsing A Page use:
<?php if (function_exists('get_users_browsing_page')): ?>
<div id="useronline-browsing-page"><?php echo get_users_browsing_page(); ?></div>
<?php endif; ?>
Requires: 3.1 or higher
Compatible up to: 3.3.1
Last Updated: 2011-12-4
Downloads: 337,168




