mhdhallak
09-13-2006, 08:16 AM
I'm using v3.6 of vB. I signed up for a StatCounter account and was given a script code to include in my forum pages. After some research, I figured the proper place to put such code (which should ideally be on every page in the forum) is in GENERIC_SHELL template which contains the skeleton HTML tags for all pages.
My GENERIC_SHELL now looks something like:
$stylevar[htmldoctype]
<html id="moooo" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>
$header
$navbar
$HTML
$footer
<!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
var sc_project=1819955;
var sc_invisible=1;
var sc_partition=13;
var sc_security="1540f2be";
var sc_remove_link=1;
</script>
<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><img src="http://c14.statcounter.com/counter.php?sc_project=1819955&java=0&security=1540f2be&invisible=1" alt="free web site hit counter" border="0"> </noscript>
<!-- End of StatCounter Code -->
</body>
</html>
However, when I load any page in the forum, i don't see the code being injected in the resulting HTML at all.
What am I doing wrong?
ps., link to my forum (http://www.alwaysaround.net/vb/index.php)
My GENERIC_SHELL now looks something like:
$stylevar[htmldoctype]
<html id="moooo" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>
$header
$navbar
$HTML
$footer
<!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
var sc_project=1819955;
var sc_invisible=1;
var sc_partition=13;
var sc_security="1540f2be";
var sc_remove_link=1;
</script>
<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><img src="http://c14.statcounter.com/counter.php?sc_project=1819955&java=0&security=1540f2be&invisible=1" alt="free web site hit counter" border="0"> </noscript>
<!-- End of StatCounter Code -->
</body>
</html>
However, when I load any page in the forum, i don't see the code being injected in the resulting HTML at all.
What am I doing wrong?
ps., link to my forum (http://www.alwaysaround.net/vb/index.php)

