Support » Plugin: WP-UserOnline » Using PHP to just show the numbers on a template page + changing names

  • I have been using the code below and it has been great up till now. But now I have a Japanese page as well as English page I need to just get the numbers and add the code to both templates. How do I just get the numbers? I couldn’t see how to do this with your PHP examples. Any help is greatly appreciated. Adding the explanation to the plugin page would also help a lot of people like me. Thank you so much for making this great plugin.

    <?php if (function_exists('get_users_browsing_site')): ?>
    <div id="useronline-browsing-site" style="margin:0px auto 0px;padding-top:2px;padding-bottom:2px;max-width:100%; text-align:center;border-bottom:solid 1px #a6a6a6;background-color:#eaeaea;font-size:small"><?php echo get_users_browsing_site(); ?></div>
    <?php endif; ?>

    The plugin name is WP-UserOnline but the name is different in the settings area (UserOnline). If it is okay, can you make both the same so it is easier to find?

    The page I need help with: [log in to see the link]

  • You must be logged in to reply to this topic.