Woody:
I have made the category output optional via a configuration switch now in the archive version posted previously in this thread. To edit an existing version to add this switch, follow the below instructions:
In the file includes/functions/extra_functions/user_tracking.php
Locate the line which says:
Code:
if ($_GET['cPath']) {
And replace this line with:
Code:
if ($_GET['cPath'] && ZEN_CONFIG_SHOW_USER_TRACKING_CATEGORY == 'true') { // JTD:12/04/06 - Woody feature request
Then execute the following in the patch tool:
Code:
INSERT INTO configuration VALUES ('', 'User Tracking (Show Product Category when tracking product clicks)', 'ZEN_CONFIG_SHOW_USER_TRACKING_CATEGORY', 'true', 'Show Product Category when tracking product clicks', 999, 60, '2006-12-05 11:19:26', '2006-12-05 21:20:07', NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
The category name is still 'On' by default but now you can turn it 'Off' in the User Tracking Config settings.
As for what I would suggest on the home page, try this:
In the file includes/templates/YOUR_TEMPLATE/templates/tpl_index_default.php
Find:
Code:
<h1 id="indexDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
Replace with:
Code:
<h1 id="indexDefaultHeading"></h1>
Then in the file includes/languages/english/YOUR_TEMPLATE/index.php
Code:
define('HEADING_TITLE','Home Page');
or whatever you want the listing output to indicate.
The reason this version runs much faster than previous versions is that we have eliminated the call to gethostbyaddress() that was made for each ip address during the report listing. This produced extreme overhead since this call is effectively a DNS server query for each and every address and instead added the resolved host name to the record itself, since we already have that for each connection.
Hope this helps!
Jeff
Bookmarks