WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] User Online - how to show ALL the stats ? (6 posts)

  1. Dunworking
    Member
    Posted 7 years ago #

    I've installed the wp-user online plug in as per instructions. But...I would like to show ALL the information, not just the "users online" i.e. I'd like to show the members, guests and bots. I've tried adding the extra php files that Gamerz advises, but being a bit of a php novice, I couldn't get them to display no matter where I placed them in my sidebar. I don't really understand what he means by "outside the WP loop" in his installation instructions.

  2. Samuel B
    moderator
    Posted 7 years ago #

  3. Lester Chan
    Member
    Posted 7 years ago #

    wp-useronline.php contains all the info u need: http://www.lesterchan.net/wordpress/wp-content/plugins/useronline/wp-useronline.php It is in the zip file.

  4. Dunworking
    Member
    Posted 7 years ago #

    Thanks...but....there's no instructions as to how to integrate the three PHP files so that members, guests and bots are shown all at once. It does show up when you click the "1 user online" link, but I'd like it to show all the time. This is my sidebar.php at the moment. Any further help appreciated !!

    <div id="sidebar">

    • <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    • <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.

    • <h2>Author</h2>
      A little something about you, the author. Nothing lengthy, just an overview.
    • -->

    • <h2>Live Shoutbox</h2>
      <?php jal_get_shoutbox(); ?>
      <?php /* If this is a 404 page */ if (is_404()) { ?>
      <?php /* If this is a category archive */ } elseif (is_category()) { ?>
      You are currently browsing the archives for the <?php single_cat_title(''); ?> category.

      <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
      You are currently browsing the /"><?php echo bloginfo('name'); ?> weblog archives
      for the day <?php the_time('l, F jS, Y'); ?>.

      <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
      You are currently browsing the /"><?php echo bloginfo('name'); ?> weblog archives
      for <?php the_time('F, Y'); ?>.

      <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
      You are currently browsing the /"><?php echo bloginfo('name'); ?> weblog archives
      for the year <?php the_time('Y'); ?>.

      <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
      You have searched the /"><?php echo bloginfo('name'); ?> weblog archives
      for '<?php echo wp_specialchars($s); ?>'. If you are unable to find anything in these search results, you can try one of these links.

      <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
      You are currently browsing the /"><?php echo bloginfo('name'); ?> weblog archives.

      <?php } ?>

    • <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

    • <h2>Archives</h2>
        <?php wp_get_archives('type=monthly'); ?>
    • <?php if (function_exists('useronline')): ?>

    • <h2>UserOnline</h2>

      • <div id="useronline-count"><?php get_useronline(); ?></div>
    • <?php endif; ?>

    • <h2>Categories</h2>
        <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
    • <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
      <?php get_links_list(); ?>

    • <h2>Meta</h2>
    • <?php } ?>

    </div>

  5. Dunworking
    Member
    Posted 7 years ago #

    Don't worry - I've installed a different plug in instead.

  6. xinfo
    Member
    Posted 7 years ago #

    Hi

    when i use below pasted plugin its work fine every thing but it dont show hits from other search like yahoo and msn it show only google any help

    http://www.lesterchan.net/wordpress/wp-content/plugins/useronline/wp-useronline.php

Topic Closed

This topic has been closed to new replies.

About this Topic