Welcome to Admin Junkies, Guest — join our community!

Register or log in to explore all our content and services for free on Admin Junkies.

Online/offline avatar indicator like Instagram

Mamberroi Jr

Well-known member
Joined
Apr 9, 2023
Messages
74
Credits
118
Template message_macros

Find:

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

It replaces by:


Code:
<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, add the following code:


Code:
.xgt-avatar2{

    display: block;

    background: linear-gradient(to right, green, yellow);

    border-radius: 50%;

    padding: 4px;

    box-shadow: 0px 0px 10px 3px rgba(4, 90, 15, 0.38);



}



.xgt-avatar-border2{

    display: block;

    border: 4px solid #fff;

    border-radius: 50%;

}



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

{

.xgt-avatar2{

    padding: 2px;

    }

.xgt-avatar-border2{

      border-width: 2px;

    }

}



Ready-!!!

1629984040697.png

Edit Aerodynamic: A link to the original author is due. Original content: https://xenforo.com/community/resources/online-offline-avatar-indicator-like-instagram.8246/
 
Last edited by a moderator:
Advertisement Placeholder

Log in or register to unlock full forum benefits!

Log in or register to unlock full forum benefits!

Register

Register on Admin Junkies completely free.

Register now
Log in

If you have an account, please log in

Log in
Who read this thread (Total readers: 0)
No registered users viewing this thread.

Would You Rather #9

  • Start a forum in a popular but highly competitive niche

    Votes: 9 27.3%
  • Initiate a forum within a limited-known niche with zero competition

    Votes: 24 72.7%
Win this space by entering the Website of The Month Contest

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds