eDaddi Active member May 24, 2021 #1 I've been searching on here but not finding much, I man need more coffee. Looking for a conditional statement that can determine if the OP is a member of a certain groups
I've been searching on here but not finding much, I man need more coffee. Looking for a conditional statement that can determine if the OP is a member of a certain groups
M MisakiTaro Well-known member May 24, 2021 #2 Do you mean that? PHP: !$xf.visitor.isMemberOf(1) Upvote 0 Downvote
eDaddi Active member May 24, 2021 #3 MisakiTaro said: Do you mean that? PHP: !$xf.visitor.isMemberOf(1) Click to expand... Not the visitor, the original poster that started the thread. Upvote 0 Downvote
MisakiTaro said: Do you mean that? PHP: !$xf.visitor.isMemberOf(1) Click to expand... Not the visitor, the original poster that started the thread.
P Paul B XenForo moderator Staff member May 24, 2021 #4 If $user is available to the template then you can use: HTML: <xf:if is="$user.isMemberOf(2)"> Content </xf:if> This guide explains how to check which vars are available to the template: https://xenforo.com/community/resou...ositions-navigation-entries-and-widgets.8041/ Upvote 0 Downvote
If $user is available to the template then you can use: HTML: <xf:if is="$user.isMemberOf(2)"> Content </xf:if> This guide explains how to check which vars are available to the template: https://xenforo.com/community/resou...ositions-navigation-entries-and-widgets.8041/