How do I add this?

leanndamiann1

Well-known member
Registered
Joined
Apr 22, 2021
Messages
190
Points
28

Reputation:

Hello, do you know how I add that?

Captura de pantalla 2023-12-06 010914.png
 

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
386
Points
53

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>
 

leanndamiann1

Well-known member
Registered
Joined
Apr 22, 2021
Messages
190
Points
28

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>
one_finger_manThanks, it worked for me :D
 
Top