XenForo Online/Offline indicator

CR LEAKS

Administrators
Joined
Mar 25, 2022
Messages
1,485
Credits
28,049
Appearance -> Template Modifications ->
/admin.php?template-modifications/add

Template: message_macros
Modification key: any
Search type: Simple replacement
Find:


HTML:
<xf:avatar user="$user" size="m" defaultname="{$fallbackName}" itemprop="image" />


Replace:


HTML:
<xf:if is="$xf.options.showMessageOnlineStatus && $user && $user.isOnline()">
<div class="xgt-avatar2">
<div class="xgt-avatar-border2">
<xf:avatar user="$user" size="m" defaultname="{$fallbackName}" itemprop="image" />
</div>
</div>
<xf:else />
<div class="xgt-avatar">
<div class="xgt-avatar-border">
<xf:avatar user="$user" size="m" defaultname="{$fallbackName}" itemprop="image" />
</div>
</div>
</xf:if>

In extra.less:


Code:
.xgt-avatar{
display: block;
background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
border-radius: 50%;
padding: 4px;
box-shadow: 0px 0px 10px 3px rgba(178, 34, 34, 0.38);

}

.xgt-avatar-border{
display: block;
border: 4px solid #fff;
border-radius: 50%;
}

@media (max-width: @xf-publicNavCollapseWidth)
{
 

Attachments

  • 1722682502639.png
    1722682502639.png
    40.2 KB · Views: 1
Back
Top Bottom