Theme editor



Conditional Statements for XenForo 2.x

Unmaintained Conditional Statements for XenForo 2.x

thxf.org 

Administrator
Staff member
Admin
Thread owner
thxf.org เพิ่มไฟล์ใหม่:

Conditional Statements for XenForo 2.x - Conditional Statements for XenForo 2.x

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?

อ่านเพิ่มเติมเกี่ยวกับไฟล์นี้...
 


Similar threads

  • Article Article
XenForo 2.3.10 is now available for all licensed customers to download. We strongly recommend that all customers running previous versions of XenForo 2.3 upgrade to this release to benefit from...
Replies
0
Views
381
  • Article Article
XenForo 2.3.8 is now available for all licensed customers to download. We strongly recommend that all customers running previous versions of XenForo 2.3 upgrade to this release to benefit from...
Replies
0
Views
211
thxf.org ได้ส่งไฟล์ใหม่: [DohTheme] Joy - xenForo 2 - Joy is a colorful & joyful Theme suitable for any community Joy is a colorful & joyful Theme suitable for any community. Interestingly, you...
Replies
1
Views
450
  • Article Article
XenForo 2.3.7 is now available for all licensed customers to download. We strongly recommend that all customers running previous versions of XenForo 2.3 upgrade to this release to benefit from...
Replies
0
Views
1K
  • Article Article
XenForo 2.3.6 is now available for all licensed customers to download. We strongly recommend that all customers running previous versions of XenForo 2.3 upgrade to this release to benefit from...
Replies
0
Views
1K


Back
Top Bottom