visitor and visitor_count
These two action functions work hand in hand to provide visitors online stats, which can be broken down into guests online and members online stats. The visitor action should be placed on pages where you wish to track the numbers of vissitors. The visitor_count action function is then used to display those numbers on a page.
- This visitor action has no variables.
- Format: specifies how the output should display, which is customisable using %MEMBERS% and %GUESTS% to specify where the actual stats should show.
The visitor_count action has one variable:
Examples:
<?php action('visitor'); ?>
Insert this code on a page for it to be included in visitor counts.
<?php action('visitor_count','Members online: %MEMBERS%<br>Guests online: %GUESTS%<br>');?>
would show output similar to the following:
Members online: 13
Guests online: 7









CCI Chatterbox RSS Feed