Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Burke ♞ Knight on December 16, 2008, 06:11:11 AM

Title: StatCounter by BurkeKnight Enterprises
Post by: Burke ♞ Knight on December 16, 2008, 06:11:11 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1550)

StatCounter by BurkeKnight Enterprises

Version: 2.0 Date: June 20, 2013
Compatibility: SMF 1.1.x & SMF 2.0

Made by: BurkeKnight (http://www.simplemachines.org/community/index.php?action=profile;u=150637) - BurkeKnight Enterprises (http://www.burkeknight.com/)

This modification adds a way for the admin to add StatCounter (http://www.statcounter.com/) to their site.

SMF 1.1.x: Admin > Features and Options
SMF 2.0.x: Admin > Modifications

It also has a link to StatCounter, so you can set up an account and also set up the counter for your site.

Some of the stats and features StatCounter offers:
Invisible Counter Option, Configurable Counter, Configurable Summary Stats,
Magnify User, Drill Down, Popular Pages, Entry Pages, Exit Pages, Came From,
Keyword Analysis, Recent Keyword Activity, Search Engine Wars, Visitor Paths,
Visit Length, Returning Visits, Recent Pageload Activity, Recent Visitor Activity,
Country/State/City Stats, Recent Visitor Google Map, ISP Stats, Browser Stats,
O.S. Stats, Resolution Stats, JavaScript Stats, Email Reports, Multiple Site Management,
User Access Management, Public Stats, Blocking Cookie.

StatCounter Project:
Inside every FREE StatCounter Account you can set up a StatCounter Project..
Project Code + Log Space:     
..and with every project you get Project Code + Log Space!
Put the code on your webpage:     
You put your code into your webpage and every time someone visits a webpage..
..the code sends visitor info back to your log       
..the StatCounter Project code sends valuable information about the visitor back to your log.
Charts & Lists:
StatCounter organizes all this information into charts & lists to make your analysis easier..
1 Website = 1 Project:
..and if you have more than one site, you simply set up another StatCounter Project in the same account!

Support:
If need support for this mod, please go to BurkeKnight Enterprises (http://www.burkeknight.com/) and register there.

We have a support ticket system for mod support.

We will no longer be supporting this mod here at the SMF site,
as we feel it is easier to keep all support at our site.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.creativecommons.org%2Fl%2Fby-sa%2F3.0%2F88x31.png&hash=deae454f52f8e584e09b3b261c6df3f0e56c64b3) (http://creativecommons.org/licenses/by-sa/3.0/deed.en_US)
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License (http://creativecommons.org/licenses/by-sa/3.0/deed.en_US).

StatCounter in SMF 1.1.7:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi443.photobucket.com%2Falbums%2Fqq160%2FBurkeKnight%2Fbk_smf_statcounter_1a.png&hash=ce8991973955031f3cfc447d056a395aba9416a5)

StatCounter in SMF 2.0.x:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi443.photobucket.com%2Falbums%2Fqq160%2FBurkeKnight%2Fbk_smf_statcounter_2a.png&hash=25d65780c9c12b18a10d952952a3a42f8914f981)
Title: Re: BK-SMF StatCounter
Post by: tyhgdgh on December 16, 2008, 06:29:09 AM
Nice Idea!
Title: Re: BK-SMF StatCounter
Post by: evil-angelist on December 16, 2008, 06:41:55 AM
Screenshot ???
Title: Re: BK-SMF StatCounter
Post by: Burke ♞ Knight on December 16, 2008, 07:25:30 AM
ScreenShots of setting areas and a visible StatCounter button, showing where it would show up at, are added to the first post.
Title: Re: BK-SMF StatCounter
Post by: evil-angelist on December 16, 2008, 08:14:00 AM
Quote from: BurkeKnight on December 16, 2008, 07:25:30 AM
ScreenShots of setting areas and a visible StatCounter button, showing where it would show up at, are added to the first post.

Thanks :)
Title: Re: BK-SMF StatCounter
Post by: Sabre™ on December 22, 2008, 10:50:44 PM
You just reminded me that I have an account with statcounter lol
Nice mod mate :)
Title: Re: BK-SMF StatCounter
Post by: Burke ♞ Knight on December 22, 2008, 10:52:56 PM
ROFL!!!!!

Thank You. :)
Title: Re: BK-SMF StatCounter
Post by: Fat_Man on January 27, 2009, 06:36:15 PM

Geat idea - I went from SMF forums to Google to seek answers and Google found what i needed here... !!! (Statcounter for forum)  :)

All I need to do is get it to work.

1.  Execute Modification  ./Themes/default/index.template.php  Test failed
2. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
3. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test successful
4. Execute Modification ./Sources/ModSettings.php Test successful


I am using the DILBER theme... does that matter?

I've attached the index.template.php file from the "default" folder.

Thanks for any help/instructions.


Title: Re: BK-SMF StatCounter
Post by: Burke ♞ Knight on January 27, 2009, 06:45:08 PM
On the index.template.php edit, you can actually place that just about anywhere you want the statcounter to show up at.
Just be sure to back up the file first, and make sure that you edit it correctly for the place you want it at. :)
Title: Re: BK-SMF StatCounter
Post by: adp on February 12, 2009, 06:30:15 AM
tnks for that
Title: Re: BK-SMF StatCounter
Post by: TheListener on April 24, 2009, 01:07:00 AM
Easy to set up.
Title: Re: BK-SMF StatCounter
Post by: DocPixel on June 24, 2009, 03:01:09 PM
I've installed the mod and added the code to my custom theme index.template.php. But on statcounter, it's only counting the homepage stats. How can I get it to show stats for all the forum pages?

SMF 1.1.9

Thanks.
Title: Re: BK-SMF StatCounter
Post by: TownUnderground on October 02, 2009, 10:00:43 PM
I have two statcounter boxes showing up at the bottom of my forum, shouldn't there be only one?
Title: Re: BK-SMF StatCounter
Post by: Sabre™ on October 02, 2009, 10:11:11 PM
Yes, there should only be one.
You have duplicate code in your index.template.php, just remove it and also check your Modifications.english.php and ModSettings.php.
Title: Re: BK-SMF StatCounter
Post by: Kreator on December 08, 2009, 03:53:37 PM
Can anybody point me in the right direction with editing the index.template.php. I am trying to insert this into SMF2 RC2

but I get a parse error whenever I upload the file to the server, my template is attached. 
Title: Re: BK-SMF StatCounter
Post by: Kreator on December 15, 2009, 02:22:28 AM
anybody???
Title: Re: BK-SMF StatCounter
Post by: mike s on December 18, 2009, 05:17:01 PM
i tried installing to a test RC2 area, but the installation tests failed so I didnt complete it. Would love to see this upgraded for RC2 :)
Title: Re: BK-SMF StatCounter
Post by: Kreator on January 12, 2010, 03:37:13 PM
Finally got it working on RC2 ..... Just stick the code for index.template.php anywhere before the </body> tag
Title: Re: BK-SMF StatCounter
Post by: gastan on February 02, 2010, 12:00:38 AM
I hope this mod is still being supported.  I'm using SMF ver 1.1.11 with default theme.

Have installed this mod and it seems to work fine ... but ...

Just now I checked my forum and Forum Stats said there were 42 guests online.  I logged into StatCounter and it is telling me that no one has visited my forum (there have been no page loads) in the last 5 hours.  ??  ??  ?? 

Is this a problem with the mod or with StatCounter?  How can there be 42 people on the forum but StatCounter doesn't log them?  Or is SMF messed up somehow?

Thanks.
Title: Re: BK-SMF StatCounter
Post by: gastan on February 03, 2010, 10:00:21 AM
Bump.  Anyone have any ideas?
Title: Re: BK-SMF StatCounter
Post by: gastan on February 04, 2010, 09:03:35 AM
bump
Title: Re: BK-SMF StatCounter
Post by: Kreator on February 04, 2010, 10:13:11 AM
Have you inserted the statcounter code into the forum ???
Title: Re: BK-SMF StatCounter
Post by: gastan on February 04, 2010, 01:13:42 PM
Quote from: Kreator on February 04, 2010, 10:13:11 AM
Have you inserted the statcounter code into the forum ???

Yes.  Since SMF is contained in a folder called "Forum" inside the website for our organization I used the StatCounter code for the website.  The StatCounter counter shows at the bottom of every page of the forum - even the admin areas.

When logged into StatCounter each page load is shown whether it is for a page on the website or a page on the forum.  Still --------- StatCounter will show NO page loads for several (3-4-5) hours (on either the website OR the forum) but when you go directly to the forum the stats will often show 30-40-50 guests online.

(Thanks for responding)
Title: Re: BK-SMF StatCounter
Post by: Kreator on February 04, 2010, 01:28:34 PM


You don`t need to post it everywhere, there is a section in admin to post the code, I`m using SMF 2.0 RC2  and its in Admin/Configuration / Modification Settings/ just insert the code once in there.  I have had no problems whatsoever with it
Title: Re: BK-SMF StatCounter
Post by: gastan on February 04, 2010, 02:38:55 PM
I didn't post it/insert it everywhere.  I put it in the box that the mod creates in the admin area.  That is the only place I put it.  The counter shows on every forum page and I assume that that is one function of the mod.
Title: Re: BK-SMF StatCounter
Post by: steveraven on January 16, 2011, 02:21:17 PM
I have a problem -

I've had a statcounter account for ages on my main website and I thought I'd open a seperate account in order to monitor my SMF forum.

My SMF version is 1.1.12 and using Blackbox theme.

On going to Configuration>> Features and Options>> Enter Statcounter html code, when I hit 'Save', my browser just hangs and will not reload.

Using IE7

Title: Re: BK-SMF StatCounter
Post by: steveraven on January 17, 2011, 10:50:52 AM
Right, I got around the IE7 thing by dumping it and using Opera.

But theres a problem and I think its at Statcounter's end, but they arent replying - when you try to create your 'default installation code' on the account wizard, you cant get it. Check in the code itself and you'll find you created it for tumblr, websitetonight, drupal, or any of a whole manner of things, but no default installation code at all.
Title: Re: BK-SMF StatCounter
Post by: Paccman on September 15, 2011, 07:58:50 PM
Does this work for 2.0?
Title: Re: BK-SMF StatCounter
Post by: TheListener on September 15, 2011, 08:29:53 PM
I very much doubt it.

The mod hasn't been updated for a long time and the er post before yours was January this year.
Title: Re: BK-SMF StatCounter
Post by: Kreator on September 16, 2011, 02:33:47 PM
I have it running on SMF2.0
Title: Re: BK-SMF StatCounter
Post by: Theatre Publicity on December 16, 2011, 11:34:24 AM
I just installed this mod, will see what happens.
Title: Re: BK-SMF StatCounter
Post by: Burke ♞ Knight on June 16, 2013, 09:41:14 PM
Mod has been tested and re-done with 2.0.x in mind.
It is same version since no real changes had to be made, but name change for the BK Modding Team.

Burke


If need support for this mod, please go to BurkeKnight Enterprises (http://www.burkeknight.com/) and register there.

We have a support ticket system for mod support.

We will no longer be supporting this mod here at the SMF site,
as we feel it is easier to keep all support at our site.
Title: Re: StatCounter by BurkeKnight Enterprises
Post by: meemzo on August 16, 2014, 03:27:54 PM
Just wanted to add, that I got this to work AFTER I choose the default installation with Standard XHTML  Worked for me after trying every other installation, so I thought I'd share