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

Conditional and Template Modification

Chris D

XenForo developer
Staff member
#2
No. But you can do conditionals IN your template modification.

Example:

Find:
Code:
<span>Something</span>
Replace:
Code:
<xen:if is="{$visitor.user_id}">
    <span>Something Else</span>
<xen:else />
    $0
</xen:if>
"$0" is shorthand for the stuff you searched for. In that example:
Code:
<span>Something Else</span>
is shown to registered users. No changes are made to guests.