XenForo 2.0 anyone know how to?

AFW

Well-known member
Registered
Joined
Jan 9, 2022
Messages
65
Points
18

Reputation:

So I am looking to add just me with special badge. so for example

<xf:if is="{{$user.isMemberOf(3)}}">
<div class="postbit-staff"><i class="fas fa-shield-alt"></i> Staff Team</div>
is one of my codes. I want it to be Me only, and say Owner not as a group or nothing just on my account only. I dont want another member being admin and it gives it to them cause there an administrator.
 

Splicho

Emudevs.gg Owner
Staff member
Moderator
Collaborate
Registered
Joined
Jan 21, 2022
Messages
605
Points
103

Reputation:

You can put yourself into a new group and just use that id.
Or use $user.user_id == 1
 

AFW

Well-known member
Registered
Joined
Jan 9, 2022
Messages
65
Points
18

Reputation:

You can put yourself into a new group and just use that id.
Or use $user.user_id == 1
SplichoI did $user.user_id == 1 but seems like it isnt showing the owner badge on my account. this is my coding.
<xf:elseif is="{{$user.user_id == 1}}"/>
<div class="postbit-staff"></i> Owner</div>
 

AFW

Well-known member
Registered
Joined
Jan 9, 2022
Messages
65
Points
18

Reputation:

You can put yourself into a new group and just use that id.
Or use $user.user_id == 1
SplichoI also want it like for example I have Staff Team, Displayed for my admin group, and i wanted owner aswell on my account displayed. But when I go and switch the group it only displays the one group with the owner badge and removes the staff badge. unless I am doing something wrong.
 
Top