- Joined
- Apr 22, 2021
- Messages
- 190
- Points
- 28
Reputation:
Hello, do you know how I add that?
Reputation:
Reputation:
<ul class="message-attribution-opposite message-attribution-opposite--list">
<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>
Reputation:
go to the theme you are using and look for post_macros search for
Code:<ul class="message-attribution-opposite message-attribution-opposite--list">
And add below:
CSS:<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>