1
irmtfan
parse error in theme.html
  • 2004/6/1 11:22

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


we create a new theme but have a parse error:
Quote:
Parse error: parse error in /data/members/free/tripod/uk/i/r/m/.../htdocs/templates_c/<theme_name>^theme.html on line 199

and these are line 198-204:
Quote:

<!-- Start center-left blocks loop -->


<{foreach item=block from=$xoops_clblocks}><{include
file="<span lang="en-us">jadoogaran</span>/block<span lang="en-us">_</span>center.html"}>
<p><{/foreach}></p>

I want to know what syntax in theme.html get this error?
thanks for ur attention

2
Dave_L
Re: parse error in theme.html
  • 2004/6/1 11:34

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I don't understand this:

<{include
file="<span lang="en-us">jadoogaran</span>/block<span lang="en-us">_</span>center.html"}>

Why do you have those <span> tags inside the value for the file parameter?

Should that be:

<{include file="jadoogaran/block_center.html"}>

?

3
Mithrandir
Re: parse error in theme.html

The base folder for includes in theme.html is the root/themes folder and NOT the root/themes/themename, so you should have

<{include file="themename/center.html"}>

You can send variables with the inclusion by writing them like this:

<{include file="themename/center.html" lang="en-us"}>

which will make a variable <{$lang}> with the value "en-us" available in the included file

4
winsion
Re: parse error in theme.html
  • 2004/6/1 11:41

  • winsion

  • Just popping in

  • Posts: 55

  • Since: 2003/11/23


In debug it's line of template_c defaut%theme.html no ? not theme.html of theme folder ?

5
Mithrandir
Re: parse error in theme.html

The files in templates_c folder are just compiled by the Smarty engine. You should delete the default%theme.html file from templates_c folder and change the themes/default/theme.html in order to keep the changes, since the compiled file can be overwritten later.