StatCounter User Forum  
StatCounter Free web tracker and counter

Go Back   StatCounter User Forum > StatCounter.com > Help

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 08-29-2005, 07:22 AM
Rainfire Rainfire is offline
Junior Member
 
Join Date: Aug 2005
Posts: 2
Default Statcounter & PHPNuke 7.7

I recently installed PHPNuke on my site, and can't quite figure out how to incorporate Statcounter with it. I did a search on the forums and found a topic that looked promising, but when I switched the javascript over to php, and insert it into the javascript.php, my site would go completely blank. Are there alternate ways (or something I might be doing wrong perhaps?) that somone could describe to me? (Step by step if possible, as some of this goes right over my head.) Thanks.

BTW, this is what I had put in the Javascript.php file, I have a feeling it could be the "var sc_security" that is causin a problem, I really don't know.

Code:
echo "\n";
echo "<script type=\"text/javascript\" language=\"javascript\">\n";
echo "var sc_project=xxxxxx;\n";
echo "var sc_invisible=1;\n";
echo "var sc_partition=7;\n";
echo "var sc_security="f94ecb8c";\n";
echo "</script>\n";

echo "<script type=\"text/javascript\" language=\"javascript\" src=\"http://www.statcounter.com/counter/counter.js\"></script><noscript><a href=\"http://www.statcounter.com/\" target=\"_blank\"><img src=\"http://c8.statcounter.com/counter.php?sc_project=xxxxxx&amp;java=0&amp;security=f94ecb8c&amp;invisible=1\" alt=\"counter\" border=\"0\"></a> </noscript>\n";
echo "\n\n";
('xxxxxx' in place of my project number )

If I screwed somethin up, please be gentle, I'm just starting to learn.
  #2  
Old 08-29-2005, 01:19 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,173
Default

Don't put the code there.

Find the template for the skin you use and put it where you have </body> tag generated from. Perhaps in some footer section .

Create a text file using Notepad, paste in the generated code as is, and save the file under some name like my-counter.php . Then include it where you need it to appear, using
Quote:
<?

include ("my-counter.php");

?>
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #3  
Old 08-29-2005, 07:39 PM
Rainfire Rainfire is offline
Junior Member
 
Join Date: Aug 2005
Posts: 2
Default

Thanks so much for the help, now it's working great.
  #4  
Old 08-30-2005, 12:16 AM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,173
Default

Phew! happy to hear it
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:07 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.