Page 1 of 1

[Solved] IE6 Upgrade Warning

Posted: Thu Jan 21, 2010 3:04 pm
by punkn00dlez
I'm attempting to use the IE6 upgrade warning available at http://code.google.com/p/ie6-upgrade-warning/ and when I place the code in the body of my template, I get the following error at the top of my page.

Code: Select all

string(122) "Smarty error: [in tpl_body:44 line 6]: syntax error: unrecognized tag: e("/js/ie6/") (Smarty_Compiler.class.php, line 446)" string(110) "Smarty error: [in tpl_body:44 line 6]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" 
I have no idea what this means or how to fix it.  Can anyone help?  Sorry if this was posted in the incorrect place.

Re: IE6 Upgrade Warning

Posted: Thu Jan 21, 2010 3:09 pm
by Jos
You should place the scriptcode between {literal} and {/literal} tags

Re: IE6 Upgrade Warning

Posted: Thu Jan 21, 2010 3:24 pm
by punkn00dlez
Nice.  I take it all If statements are to be placed inside the literal tag?  What exactly does this tag do?

Re: [Solved] IE6 Upgrade Warning

Posted: Thu Jan 21, 2010 3:44 pm
by Jos
No it is a smarty thing.

In the javascript you see the braces {  }
Smarty uses them around its tags. So to prevent Smarty from parsing them, you have to use the {literal} tags. Everything between them will not be interpreted by Smarty

See http://www.smarty.net/manual/en/languag ... iteral.php