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
- WP Onlinecounter v0.14
- Sidebar Module (for K2 theme, not tested anymore)
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.
Good system.I will use it on my hospital based site.
Vielen Dank!
Where can i see the results of the plugin counter?
Geri
You can see it in the right column, “Counter”.
tnks you bro
dude, thats cool plugin but it is not working with last version 2.9.1 🙁
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…
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?
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.
Type your comment here
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 😉
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)
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
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)
);