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.
 

pistolxz

Registered
Is it possible to make it so only when the "Thread Starter" replys to his/hers own thread the indicator pops up. So basically i want it not be seen in the post (only in replys on the thread)1726017230290.png
1726017244762.png
First picture is basically the current post and second one is after the person replys to the same thread (I REMOVED THE FIRST INDICATOR TROUGH INSPECT ELEMENT)
 
Back
Top Bottom