一般的统计系统功能非常的强大,但是对于个人博客来讲,并不需要如此之多的功能,有显示总访问量、当天访问人数等已经足够了。
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).
从介绍中可以看到,WP OnlineCounter能显示在线人数、最大在线人数以及总访问量,它对MYSQL的要求是至少是4.1,一般空间应该都满足。
说下WP OnlineCounter的安装:
1、先下载wp-onlinecounter (http://faked.org/blog/wp-onlinecounter/)
2、将解压缩后的文件放到wp-content的plugins目录下
3、WP后台激活
4、在数据库中执行以下命令:
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′,PRIMARY KEY (`timestamp`)) TYPE=MyISAM;5、在sidebar中适当位置放入以下显示代码:
< ?phpif(function_exists(wp_onlinecounter)){ wp_onlinecounter(show); }?>然后就大功告成拉。
从插件页面上能看到,该插件也是可以支持Widget的,具体的大家可以试下
没有评论:
发表评论