XF 2 Tip Special Staff Team badge in the postbit

prvtzone

eleaks.to
Registered
Joined
Jul 29, 2019
Messages
122
Points
43

Reputation:

Untitled.png

Place this code under <xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="jobTitle" /> in message_macro

Code:
<xf:if is="{{$user.isMemberOf(3)}}">
                <div class="postbit-staff"><i class="fas fa-shield-alt"></i> Staff Team</div>
        <xf:elseif is="{{$user.isMemberOf(4)}}"/>
                <div class="postbit-staff"><i class="fas fa-shield-alt"></i> Staff Team</div>
            <xf:elseif is="{{$user.isMemberOf(4)}}"/>
                <div class="postbit-staff"><i class="fas fa-shield-alt"></i> Staff Team</div>
        </xf:if>
Place this code under extra.less
Code:
.postbit-staff {
    text-transform: uppercase;
    text-align: center;
    font-size: 12px;
    color: #2be0d3;
    font-weight: bold;
    width: 150px;
    position: relative;
    overflow: hidden;
    margin-left: 25px;
    margin-top: 8px;
    margin-bottom: 8px;
}
All Code Credits Goes to : @Verss
 
Last edited:

DareDevil

i am Watching You !
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
May 25, 2019
Messages
874
Points
253

Reputation:

move badge left to the end
 

prvtzone

eleaks.to
Registered
Joined
Jul 29, 2019
Messages
122
Points
43

Reputation:

i set this position because i didnt liked left to the end, but people can change the position by changing the css code.
 
Top