• 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?

#1
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:
Code:
<xen:if is="{$visitor.user_id}">
This content will show to logged in members
<xen:else />
This content will show to guests
</xen:if>
The resulting (parsed) BBcode is:
Code:
This content will show to logged in membersThis content will show to guests
Seems that conditionals are only ignored...
 

Mike

XenForo developer
Staff member
#2
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.