RSS Feed/News Is there a way to use conditional statements in Notices?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,691
Points
823

Reputation:

Hey everyone, this is my first post in the Xenforo community forums. :) I have a question. I understand how to use conditional tags in Templates (<xf:if>). However, I am wanting to do that in Notices, so that some tools can be displayed for the mods of a given forum, in their forum header (we're using Notices for forum headers). I tried using a conditional tag there:

Code:

Code:
<xf:if is="$xf.visitor.is_moderator || $xf.visitor.is_admin || $xf.visitor.is_super_moderator">
Testing
</xf:if>
...

Read more

Continue reading...
 
Status
Not open for further replies.
Top