CountX

A Simple Website Visitor Counter plugin for CMSimple-XH
countx 1.00rc7 - 18 June 2021
Copyright Jadefusion July 2012

Description

Countx counts the number of visitors to a web site. To help reduce false counts the IP address of the visitor is noted and any page hits from that IP over a preset period (set by the expire time in seconds) are assumed to be from the the same visitor.

As an option the following details can also be recorded... Date, IP, Hostname, Browser, URI, Referrer. This option if turned off by default and can be activated from the plugin configuration panel.

The visitor information is saved in a file - countx_visitors.log - which can be viewed from the countx plugin administration panel.

Warning... The countx_visitors.log over time could grow to be a huge file, so it is recommended that it be reset at regular intervals.

When you view the visitor information page it will be displayed in a new window or tab, depending on the web browser, allowing the visitor data to be easily saved as a HTML page for further analysis.

While this software is no substitute for for a full statistics application, for a small website it may be all you need.

Installation

Countx can be installed like any other plugin. Upload the countx folder with its files to the plugins folder of your CMSimple installation. CHMOD the countx.log and countx_visitors.log files to 666 if necessary.

Configuration

The configuration and language settings are few and fairly self explanatory. The ip expire time is set in seconds - 1800 is 30 minutes.

Integration into a CMSimple site template

To add the visitor counter to your template from CMSimple, first login into the CMSimple administration module

Select either settings or setup from the CMSimple admin menu and select edit template from System files list.

Place the following piece of php script into the template code in the location you want the number of site visitors displayed and save the template changes.

<?php echo countx();?>

Visitor Information Data

The visitor information data file is... countx_visitors.log

After an entry has been made to the data file a blank line is added to the bottom of the entry, thus each entry can be seen separated by a line... so to delete an entry you delete the data for that entry plus one blank line.

Copyright (c) 2012 Jadefusion

This software is provided "as is" in the hope that it will be useful, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and non-infringement.

In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.