[Solved] IE6 Upgrade Warning

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
punkn00dlez
Forum Members
Forum Members
Posts: 13
Joined: Mon Jul 20, 2009 5:28 pm

[Solved] IE6 Upgrade Warning

Post 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.
Last edited by punkn00dlez on Thu Jan 21, 2010 3:32 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: IE6 Upgrade Warning

Post by Jos »

You should place the scriptcode between {literal} and {/literal} tags
punkn00dlez
Forum Members
Forum Members
Posts: 13
Joined: Mon Jul 20, 2009 5:28 pm

Re: IE6 Upgrade Warning

Post by punkn00dlez »

Nice.  I take it all If statements are to be placed inside the literal tag?  What exactly does this tag do?
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: [Solved] IE6 Upgrade Warning

Post 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
Last edited by Jos on Thu Jan 21, 2010 3:46 pm, edited 1 time in total.
Post Reply

Return to “Layout and Design (CSS & HTML)”