WordPress.org

Ready to get started?Download WordPress

Forums

Show users online plugin (14 posts)

  1. archard
    Member
    Posted 7 years ago #

    I need a plugin that shows how many users are currently online. The problem is I have a WP-Cache installed as well so I can't show things in real time. Is there a plugin that maybe uses AJAX or something of the like to get around this problem?

  2. Lester Chan
    Member
    Posted 7 years ago #

    http://wordpress.org/extend/plugins/wp-useronline/ it uses ajax, but I have not tested it with WP-Cache

  3. archard
    Member
    Posted 7 years ago #

    I tried that one actually, and it doesn't work with WP-Cache.

  4. Lester Chan
    Member
    Posted 7 years ago #

    okie guess not. Most of the plugins have problem working once wp-cache is used.

  5. _ck_
    Member
    Posted 7 years ago #

    Try this FAQ and look in the middle where it tells you how to keep certain functions dynamic:

    http://dev.wp-plugins.org/browser/wp-cache/trunk/README.txt?format=raw

  6. archard
    Member
    Posted 7 years ago #

    Thanks ck, but I want to use this on my homepage, and as far as I know there's no way to tell WP-Cache to not cache the homepage, because it rejects pages based on a list of keywords that it matches up with the page's URI.

  7. Lester Chan
    Member
    Posted 7 years ago #

    it will not cache the output that is generated by useronline if you use the mfunc as stated above

  8. archard
    Member
    Posted 7 years ago #

    Oh, ok. Well it says I need to use this code:

    <!--mfunc function_name('parameter', 'another_parameter') -->
    <?php function_name('parameter', 'another_parameter') ?>
    <!--/mfunc-->

    Do you mind explaining what parameters I should use?

  9. Lester Chan
    Member
    Posted 7 years ago #

    <div id="useronline-count">
    <!--mfunc get_useronline() -->
    <?php get_useronline() ?>
    <!--/mfunc-->
    </div>

  10. timelf123
    Member
    Posted 7 years ago #

    BTW GamerZ, that plugin uses a TON of CPU, and my host told me to disable it, because it was taking my site down lol

  11. Lester Chan
    Member
    Posted 7 years ago #

    What is your site traffic like? I am getting about 500 hits daily and it works fine for me.

    I think this is my one of my lighter plugin

  12. timelf123
    Member
    Posted 7 years ago #

    1000 uniques + when I had to disable it, so a few thousand pageviews

  13. Lester Chan
    Member
    Posted 7 years ago #

    okie noted.

  14. timelf123
    Member
    Posted 7 years ago #

    thanks ;)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.