Resource icon

Online/Offline avatar indicator like instagram

HiddeNKinG

Active member
HiddeNKinG submitted a new resource:

Online/Offline avatar indicator like instagram - online, ofline

message_macros in

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

Find and replace with the bottom.

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>...

Read more about this resource...
 
İt is working
Yeap, in my styles UI.X 2
I changed "m" to "s", it's working :D
Thanks so much @HiddeNKinG

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

find and replace

<xf:if is="$xf.options.showMessageOnlineStatus && $user && $user.isOnline()">
<div class="xgt-avatar2">
<div class="xgt-avatar-border2">
<xf:avatar user="$user" size="s" defaultname="{$fallbackName}" itemprop="image" />
</div>
</div>
<xf:else />
<div class="xgt-avatar">
<div class="xgt-avatar-border">
<xf:avatar user="$user" size="s" defaultname="{$fallbackName}" itemprop="image" />
</div>
</div>
</xf:if>
 
All is working weel here in version 2.2.16. Thank you!
Ah, can we have an animation like a "wave" to add to the border?
 
oh thank you, yes i see now....i implemented it as a template modification and the replace line changed slightly :)
i'm seeing 2 of these codes. on line 19 & 171 , one has "s" and one has " m " and my 2.3.3 codes look like this:

Code:
<xf:avatar user="$user" size="s" defaultname="{$fallbackName}" itemprop="{{ $includeMicrodata ? 'image' : '' }}" />
 
You can optimize your code and minimize the lines if you use this...

HTML:
<div class="{{ ($xf.options.showMessageOnlineStatus && $user && $user.isOnline()) ? 'xgt-avatar2' : 'xgt-avatar' }}">
    <div class="{{ ($xf.options.showMessageOnlineStatus && $user && $user.isOnline()) ? 'xgt-avatar2' : 'xgt-avatar' }}">
        <xf:avatar user="$user" size="m" defaultname="{$fallbackName}" itemprop="{{ $includeMicrodata ? 'image' : '' }}" />
    </div>
</div>
 
You can optimize your code and minimize the lines if you use this...

HTML:
<div class="{{ ($xf.options.showMessageOnlineStatus && $user && $user.isOnline()) ? 'xgt-avatar2' : 'xgt-avatar' }}">
    <div class="{{ ($xf.options.showMessageOnlineStatus && $user && $user.isOnline()) ? 'xgt-avatar2' : 'xgt-avatar' }}">
        <xf:avatar user="$user" size="m" defaultname="{$fallbackName}" itemprop="{{ $includeMicrodata ? 'image' : '' }}" />
    </div>
</div>

@Pew Pew let us try this out :) Looks cool!

Full: https://xenforo.com/community/resources/online-offline-avatar-indicator-like-instagram.8246/

tx
 
Back
Top Bottom