Forums / General Questions / Hit Counter History beyond 10 days

Hit Counter History beyond 10 days

Views: 531

Results 1 to 6 of 6
1 Nov 2014, 3:50 PM
#1
tundria avatar

tundria

New Zenner

Join Date:
Dec 2011
Posts:
36
Plugin Contributions:
0

Hit Counter History beyond 10 days

Hi, I was wondering if there is a spot where I can obtain the hit counter information further back than the standard 10 days shown on the admin home page? I don't use Google analytics or any other third party reporting, and rely on the hit counter numbers.

Please provide steps from admin

Regards,

1 Nov 2014, 4:01 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Hit Counter History beyond 10 days

Around line 36 of the file:
/your_admin_dir/index.php

you could change this query from 10 to a higher value:

  $counter_query = "select startdate, counter, session_counter from " . TABLE_COUNTER_HISTORY . " order by startdate DESC limit [B]10[/B]";

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

1 Nov 2014, 4:10 PM
#3
tundria avatar

tundria

New Zenner

Join Date:
Dec 2011
Posts:
36
Plugin Contributions:
0

Re: Hit Counter History beyond 10 days

Hi Ajeh

Thank you -I cant find that line:(

Can you show which place i should click to get there after i log in to admin?

Many Thanks !

1 Nov 2014, 4:31 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Hit Counter History beyond 10 days

This is a file that you would need to customize via FTP and load to your server once you change the code from 10 to the value you wish to use ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

1 Nov 2014, 4:57 PM
#5
tundria avatar

tundria

New Zenner

Join Date:
Dec 2011
Posts:
36
Plugin Contributions:
0

Re: Hit Counter History beyond 10 days

Hi

Thank you :) I am here -see image attached . What should i do next ?
ManyAttachment 14647 Thanks !

2 Nov 2014, 5:03 PM
#6
trinity14 avatar

trinity14

Zen Follower

Join Date:
Jan 2014
Location:
Ontario, Canada
Posts:
252
Plugin Contributions:
3

Re: Hit Counter History beyond 10 days

Tundria,
Make sure you are in YOUR_ADMIN folder, select index.php
If you can use a custom search, find 'limit'.
Ajeh has highlighted the specific area you need to change.

I would suggest commenting out where you have made changes to this file because there is no overwrite template to change here.

Hope that helps,