PDA

View Full Version : Hit counters at end of vB pages


Vampyre
03-25-2004, 02:35 AM
Hello,

I'm just a newbie in vBulletin scene and am trying to add my hit counters at the bottom of each page in the forum.
I've been experimenting with "template" table, but nothing has worked for me so far.

Does anyone have any other suggestion on how I can get these codes into the end of every vB page, please?

Thanks for your advice,
n00b

---------

<a target="_blank" href="http://t.extreme-dm.com/?login=edaffair">
<img src="http://v1.extreme-dm.com/i.gif" height=18
border=0 width=18 alt=""></a><script language="javascript1.2"><!--
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//-->
</script><script language="javascript"><!--
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXd.write("<img src=\"http://t0.extreme-dm.com",
"/c.g?tag=edaffair&j=y&srw="+EXw+"&srb="+EXb+"&",
"l="+escape(EXd.referrer)+"\" height=1 width=1>");//-->
</script><noscript><img height=1 width=1 alt=""
src="http://t0.extreme-dm.com/c.g?tag=edaffair&j=n"></noscript>
<!-- Begin Nedstat Basic code -->
<!-- Title: Thai Scholars Information Portal -->
<!-- URL: http://www.thaischolars.info/ -->
<script language="JavaScript" type="text/javascript" src="http://m1.nedstatbasic.net/basic.js">
</script>
<script language="JavaScript" type="text/javascript" >
<!--
nedstatbasic("ACw9QQZfnfIe+VzD2M4GMS0m+0Mg", 0);
// -->
</script>
<noscript>
<a target="_blank" href="http://www.nedstatbasic.net/stats?ACw9QQZfnfIe+VzD2M4GMS0m+0Mg"><img
src="http://m1.nedstatbasic.net/n?id=ACw9QQZfnfIe+VzD2M4GMS0m+0Mg"
border="0" width="18" height="18"
alt="Nedstat Basic - Free web site statistics
Personal homepage website counter"></a><br>
<a target="_blank" href="http://www.nedstatbasic.net/">Free counter</a>
</noscript>
<!-- End Nedstat Basic code -->
<!--BEGIN WEB STAT CODE---->
<SCRIPT LANGUAGE="javascript1.1"> page="frontpage";</SCRIPT>
<SCRIPT LANGUAGE="javascript1.1" src="http://truehits.gits.net.th/data/l0020873.js"></SCRIPT>
<!-- END WEBSTAT CODE -->
<!--ONESTAT SCRIPTCODE START-->
<!--
// Modification of this code is not allowed and will permanently disable your account!
// Account ID : 194194
// Website URL: http://www.ThaiScholars.info/
// Copyright (C) 2002-2004 OneStat.com All Rights Reserved
-->
<!--div id="OneStatTag"><table border='0' cellpadding='0' cellspacing='0'><tr><td align='center'-->
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function OneStat_Pageview()
{
var d=document;
var sid="194194";
var CONTENTSECTION="";
var CUSTOMDATA="";
var osp_URL=d.URL;
var osp_Title=d.title;
var t=new Date();
var p="http"+(document.URL.indexOf('https:')==0?'s':'')+"://stat.onestat.com/stat.aspx?tagver=2&sid="+sid;
p+="&url="+escape(osp_URL);
p+="&ti="+escape(osp_Title);
p+="&section="+escape(CONTENTSECTION);
p+="&custom="+escape(CUSTOMDATA);
p+="&rf="+escape(parent==self?window.document.referrer:top. document.referrer);
p+="&tz="+escape(t.getTimezoneOffset());
p+="&ch="+escape(t.getHours());
p+="&js=1";
p+="&ul="+escape(navigator.appName=="Netscape"?navigator.language:navigator.userLanguage);
if(typeof(screen)=="object"){
p+="&sr="+screen.width+"x"+screen.height;p+="&cd="+screen.colorDepth;
p+="&jo="+(navigator.javaEnabled()?"Yes":"No");
}
d.write('<A HREF="http://www.onestat.com/aspx/login.aspx?sid='+sid+'" target=_blank><IMG ID="ONESTAT_TAG" height="18" width="18" BORDER="0" SRC="'+p+'" ALT="This site tracked by OneStat.com. Get your own free website counter."></A>');
}

OneStat_Pageview();
//-->
</script>
<NOSCRIPT>
<A HREF="http://www.onestat.com/aspx/login.aspx?sid=194194" target=_blank><IMG height="18" width="18" BORDER="0" SRC="http://stat.onestat.com/stat.aspx?tagver=2&sid=194194&js=No&" ALT="This site tracked by OneStat.com. Get your own free website counter." ></a>
</noscript>
<!--/td></tr><tr><td><div><a>Counter</a></div></td></tr></table></div-->
<!--ONESTAT SCRIPTCODE END--><br>
<!-- BEGIN FASTCOUNTER CODE -->
<a href="http://member.bcentral.com/cgi-bin/fc/fastcounter-login?3350147" target="_blank">
<img border="0" src="http://fastcounter.bcentral.com/fastcounter?3350147+6700301"></a>
<!-- END FASTCOUNTER CODE -->

MindTrix
03-25-2004, 11:35 AM
Place it in the FOOTER template

Vampyre
03-25-2004, 11:38 AM
Thanks, MindTrix.

I've tried putting them in the FOOTER template, but I kept getting eval'd error in global.php file.

I've only escaped the double quote with a backslash. Is there any other character that I must escape as well, please?

MindTrix
03-25-2004, 11:53 AM
Looks like alot of code to place just for a hit counter, when i got one for my website (html) it was just a couple of lines

Vampyre
03-25-2004, 10:42 PM
There are actually 5 counters in that code. ;)
I like to keep track of the access statistics. :p

Vampyre
03-26-2004, 10:13 AM
Got them going now. :D
Just need to escape both double quotes and backslashes with a backslash. :cool: