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.html on line 199


and these are line 198-204:
Quote:




<{foreach item=block from=$xoops_clblocks}><{include
file="jadoogaran/block_center.html"}>

<{/foreach}>



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="en-us">jadoogaran/blocken-us">_center.html"}>


Why do you have those 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.

Login

Who's Online

256 user(s) are online (92 user(s) are browsing Support Forums)


Members: 0


Guests: 256


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits