Allan Well-known member Apr 29, 2014 #1 Hey It's possible to use conditional for display a template modification ?
Chris D XenForo developer Staff member Apr 29, 2014 #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.
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.