XenForo NewIndicator message in the topics

AynaZ

Supervisor
  • Thread starter
  • Admin
  • #1
In your post_macros template find:
Code:
<ul class="message-attribution-opposite message-attribution-opposite--list">
And add below:
Code:
       <xf:if is="$post.user_id == $thread.user_id">
                                <li><span class="message-newIndicator message-threadStarter" style="background: #46a751;">{{ phrase('thread_starter') }}</span></li>
                            </xf:if>
                            <xf:if is="$post.User.is_admin">
                                <li><span class="message-newIndicator message-adminIndicator" style="background: #bd1919;">{{ phrase('admin') }}</span></li>
                            <xf:elseif is="$post.User.is_moderator" />
                                <li><span class="message-newIndicator message-moderatorIndicator" style="background: #3c57bd;">{{ phrase('moderator') }}</span></li>
                            <xf:elseif is="$post.User.is_staff" />
                                <li><span class="message-newIndicator message-staffIndicator" style="background: #3c57bd;">{{ phrase('admin_navigation.usersStaff') }}</span></li>
                            <xf:elseif is="$post.User.is_banned" />
                                <li><span class="message-newIndicator message-bannedIndicator" style="background: #fba406;">{{ phrase('banned') }}</span></li>
                            </xf:if>
 

saeedmo79

Registered
Thank you for this modification,
update:
for those who do not find the mentioned code in post_macros,
Please try to find this code:
<ul class="message-attribution-opposite message-attribution-opposite--list {$oppositeClass}">
and add the main code below it.
Thank you.
 
Back
Top Bottom