Page 1 of 1

Smarty error

Posted: Sat Mar 08, 2008 11:37 pm
by tonypb
string(137) "Smarty error: [in template:20 line 90]: syntax error: expecting '=' after attribute name 'content' (Smarty_Compiler.class.php, line 1555)"

i get this message sometimes when i go to the site and sometimes i dont.... ive tried recreating the page and tried to make sure i kept every piece of code needed but still... any ideas

the site is http://www.homesourcemonthly.com/ (still being developed)

here is the code for the homepage template


{* Change lang="en" to the language of your site *}

{sitename} - {title}
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}

{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}

{stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{* Relational links for interconnections between pages, good for accessibility and Search Engine Optmization *}


{literal}


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



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


{/literal}
{* The min and max page width for Internet Explorer is set here. For other browsers it's in the stylesheet "Layout: Top menu + 2 columns" *}



{* The above JavaScript is required for CSSMenu to work in IE *}



  {* start accessibility skip links *}
   
      {anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}
      {anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}
   
    {* end accessibility skip links *}
   
    {* Horizontal ruler that is hidden for visual browsers by CSS *}
   
   
    {* Start Header, with logo image that links to the default start page. Logo image is changed in the stylesheet  "For template: Left menu + 1 column" *}
     
      Home Source Monthly
      {* Start Search *}
      {search}
      {* End Search *}
    {* End Header *}
   
   
    {* Start Navigation *}
   
     
       
          Navigation
          {menu template='cssmenu.tpl'}
         
       
     
             
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shoc ... s/flash/ad' ); //end AC code

         
         
         
       
     
   
    {* End Navigation *}
   
      {* Start Sidebar *}
        {content block='Sidebar'}
        {* End Sidebar *}
        {cms_module module='Banners' category="test"}
        {NMS content name='newsletter' archivemsg_template="e-newsletter" }
     
     
        {* Start Content (Navigation and Content columns) *}
        {* Start Content Area *}
          {print showbutton=false script=true}
          {title}
          {content}

          {* Start relational links *}
         
         
            {anchor anchor='pagewrapper' text='^ Top'}
         


          {* End relational links *}
         
          {* End Content Area *}
        {* End Content *}
   
    {* Start Footer. Edit the footer in the Global Content Block called "footer" *}
   
      {global_content name='footer'}
      {global_content name='Designed'}
   
    {* End Footer  *}

{* end pagewrapper *}


Re: Smarty error HELP

Posted: Sun Mar 09, 2008 12:21 am
by Nullig
You javascript should be enclosed in {literal} tags, like...

Code: Select all

{literal}
<__script__ type="text/javascript">

down to...

</noscript>
{/literal}
Nullig

Re: Smarty error HELP

Posted: Sun Mar 09, 2008 12:25 am
by tonypb
oh... yeah... in the flash right? duhh!

Re: Smarty error HELP

Posted: Sun Mar 09, 2008 12:30 am
by calguy1000
Although this help request worked, please read the sticky posts in the various forums about 'HOW TO ASK FOR HELP AND ACTUALLY GET AN ANSWER'....

Normally, if I see somebody says HELP or URGENT or something like that in their forum posts, I just ignore them.

If they don't have that, and the subject indicates that they the question is possibly posted in a reasonably correct forum, then I may actually read them.... if they are well researched, well worded, and knowledge based questions I may actually respond.

On the other hand.... if they are dumb, one or two sentence questions with no additional information, I may just delete them.  If they are posted in the wrong forum, I may just move them.

Re: Smarty error HELP

Posted: Sun Mar 09, 2008 12:34 am
by tonypb
my putting HELP didnt mean to insult or be rude or anything... i just needed help

i did try the info given to me and i'm still getting the error, even though i do realised i needed to do that anyway

Re: Smarty error HELP

Posted: Sun Mar 09, 2008 12:38 am
by calguy1000
Your needing help doesn't mean anything 95% or more of the posts on the forum are from people needing help.

Please read the rules and the various sticky posts before posting.

Re: Smarty error HELP

Posted: Sun Mar 09, 2008 12:40 am
by tonypb
my apologies

Re: Smarty error

Posted: Sun Mar 09, 2008 12:57 am
by calguy1000
Please start a new thread with a subject, and body providing information enough for knowledged people to a) be interested in reading it, and b) have enough information to respond to it.

This thread is locked.