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

if xenforo option show some code


Well-known member
Hi people, i'm making a add-on but i dont know that

how i need put in a template for check a option on xenforo..

Without the template i need make:


but in the template how i need make?

<xen:if ?? how?

Sorry for my bad english :(


Active member
I believe you would use {$xenOptions.languageltp} in your template, to get the value of the languageltp option. Conditionals would be like:
<xen:if is="{$xenOptions.languageltp}">
some html


Active member
That would throw you a syntax error due to misplaced quotes. The entire condition should be within the double quotes.
<xen:if is="{$xenOptions.languageltp} == 'es'"> ... </xen:if>