WordPress.org

Plugin Directory

wiki:wp-useronline/usage

WP-UserOnline Usage Instructions

Open wp-content/themes/<YOUR THEME NAME>/sidebar.php

Add Anywhere:

<?php if (function_exists('useronline')): ?>
<li>
        <h2>UserOnline</h2>
        <ul>
                <li><a href="<?php echo get_settings('home'); ?>/wp-useronline.php"><?php get_useronline(); ?></a></li>
        </ul>
</li>
<?php endif; ?>



To Display Most Number Of Users Online

Use:

<?php if (function_exists('useronline')): ?>
        <p>Most Users Ever Online Is <?php get_most_useronline(); ?> On <?php get_most_useronline_date(); ?></p>
<?php endif; ?>

Note:

  • By default, it will be displayed in wp-useronline.php


To Display Users Browsing The Site

Use:

<?php if (function_exists('useronline')): ?>
        <?php get_users_browsing_site(); ?>
<?php endif; ?>

Note:

  • Normally, you can place it in page.php, single.php or sidebar.php


To Display Users Browsing A Page

Use:

<?php if (function_exists('useronline')): ?>
        <?php get_users_browsing_page(); ?>
<?php endif; ?>

Note:

  • Normally, you can place it in page.php or single.php



Back To WP-UserOnline Documentation

Last modified 12 years ago Last modified on 03/30/06 11:42:54