Adding a "Counter". Adding a "Counter".
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Adding a "Counter".

Started by Scias, January 08, 2008, 10:58:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Scias

hi all, i been using a certain "counter" for checking daily amount of ppl, hits, etc, using a little tag added to a page, but i been unsure how, and IF i can even add such a tag to the gallery? preferably near the bottom, by the "powered by" tags and such, as then it is out of the way, if anyone would be so nice to direct me to how to properly add this snippet of code, without breaking the gallery, be much appreciated.

<!---Counter Code do not modify--->
<script language="javascript">
re=escape(document.referrer);re=(re=="undefined"||re=="")?"bookmark":re;
args="&re="+re;
document.write("<a HREF=http://www.counter.com/ target=_blank>");
document.write("<img BORDER=0 SRC=http://www.counter.com/counter.php?id=13190106&re="+args+"></a>");
</script>
<noscript>
<A HREF=http://www.counter.com/ target="_blank">
<IMG BORDER=0 SRC=http://www.counter.com/counter.php?id=13190106></A>
</noscript>
<!---Counter Code do not modify--->

please note, i changed the "website name" to not mis-direct, or such user's. :)

Nibbler

Add it to your theme's template.html.

Scias

so it wont "mess" nothing in the code up? if so, great, just better to be cautious, then cause a bug and come crying back here hehe :P