Conditional Statements for XenForo 2

Conditional Statements for XenForo 2

  • Upgrade Your Account to download resource
    Hello Guest ! Upgrade your account to download from our sections Here.
    How to upgrade your account to download resources Learn More.
    Guest need to read through our rules and regulations Learn More.

XenforoX

Administrator
Staff member
Administrator
May 29, 2018
1,075
155
63
#1
XenforoX submitted a new resource:

Conditional Statements for XenForo 2 - Guide and tutorial for conditional statements using XenForo 2 syntax

Conditional Statements for XenForo 2

The conditional statements can be expanded by using AND, OR conditional statements operators and using xf:if, xf:else, xf:elseif.

If there are any conditional statements that you want to add, please add it as a message and the article will be updated.

1. How can I show content to Administrators?

Code:
<xf:if is="$xf.visitor.is_admin">
    Show content...
</xf:if>
2. How can I show content to Moderators?

Code:
<xf:if...
Read more about this resource...
 
Thread starter Similar threads Forum Replies Date
N WordPress Plugins 0

Similar threads

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu

Follow us on Facebook