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

XF 1.4 May I use xen:if conditionals on BBcode?

Discussion in 'XenForo Questions and Support' started by timetraveler, Jan 27, 2015.

  1. timetraveler

    timetraveler Member

    I need some custom BBcode for my forum, but I want to show a register link to users.

    I tried with conditionals as seen here but I got no luck.
    If I use the third conditional, "how can I show different content to guests and logged in members?" as in this example:
    <xen:if is="{$visitor.user_id}">
    This content will show to logged in members
    <xen:else />
    This content will show to guests
    The resulting (parsed) BBcode is:
    This content will show to logged in membersThis content will show to guests
    Seems that conditionals are only ignored...
  2. Mike

    Mike XenForo Developer Staff Member

    The basic custom BB code system does not support templates. You could do conditionals by using a callback function to define the template to render the BB code. This would require custom coding though.
  3. Optic

    Optic Well-Known Member

Share This Page