I want to edit the global.tpl file to add a footer that counts statistics using the level 10 counter. This folowing is the code I'm trying to place in the footer. However, I believe that I run into errors because the { brackets conflict with the smarty tags.
I don't know what those are but how do I get around that and still get the counter to load?
<!-- L10 Hit Counter page code -->
<table border=0 cellspacing=0 cellpadding=0 align=center>
<script language="javascript">
var success=0; cRef=""; cRefType=""; cPage="";
var L10qstr,L10pc,L10ref,L10a,L10pg; L10pg=document.URL.toString(); L10ref=document.referrer;
if(top.document.location==document.referrer || (document.referrer == "" && top.document.location != "")) {L10ref=top.document.referrer;}
L10qStr = "pg="+escape(L10pg)+"&ref="+escape(L10ref)+"&os="+escape(navigator.userAgent)+"&nn="+escape(navigator.appName)+"&nv="+escape(navigator.appVersion)+"&nl="+escape(navigator.language)+"&sl="+escape(navigator.systemLanguage)+"&sa="+success+"&cR="+escape(cRef)+"&cRT="+escape(cRefType)+"&cPg="+escape(cPage);
if(navigator.appVersion.substring(0,1) > "3") { L10d = new Date(); L10qStr = L10qStr+"&cd="+screen.colorDepth+"&sx="+screen.width+"&sy="+screen.height+"&tz="+L10d.getTimezoneOffset();}
<!-- The L10 Hit Counter logo and links must not be removed or altered -->
if((location.href.substr(0,6)=="https:") || (location.href.substr(0,6)=="HTTPS:")) { L10pc="https"; } else { L10pc="http"; }
document.write('<tr><td><a href="http://chipperway.com//L10Apps/L10HC_Reporter.html" target=_blank><img border=0 hspace=0 vspace=0 width=25 height=25 src="'+L10pc+'://chipperway.com//L10Apps/L10HC_Counter.php?'+L10qStr+'" alt="LevelTen Hit Counter 3.15"></a></td>');
</script><noscript><tr><td><a href="http://chipperway.com//L10Apps/L10HC_Reporter.html"><img border=0 hspace=0 vspace=0 width=25 height=25 src="http://chipperway.com//L10Apps/L10HC_Counter.php?acct=." alt="L10 Web Stats Reporter 3.15"></a></td></noscript>
<!-- The credit logos must not be removed -->
<td><a href='http://www.leveltendesign.com/L10Apps/HC/' target='_blank'><img border='0' src='http://chipperway.com//L10Apps/L10HC_Img_R.gif' width='70' height='25' alt='LevelTen Hit Counter - Free PHP Web Counters'></a></td></tr><tr><td colspan=2><a href='http://www.leveltendesign.com' target='_blank'><img border='0' src='http://chipperway.com//L10Apps/L10HC_Img_B.gif' width='95' height='9' alt='LevelTen Website Design & Web Development Firm - Dallas, Houston, Austin, Texas'></a></td>
</tr></table>
<!-- end: L10 Hit Counter page code -->
Here's the error message I get when I place the code in global.tpl:
Fatal error: Smarty error: [in gallery:templates/global.tpl line 54]: syntax error: unrecognized tag: L10ref=top.document.referrer; (Smarty_Compiler.class.php, line 417) in /homepages/3/d87994343/htdocs/gallery2/lib/smarty/Smarty.class.php on line 1088
----
Gallery URL (optional): http://www.chipperway.com/gallery2/main.php
Gallery version: Latest Nightly build from 2/3
Webserver (with version): ? (1&1 shared hosting plan)
Datatabase (with version): MySQL Database 4.0.20
PHP version (eg 4.2.1): 4.3.6
phpinfo URL (optional):
Graphics Toolkit(s): Gd & NetPBM
Operating system: XP
Web browser/version: Firefox 1.0
Posts: 389
Replace all {with {ldelim} and all } with {rdelim}
Posts: 8601
or wrap the whole section in {literal} .. {/literal}
http://smarty.php.net/