Page 1 of 1

What are these errors ?

Posted: Tue Aug 14, 2007 1:44 am
by amin30b
Hi

I have just added a new javascript to my old theme . But these messages appears on top of page :
string(147) "Smarty error: [in template:20 line 37]: syntax error: unrecognized tag: isDebug: true, debugAtAllCosts: false (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in template:20 line 37]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in template:20 line 48]: syntax error: unrecognized tag 'switch' (Smarty_Compiler.class.php, line 590)"
What`s problem ?

In a separate HTML file this javascript works fine but in CMSMS it cause to appear these errors .

Re: What are these errors ?

Posted: Tue Aug 14, 2007 2:23 am
by amin30b
I have changed { and } with {literal} and {/literal} .
Now there is no error :) but javascript doesn`t work  :-\

Re: What are these errors ?

Posted: Tue Aug 14, 2007 2:35 am
by Dr.CSS
Put the { and } back in the code, the smarty engine uses these for tag calls hence the errors, and use {literal} in front and {/literal} at the end, if you look at a default install template you will see a call for an IE script (example 1) that uses these, have you tried using an external script (example 2) and calling it into the template...

1)...
{literal}

=b){nw=b+"px";}if(w



#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}


{/literal}

2)...