SimplePortal

Support => English Support => Topic started by: Simone on November 23, 2008, 09:05:44 PM

Title: Help with javascript hit counter
Post by: Simone on November 23, 2008, 09:05:44 PM
My brother insists on having a site counter on his site (link in profile) & wants the one he had on old site.
Thought best to ask here as its only wanted on portal page.

For the life of me I cant get this to work, either I end up with all sorts of errors or the counter box just doesn't show.
Want it to appear @ the very bottom of footer under all the © using Vintage Theme, SimplePortal Classic 2.0.5,
SMF 1.1.7

So if some1 can point me in the right direction or look @ the attached files, would be greatly appreciated, & get bro off my back  :D


Edited: Attached files removed
Title: Re: Help with javascript hit counter
Post by: ccbtimewiz on November 23, 2008, 10:08:52 PM
Why not use PHP?

Something like...

Code: [Select]
?php trackStats(array('hits' => '+')); trackStats(); ?>
Title: Re: Help with javascript hit counter
Post by: ibm450 on November 24, 2008, 08:23:52 AM
Here you go

Mods attached

Create php block and add the following:

Code: [Select]
Pageview_counter();
echo ' <div>', Unique_Hits(), '</div>';

Demo: yarriesafety.mine.nu (http://yarriesafety.mine.nu)
Title: Re: Help with javascript hit counter
Post by: ibm450 on November 24, 2008, 11:12:21 AM
did this help?
Title: Re: Help with javascript hit counter
Post by: Simone on November 24, 2008, 03:54:21 PM
Thanks for help guys.
Didn't go with either, finally sorted it out.

Got rid of all the tracking associated with it & just went with the counter.

Title: Re: Help with javascript hit counter
Post by: ibm450 on November 25, 2008, 05:45:42 AM
yeah good stuff from AFC, will use my self. cheers

SimplePortal 2.3.8 © 2008-2024, SimplePortal