LiveUserCounter
An OctoberCMS plugin which can show the current number of live visitors on the page.
LiveUserCounter
An OctoberCMS plugin which can show the current number of live visitors on the page.
Installation via Command Line
php artisan plugin:install StarkesWeb.LiveUserCounter
Usage
-
Add the Component: Add the
LiveUsercomponent to the page or partial where you want to display the number of visitors. -
Insert the Code: Add the following code snippet to the desired location in your page or partial:
<p>Number of visitors: {% component "LiveUser" %}</p>The code provided is just an example. The key point is to include the component on the page by adding the following snippet:
{% component "LiveUser" %}This is the important part to ensure the visitor count is displayed correctly.
-
View the Visitor Count: Open the page in your browser. You should now see the number of visitors who have been on your site in the last five minutes displayed in real-time.
-
This plugin has not been reviewed yet.
-
| 1.0.1 |
First version of LiveUserCounter Jun 22, 2024 |
|---|