News:

Wondering if this will always be free?  See why free is better.

Main Menu

Total page views in Statistics Centre

Started by bosswhite, November 03, 2014, 10:03:13 AM

Previous topic - Next topic

bosswhite

The Total page views shown when viewing the Statistics Centre is (obviously) the number of page views since SMF was installed.

I transferred to SMF in April, 2013 but my site had been operating since October 2003 and had already amassed a large number of page views (let's say 1,000,000 as an example).

I would like Statistics Centre to display a figure based on (Total Page Views + 1,000,000) which would then relate to the figure for the full duration of my site.

I assume I need to change something in Sources/Stats.php although I do not know what or how to do this.

If anybody could offer assistance as to how to do this I would be very grateful.
I've been down so long now it's beginning to look like up..

margarett

I guess you can trick it in Stats.php...
Find:
$context['num_hits'] = comma_format($row['hits'], 0);
Replace with
$context['num_hits'] = comma_format($row['hits'] + 1000000, 0);
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

bosswhite

I've been down so long now it's beginning to look like up..

Advertisement: