WP OnlineCounter

Thanks for your interest in WP OnlineCounter, a plugin for WordPress which counts the number of currently online visitors, the highest number of visitors online at the same time, and the total count of visitors. You can configure what should be displayed and how it should look like through its own options page in your WordPress dashboard. It also offers some very basic statistics regarding the most recent visitors to your site (only available if you are running on a server with at least MySQL 4.1).

Installation

Download the plugin and drop it into your WordPress’ plugins directory, usually “wp-content/plugins” (DON’T put it into a subdirectory). Enable it on the Plugins page in your WordPress dashboard. Paste the following code in your template where you want the counter to show up, or use either the Widget for WordPress Widgets or the Sidebar Module for the K2 theme.

<?php if(function_exists('wp_onlinecounter')) wp_onlinecounter(); ?>

Upgrade

If you are already using an older version of this plugin, please disable it on the Plugins page, overwrite the old file in your plugins directory with the new one you downloaded, and re-enable it again. This is necessary to perform an upgrade to the table structure in your database.

Download

Notes

The Statistics page under Manage in your WordPress dashboard only works if your are using at least MySQL 4.1, this is because older versions of MySQL are missing some features used in the database queries to get the results. This is not my fault, and there is NO way around it. Stop complainig about it to me and contact your hosting company to upgrade their outdated software.

1,718 thoughts on “WP OnlineCounter”

  1. Pingback: Furkan Sevgili
  2. Pingback: Harun ADAL BLOG
  3. Pingback: DAYILIKOYU
  4. Pingback: OnlyLiesbeth.nl
  5. Pingback: SQLTime.NET
  6. Pingback: Myeymen
  7. Pingback: VidyoTube.Org
  8. Pingback: M.Ufuk TATLIDİL
  9. Pingback: Türk Lezzeti
  10. Pingback: Masalsohbet.Com
  11. Pingback: CeTCaL
  12. Pingback: Kara Üzüm
  13. That’s strange, because i’m running 2.9.1, and it’s working here, as you can see?
    by the way, “not working” isn’t a good problem description…

    it is not working :

    dude, thats cool plugin but it is not working with last version 2.9.1 🙁

  14. Pingback: onlinekeyfi.com
  15. Hi there.
    I’ve installed your plugin, but it don’t seem to work. I’m using it with widget, but it doesn’t count any visitors. I’ve read in plugin *.php file that I should make a table in database, is that necessary? If it is can you write my CREATE TABLE code for phpmyadmin?

  16. Type your comment hereHi, do you have BOTH, the plugin and the widget? The plugin contains all the code for creating the tables itself, i should do so on activation. If not, the SQL code is nearly at the end of the code.

    Lestatt :

    Hi there.
    I’ve installed your plugin, but it don’t seem to work. I’m using it with widget, but it doesn’t count any visitors. I’ve read in plugin *.php file that I should make a table in database, is that necessary? If it is can you write my CREATE TABLE code for phpmyadmin?

  17. Type your comment here

    Jan :

    Type your comment hereHi, do you have BOTH, the plugin and the widget? The plugin contains all the code for creating the tables itself, i should do so on activation. If not, the SQL code is nearly at the end of the code.

    Lestatt :

    Hi there.
    I’ve installed your plugin, but it don’t seem to work. I’m using it with widget, but it doesn’t count any visitors. I’ve read in plugin *.php file that I should make a table in database, is that necessary? If it is can you write my CREATE TABLE code for phpmyadmin?

    Nope, it does not create table by itself and I’m too “dumb” to create it myself, I don’t know where I have syntax errors in that code 😉

  18. My comment didn’t showed up… anyway it doesn’t created table itself and I don’t know where I have syntax errors, could you correct that?

    CREATE TABLE wp_onlinecounter;
    timestamp int(15) NOT NULL default ‘0’,
    ip varchar(15) NOT NULL default ”,
    count int(15) NOT NULL default ‘0’,
    maxon int(6) NOT NULL default ‘0’,
    maxontime int(15) NOT NULL default ‘0’,
    uri text NOT NULL default ”,
    PRIMARY KEY (timestamp, ip)

  19. Pingback: Onur Almışlar
  20. Hi, I have installed onlineuser pluging on WordpPress 2.86 but is NOT creating the Table, I also installed the plugin on WordPress 2.92 (latest version) same problem is not creating the table. Would be possible to include the table that you have in your database?

    PS. my phpadmin is the latest version and my server is supporting both php4 and 5.

    Many thanks in advance
    Antonio

  21. If anyone’s having the problem that the database is not created in recent versions or WordPress, here’s the code to create it manually – i’ll update the plugin when i have the time:

    CREATE TABLE wp_onlinecounter (
    timestamp int(15) NOT NULL default ‘0′,
    ip varchar(15) NOT NULL default ”,
    count int(15) NOT NULL default ‘0′,
    maxon int(6) NOT NULL default ‘0′,
    maxontime int(15) NOT NULL default ‘0′,
    uri text NOT NULL default ”,
    PRIMARY KEY (timestamp, ip)
    );

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

falls ich mal was zu sagen habe…