coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Scias on January 08, 2008, 10:58:20 AM

Title: Adding a "Counter".
Post by: Scias on January 08, 2008, 10:58:20 AM
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. :)
Title: Re: Adding a "Counter".
Post by: Nibbler on January 08, 2008, 11:02:28 AM
Add it to your theme's template.html.
Title: Re: Adding a "Counter".
Post by: Scias on January 08, 2008, 12:25:42 PM
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