Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2004, 02:35 AM
Vampyre's Avatar
Vampyre Vampyre is offline
 
Join Date: Jun 2003
Location: Down Under
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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 -->
Reply With Quote
  #2  
Old 03-25-2004, 11:35 AM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Place it in the FOOTER template
Reply With Quote
  #3  
Old 03-25-2004, 11:38 AM
Vampyre's Avatar
Vampyre Vampyre is offline
 
Join Date: Jun 2003
Location: Down Under
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 03-25-2004, 11:53 AM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 03-25-2004, 10:42 PM
Vampyre's Avatar
Vampyre Vampyre is offline
 
Join Date: Jun 2003
Location: Down Under
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are actually 5 counters in that code.
I like to keep track of the access statistics.
Reply With Quote
  #6  
Old 03-26-2004, 10:13 AM
Vampyre's Avatar
Vampyre Vampyre is offline
 
Join Date: Jun 2003
Location: Down Under
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got them going now.
Just need to escape both double quotes and backslashes with a backslash.
Reply With Quote
Reply


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 12:54 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04498 seconds
  • Memory Usage 2,223KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete