What are these errors ?

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
User avatar
amin30b
Forum Members
Forum Members
Posts: 146
Joined: Sat Mar 31, 2007 8:02 am

What are these errors ?

Post 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 .
User avatar
amin30b
Forum Members
Forum Members
Posts: 146
Joined: Sat Mar 31, 2007 8:02 am

Re: What are these errors ?

Post by amin30b »

I have changed { and } with {literal} and {/literal} .
Now there is no error :) but javascript doesn`t work  :-\
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: What are these errors ?

Post 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)...
Post Reply

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