XF 2.3 hide div classes

Luca_

Active member
Hi everyone, I'm trying to edit permissions on some changes, how can I hide a Div class from a specific group of users?
<div class="message--">
<span class="classpost">title</span>
<span class="class text 2"><p style="text-align: center;">text for member</p></span>
</div>
 
You can wrap the code ti this:
HTML:
<xf:if is="{{!$xf.visitor.isMemberOf(x)}}">
    your code
</xf:if>

X is the ID of a user group.
thank you, very kind. but these ids are going to show or hide? also if I have several do I use commas?

also where can I study these basic XF commands?
 
Back
Top Bottom