- Joined
- Jul 29, 2019
- Messages
- 122
- Points
- 53
Reputation:
put it like this below. I updated my thread because i forgot to close this tag </xf:if> , now it should work for you .
Code:
<h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="name" />
<xf:if is="{{$user.isMemberOf(3)}}">
<div class="verified_badge verified_admin tooltip2 tooltipstered" data-xf-init="tooltip" title="Administration Team"><i class="fa fa-check"></i></div>
<xf:elseif is="{{$user.isMemberOf(3)}}"/>
<div class="verified_badge verified_admin tooltip2 tooltipstered" data-xf-init="tooltip" title="Administration Team"><i class="fa fa-check"></i></div>
<xf:elseif is="{{$user.isMemberOf(4)}}"/>
<div class="verified_badge verified_staff tooltip2 tooltipstered" data-xf-init="tooltip" title="Verified Staff Members"><i class="fa fa-check"></i></div>
</xf:if>
<div class="d-flex align-items-center justify-content-center flex-wrap post-stats">
<div class="post-stat">
<span class="largetext">
<strong style="color:green; text-align: center;">{$user.af_as_award_total|number}</strong>
</span>
<br>
<span class="x-smalltext text-uppercase" style="font-weight:bold; ">Awards</span>
</div>
<div class="post-stat">
<span class="largetext"><strong style="color:green; text-align: center;">{$user.reaction_score|number}</strong></span>
<br> <span class="x-smalltext text-uppercase" style="font-weight:bold;">Likes</span>
</div>
</div>
<p>
<xf:if is="$user.user_id AND $xf.visitor.canStartConversationWith($user)">
<xf:if is="property('xtr_conversation_button')">
<a href="{{ link('conversations/add', '', {'to': $user.username}) }}" data-xf-click="{{'overlay'}}" class="xm-icon button--link"><i class="fas fa-envelope" aria-hidden="true" data-xf-init="tooltip" title="{{ phrase('start_conversation')}}"></i></a>
</xf:if>
</xf:if>
</h4>
- Joined
- Mar 23, 2021
- Messages
- 86
- Points
- 18
Reputation:
- By jhoancito
put it like this below. I updated my thread because i forgot to close this tag </xf:if> , now it should work for you .
Code:<h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="name" /> <xf:if is="{{$user.isMemberOf(3)}}"> <div class="verified_badge verified_admin tooltip2 tooltipstered" data-xf-init="tooltip" title="Administration Team"><i class="fa fa-check"></i></div> <xf:elseif is="{{$user.isMemberOf(3)}}"/> <div class="verified_badge verified_admin tooltip2 tooltipstered" data-xf-init="tooltip" title="Administration Team"><i class="fa fa-check"></i></div> <xf:elseif is="{{$user.isMemberOf(4)}}"/> <div class="verified_badge verified_staff tooltip2 tooltipstered" data-xf-init="tooltip" title="Verified Staff Members"><i class="fa fa-check"></i></div> </xf:if> <div class="d-flex align-items-center justify-content-center flex-wrap post-stats"> <div class="post-stat"> <span class="largetext"> <strong style="color:green; text-align: center;">{$user.af_as_award_total|number}</strong> </span> <br> <span class="x-smalltext text-uppercase" style="font-weight:bold; ">Awards</span> </div> <div class="post-stat"> <span class="largetext"><strong style="color:green; text-align: center;">{$user.reaction_score|number}</strong></span> <br> <span class="x-smalltext text-uppercase" style="font-weight:bold;">Likes</span> </div> </div> <p> <xf:if is="$user.user_id AND $xf.visitor.canStartConversationWith($user)"> <xf:if is="property('xtr_conversation_button')"> <a href="{{ link('conversations/add', '', {'to': $user.username}) }}" data-xf-click="{{'overlay'}}" class="xm-icon button--link"><i class="fas fa-envelope" aria-hidden="true" data-xf-init="tooltip" title="{{ phrase('start_conversation')}}"></i></a> </xf:if> </xf:if> </h4>