Need help !

Joker34

Member
Registered
Joined
Jul 11, 2021
Messages
16
Points
3

Reputation:

hi, i need little Help

Code:
<div class="userBanner userBanner--staff" dir="auto" itemprop="jobTitle"><span class="userBanner-before"></span><strong>Staff</strong><span class="userBanner-after"></span></div>
with this code and its working perfectly but the problem is its showing on to all the members posts ! , what conditional Statements should is apply that it shows only on staff members posts or Admin/Moderator's posts.
 
Last edited:

Soft4Win

Developer
Staff member
Moderator
V.I.P Member
Collaborate
Registered
Joined
Apr 27, 2019
Messages
284
Points
73

Reputation:

Use the following conditioning:

HTML:
<xf:if is="$post.User.is_staff">
    <div class="userBanner userBanner--staff" dir="auto" itemprop="jobTitle">
        <span class="userBanner-before"></span><strong>Staff</strong>
        <span class="userBanner-after"></span>
    </div>
</xf:if>
 

Joker34

Member
Registered
Joined
Jul 11, 2021
Messages
16
Points
3

Reputation:

Use the following conditioning:

HTML:
<xf:if is="$post.User.is_staff">
    <div class="userBanner userBanner--staff" dir="auto" itemprop="jobTitle">
        <span class="userBanner-before"></span><strong>Staff</strong>
        <span class="userBanner-after"></span>
    </div>
</xf:if>
Soft4WinThanks bro ,it's working
but how can i show this to Conversation messages too ? , its not showing there.
 
Last edited:

Soft4Win

Developer
Staff member
Moderator
V.I.P Member
Collaborate
Registered
Joined
Apr 27, 2019
Messages
284
Points
73

Reputation:

Thanks bro ,it's working
but how can i show this to Conversation messages too ? , its not showing there.
Joker34I guess for that you will have to add it in the conversation_message_macros template.
 
Top