在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:felladrin/online-visitors-counter开源软件地址:https://github.com/felladrin/online-visitors-counter开源编程语言:JavaScript 49.9%开源软件介绍:Online Visitors CounterReal-time online visitors counter using Ajax, PHP PDO and SQLite. It adds a discrete link (auto-refreshed every 15 seconds) with the number of current users on the website. If the link is clicked, a list of pages currently been visited appears, along with the number of visitors in each page. Requirements
If you're not using a webhosting panel, like cPanel or VestaCP, please, install the above requirements manually on your OS. UsageDownload and unzip this package. Then upload the folder Now you just need to call it: <script src="path/to/ovc/counter.js"></script> ExampleThe But here is another quick example: Let's say your website is <script src="http://example.com/ovc/counter.js"></script> CustomizingOn the config.php file, you'll find a lot of customizable parameters. Easy to set, as you can see on the following example. If you want the link to show "X Online", you'd set: $visitorSingular = "Online";
$visitorPlural = "Online";
$linkFormat = '%1$d %2$s'; And the result would be: |
2022-08-15
2022-08-17
2022-09-23
2023-10-27
2022-08-18
请发表评论