Page 1 of 2
**NEW** Site Statistics Add on
Posted: Fri May 13, 2005 2:17 pm
by kingfhb
Anyone who can create this into a module, it would be greatly appreciated.
This is a small but VERY powerful statistics system that I found that is free. It would be an AWSOME addition as a module!!!
Here is how I installed it...
1. Copy the "MecStats" directory up to the root of your CMS installation.
2. Edit the "admin/lang/en_US/admin.inc.php" file as follows...
at the end of the file, just before the "?>" add
$lang['admin']['adminstats'] = 'View Site Statistics'; //needs translation
Close and save the file.
3. Edit the "admin/menu.php" file as follows...
around line 69, find the following text...
add directly below it, before the "[/quote]
Close and save the file.
4. Edit the main "index.php" file as follows...
Just above the "echo $html;" line add
require('mecstats/hit.inc');
Close and save the file.
And that is it!!! You are now logging all of the hits to your site, Browsers, search engines, robots, etc.!!!!!!!
It has been working great for me!!! Let me know what you all think!!!
Remember, a module would be great!!!
You can download the mecstats package here...
http://www.matt-toigo.com/mec/download_me.php
Re: **NEW** Site Statistics Add on
Posted: Sat May 14, 2005 6:31 pm
by kingfhb
Well, views but no comments. Has anyone tried it out? Comments are definately welcome!!!
I hope the package is working for you all.
Re: **NEW** Site Statistics Add on
Posted: Sun May 15, 2005 10:03 pm
by koehler
You may provide a link to a working demo to get a feedback.
What will this statistic add on exactly count ?
Re: **NEW** Site Statistics Add on
Posted: Mon May 16, 2005 2:28 am
by kingfhb
Re: **NEW** Site Statistics Add on
Posted: Mon May 16, 2005 8:09 am
by gnolen
Looks like a great solution kingfhb! This was well needed for CMSMS as the earlier stats was a bit to thin. Here you have almost everything included, the only important thing to make it complete is to display the searchwords more easier for searchengines..And to shorten the referingurl(or ) if really long. Now it makes a mess of the layout.
Great stuff!!! Thanks!
Re: **NEW** Site Statistics Add on
Posted: Mon May 16, 2005 10:45 am
by gnolen
Hey king,
I just looked a bit closer on your script and if I press 'Latest Visitors' I get stats on every page looked at and not the single visitors and able to view full path..This is not correct, right?
Greetings from Gnolen
P.S. This is from looking at your demo.
Re: **NEW** Site Statistics Add on
Posted: Mon May 16, 2005 12:45 pm
by kingfhb
gnolen wrote:
Hey king,
I just looked a bit closer on your script and if I press 'Latest Visitors' I get stats on every page looked at and not the single visitors and able to view full path..This is not correct, right?
Greetings from Gnolen
P.S. This is from looking at your demo.
I'll be darned, your correct. Sorry. It is actually the placement of the "include". I have it placed in the top of the index.html and it should be relocated to maybe the individual content pages.
Thanks for the catch!
Re: **NEW** Site Statistics Add on
Posted: Mon May 23, 2005 1:20 pm
by gnolen
Hey kingfhb!
Does this script work for the new beta cms? I have tried it but nothing shows up in the admin and after some chmoding to get rid of some errors I still get:
Warning: Cannot modify header information - headers already sent by (output started at /home/gnolman/public_html/cmsmadesimple/mecstats/hit.inc:24) in /home/gnolman/public_html/cmsmadesimple/lib/content.functions.php on line 336
What am I doing wrong do you think?
Thanks / Gnolen
Re: **NEW** Site Statistics Add on
Posted: Wed May 25, 2005 10:34 am
by spardose
I've just installed it and it seems to work fine. Is there some way I can block my own IP, though?
Re: **NEW** Site Statistics Add on
Posted: Wed May 25, 2005 1:41 pm
by kingfhb
gnolen wrote:
Hey kingfhb!
Does this script work for the new beta cms? I have tried it but nothing shows up in the admin and after some chmoding to get rid of some errors I still get:
Warning: Cannot modify header information - headers already sent by (output started at /home/gnolman/public_html/cmsmadesimple/mecstats/hit.inc:24) in /home/gnolman/public_html/cmsmadesimple/lib/content.functions.php on line 336
What am I doing wrong do you think?
Thanks / Gnolen
Not sure, make sure you do not have any <? or PHP tags around the code.
Re: **NEW** Site Statistics Add on
Posted: Wed May 25, 2005 1:42 pm
by kingfhb
spardose wrote:
I've just installed it and it seems to work fine. Is there some way I can block my own IP, though?
I am not sure. Maybe check the web site for the script. I will look into it and see what I can find.
Re: **NEW** Site Statistics Add on
Posted: Wed May 25, 2005 2:10 pm
by kingfhb
gnolen wrote:
Hey king,
I just looked a bit closer on your script and if I press 'Latest Visitors' I get stats on every page looked at and not the single visitors and able to view full path..This is not correct, right?
Greetings from Gnolen
P.S. This is from looking at your demo.
Okay, I modified the last install step. The require should be relocated. It is properly counting now.
Re: **NEW** Site Statistics Add on
Posted: Wed May 25, 2005 5:37 pm
by Alex_Leipzig
spardose wrote:
I've just installed it and it seems to work fine. Is there some way I can block my own IP, though?
see file settings.inc in the mecstats directory
Code: Select all
//Admin IP
//This is your ip address, if you don't want the stats to count you when you visit your site enter your IP address
$SETTINGS['admin_ip'] = '';
This script is a blast!
Re: **NEW** Site Statistics Add on
Posted: Sat May 28, 2005 7:40 pm
by kingfhb
This script is a blast!
Thanks Alex, I just happened upon it one day while searching for a free statistics script. Pretty powerful for being so small.
I hope someone can actually create a module for it. I think it would benefit the community a lot.
Re: **NEW** Site Statistics Add on
Posted: Sun May 29, 2005 1:47 pm
by pinthenet
Just tried it under 0.10beta3 latest daily but it doesn't work - errors from main page (index.php) and the admin menu doesn't appear at all.
Are the instructions from the first post still valid?
John