Version: 0.2
Release: August 10, 2006
Compatibility: QC v1.3
Languages: en
Author: Claps
Simple Online Statistics
Plugin for Quick.Cart by OpenSolution.org
www.opensolution.org
Original idea after [SimonStenhouse.NET] Statistics script. The plugin provides online statistics consisting in: number of Online guests, Today hits,Yesterday hits, Total hits.
Requirements
Quick.Cart v1.+
PluginManager v2.0
Update
- Replace old files/folders with the new versions (steps 1 to 5 from Install below). If you have made your own modifications to previous v0.2 files, re-apply changes as necessary!
Go to the Configuration - Plugins option on the Admin menu. You will see a warning that the Product Attributes plugin
version number has changed. If Plugin Manager has been configured for Version Checking then the plugin will also have
been disabled and the Configuration button greyed out.
- Click the Reload Setup button for the Product Attributes plugin
- Click the Configuration button for the Product Attributes plugin, make any changes necessary, and Save
- Re-enable the plugin, and Save
Install
Where possible, the release folder is laid out in the correct folder structure to aid installation.
- Copy the entire onlineStatistics folder from the release/plugins/ folder into your Quick.Cart plugins/ folder.
- Copy the contents of the release/db/ folder into your Quick.Cart db/ folder.
- Copy the contents of the release/templates/ folder to your Quick.Cart templates/folder (1 file: online_statistics.tpl).
- Copy the contents of the release/templates/admin folder to your Quick.Cart templates/admin/ folder (1 new file: online_statistics.tpl).
-
In templates/admin/page.tpl file find the lines
CODE
<div id="tools" class="menu" onmouseover="menuMouseover( event );">
<a class="menuItem" href="?p=otherValidate"><span class="menuItemText">$lang[Validate]</span></a>
</div>
and insert one line (highlighted below) to make the code like
CODE
<div id="tools" class="menu" onmouseover="menuMouseover( event );">
<a class="menuItem" href="?p=otherValidate"><span class="menuItemText">$lang[Validate]</span></a>
<a class="menuItem" href="?p=statisticsList"><span class="menuItemText">$lang[stats_list]</span></a>
</div>
- Insert variable $sOnlineStatistics where you want online statistics to appear (categories_menu.tpl reccomended)
- Go to the Configuration - Plugins option on the Admin menu, and configure and then enable the onlineStatistics plugin.
User Guide
Configuration
The plugin's configuration parameters (only one at the moment)are accessible via the Plugin Manager, and full explanations have been provided.
Language
By default this plugin is only supplied with an English language file - /plugins/onlineStatistics/lang-en.php.
If you wish to provide translations for your own language, copy lang-en.php to lang-[2-char-code].php (within the same folder), where [2-char-code] is the
recognised code for your language. For example, a Polish language file would be /plugins/onlineStatistics/lang-pl.php.
The plugin will automatically load the English file first, and then look for the language file in the Shop's configured language, so that the English text is always there as a backup.
Change Log
Version 0.2
- - added admin section. Two sections provided: details list and statistics and graphs.
- - details for a week from current day/hour are stored in .dat file, older data is erased (size does matter!!!), only total hits stored.
- - details now contains and country of remote ip (using geoip.inc from MaxMind LLC).
- - Details list: sorting by date/hour in descending order , country and flag, and a WhoIs interrogation provided.
- - Statistics and graphs: day, yesterday and week hits provided. Graphs: Day hits by hour, Week hits by date and Hits by country.
- TODO: dns, browser etc. Suggestions wellcome!!!
Version 0.1
- First release!!
- TODO: add admin section, some graphs maybe ...
~~ The End ~~