vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Hit counters at end of vB pages (https://vborg.vbsupport.ru/showthread.php?t=88747)

Vampyre 03-25-2004 02:35 AM

Hit counters at end of vB pages
 
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!="Netsc ape"?
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.refe rrer:top.document.referrer);
p+="&tz="+escape(t.getTimezoneOffset());
p+="&ch="+escape(t.getHours());
p+="&js=1";
p+="&ul="+escape(navigator.appName=="Netscape"?nav igator.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:


All times are GMT. The time now is 05:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01111 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete