Author Topic: BK-SMF StatCounter  (Read 16733 times)

Offline BK-S-M-F Modding Team

  • Semi-Newbie
  • *
  • Posts: 13
BK-SMF StatCounter
« on: December 16, 2008, 06:11:11 AM »
Link to Mod

BK-SMF StatCounter

Version: 1.0 Date: November 12, 2008
Compatibility: SMF 1.1.x & SMF 2.0 Beta 4

Made by: BurkeKnight - BK-SMF [nofollow]

This modification adds a way for the admin to add StatCounter [nofollow] to their site.

SMF 1.1.x: Admin > Features and Options


SMF 2.0 Beta 4: 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 organises 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:
You may get support or submit questions and comments in the modification's support topic at the
SMF Site or at BK-SMF. [nofollow]

StatCounter in SMF 1.1.7:


StatCounter in SMF 2.0 Beta 4:
« Last Edit: December 16, 2008, 07:24:24 AM by BurkeKnight »

Offline Nintendofanthr33

  • Jr. Member
  • **
  • Posts: 275
  • Gender: Male
  • site is fixed!
    • VGRecordist
Re: BK-SMF StatCounter
« Reply #1 on: December 16, 2008, 06:29:09 AM »
Nice Idea!


Offline evil-angelist

  • Jr. Member
  • **
  • Posts: 268
Re: BK-SMF StatCounter
« Reply #2 on: December 16, 2008, 06:41:55 AM »
Screenshot ???

Offline BurkeKnight

  • Sr. Member
  • ****
  • Posts: 832
  • Gender: Male
  • Working on upgrading computer.
    • BK-SMF
Re: BK-SMF StatCounter
« Reply #3 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.


My SMF Mods - 13 | My SMF Themes - 6
Please do not PM me for support. Use the threads for my mods & themes for support. Thank you.

Offline evil-angelist

  • Jr. Member
  • **
  • Posts: 268
Re: BK-SMF StatCounter
« Reply #4 on: December 16, 2008, 08:14:00 AM »
ScreenShots of setting areas and a visible StatCounter button, showing where it would show up at, are added to the first post.

Thanks :)

Offline Sabre™

  • Simple Machines Hero
  • ******
  • Posts: 2,018
  • Gender: Male
  • IF IT AINT BROKE, I CAN FIX IT TILL IT IS!!
Re: BK-SMF StatCounter
« Reply #5 on: December 22, 2008, 10:50:44 PM »
You just reminded me that I have an account with statcounter lol
Nice mod mate :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)

[whoop there it iiisss]

Offline BurkeKnight

  • Sr. Member
  • ****
  • Posts: 832
  • Gender: Male
  • Working on upgrading computer.
    • BK-SMF
Re: BK-SMF StatCounter
« Reply #6 on: December 22, 2008, 10:52:56 PM »
ROFL!!!!!

Thank You. :)


My SMF Mods - 13 | My SMF Themes - 6
Please do not PM me for support. Use the threads for my mods & themes for support. Thank you.

Offline Fat_Man

  • Semi-Newbie
  • *
  • Posts: 71
Re: BK-SMF StatCounter
« Reply #7 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.

Code: [Select]
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.



Offline BurkeKnight

  • Sr. Member
  • ****
  • Posts: 832
  • Gender: Male
  • Working on upgrading computer.
    • BK-SMF
Re: BK-SMF StatCounter
« Reply #8 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. :)


My SMF Mods - 13 | My SMF Themes - 6
Please do not PM me for support. Use the threads for my mods & themes for support. Thank you.

Offline adp

  • Semi-Newbie
  • *
  • Posts: 99
Re: BK-SMF StatCounter
« Reply #9 on: February 12, 2009, 06:30:15 AM »
tnks for that

Online Brack1

  • Simple Machines Hero
  • ******
  • Posts: 2,432
  • Gender: Male
  • Boldly Going Mad
    • ParaSciFi
Re: BK-SMF StatCounter
« Reply #10 on: April 24, 2009, 01:07:00 AM »
Easy to set up.

Offline DocPixel

  • Jr. Member
  • **
  • Posts: 115
  • Gender: Female
    • My Lifestyle Photography Portfolio
Re: BK-SMF StatCounter
« Reply #11 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.

Offline TownUnderground

  • Newbie
  • *
  • Posts: 1
Re: BK-SMF StatCounter
« Reply #12 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?

Offline Sabre™

  • Simple Machines Hero
  • ******
  • Posts: 2,018
  • Gender: Male
  • IF IT AINT BROKE, I CAN FIX IT TILL IT IS!!
Re: BK-SMF StatCounter
« Reply #13 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.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)

[whoop there it iiisss]

Offline Kreator

  • Jr. Member
  • **
  • Posts: 135
  • Gender: Male
    • Animanon
Re: BK-SMF StatCounter
« Reply #14 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. 

Offline Kreator

  • Jr. Member
  • **
  • Posts: 135
  • Gender: Male
    • Animanon
Re: BK-SMF StatCounter
« Reply #15 on: December 15, 2009, 02:22:28 AM »
anybody???

Offline mike s

  • Semi-Newbie
  • *
  • Posts: 42
Re: BK-SMF StatCounter
« Reply #16 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 :)

Offline Kreator

  • Jr. Member
  • **
  • Posts: 135
  • Gender: Male
    • Animanon
Re: BK-SMF StatCounter
« Reply #17 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

Offline gastan

  • Jr. Member
  • **
  • Posts: 111
  • Gender: Male
Re: BK-SMF StatCounter
« Reply #18 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.

Offline gastan

  • Jr. Member
  • **
  • Posts: 111
  • Gender: Male
Re: BK-SMF StatCounter
« Reply #19 on: February 03, 2010, 10:00:21 AM »
Bump.  Anyone have any ideas?