• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed No error in template


Active member
This should produce an error when saving the template:

<xen:if is="{$forum.node_id}==27">
  <xen:include template="name1"/>
<xen:else is="{$forum.node_id}==30"/>
  <xen:include template="name2"/>
<xen:else is="{$forum.node_id}==32"/>
  <xen:include template="name3"/>
As you see I did "else" instead of "elseif". Using one else does give the error. using two of them doesn't.

it does give this error on the page:

"Parse error: syntax error, unexpected T_ELSE in /data/www/xen/library/XenForo/Template/Abstract.php(265) : eval()'d code on line 70"