O Old Nick Well-known member Mar 19, 2019 #1 Hello, How to write this more code compliant ? HTML: <xf:if is="$xf.visitor.user_id"> <xf:if is="$template == 'forum_list'"> ... </xf:if> </xf:if> Thanks
Hello, How to write this more code compliant ? HTML: <xf:if is="$xf.visitor.user_id"> <xf:if is="$template == 'forum_list'"> ... </xf:if> </xf:if> Thanks
SyTry Well-known member Mar 19, 2019 #2 Nikodak said: Hello, How to write this more code compliant ? HTML: <xf:if is="$xf.visitor.user_id"> <xf:if is="$template == 'forum_list'"> ... </xf:if> </xf:if> Thanks Click to expand... Hello, Did you try this : Code: <xf:if is="$xf.visitor.user_id AND $template == 'forum_list'"> You code here </xf:if> Doc : Template syntax | Developer Documentation | XenForo Developer documentation for XenForo xenforo.com Regards, SyTry Upvote 0 Downvote
Nikodak said: Hello, How to write this more code compliant ? HTML: <xf:if is="$xf.visitor.user_id"> <xf:if is="$template == 'forum_list'"> ... </xf:if> </xf:if> Thanks Click to expand... Hello, Did you try this : Code: <xf:if is="$xf.visitor.user_id AND $template == 'forum_list'"> You code here </xf:if> Doc : Template syntax | Developer Documentation | XenForo Developer documentation for XenForo xenforo.com Regards, SyTry