กรุณาปิด โปรแกรมบล๊อกโฆษณา เพราะเราอยู่ได้ด้วยโฆษณาที่ท่านเห็น
Please close the adblock program. Because we can live with the ads you see


Conditional Statements for XenForo 2.x

ไม่มีอับเดท Conditional Statements for XenForo 2.x

  • ผู้เริ่มหัวข้อ ผู้เริ่มหัวข้อ iC@fe 
  • วันที่เริ่มต้น วันที่เริ่มต้น

iC@fe 

Administrator

สมาชิกทีมงาน
Admin
เข้าร่วม
21 พฤษภาคม 2009
ข้อความ
1,677
คะแนนปฏิกิริยา
238
คะแนน
63
iC@fe เพิ่มไฟล์ใหม่:

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?

โค้ด:
<xf:if is="$xf.visitor.is_admin">
    Show content...
</xf:if>

2. How can I show content to Moderators?

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

กระทู้ที่คล้ายกัน

  • บทความ บทความ
ตอบกลับ
0
จำนวนการดู
2พัน
  • บทความ บทความ
ตอบกลับ
0
จำนวนการดู
479
  • บทความ บทความ
ตอบกลับ
1
จำนวนการดู
520
  • บทความ บทความ
ตอบกลับ
0
จำนวนการดู
356
  • บทความ บทความ
ตอบกลับ
3
จำนวนการดู
470

กรุณาปิด โปรแกรมบล๊อกโฆษณา เพราะเราอยู่ได้ด้วยโฆษณาที่ท่านเห็น
Please close the adblock program. Because we can live with the ads you see
กลับ
ยอดนิยม