Resource icon

Status indicator online or offline 2018-02-12

No permission to download Buy Credits

Yondu

SN Donator
Yondu submitted a new resource:

Status indicator online or offline - Status indicator online or offline

Today I share a tutorial under xenForo 2.0 : Status indicator online or offline !

In your template message_macros find :

Code:
<span class="message-userArrow"></span>
Add this before :
Code:
<xf:if is="$user.isOnline()">
    <div class="onlineON">Online</span></div>
<xf:else />
     <div class="offlineOFF">Offline</span></div>
</xf:if>
Add this in your template EXTRA.less :
Code:
/*online - offline*/
.onlineON{
    background: #32CD32;
    padding: 5px;...
Read more about this resource...
 

WinSys32

Staff member
SITE ADMINISTRATOR
Nice modification, thanks for sharing!

Just one comment about it.

You will find this 2 times in template "message_macros".
Code:
<span class="message-userArrow"></span>
Place this above (the last shown code as above).

Code:
<xf:if is="$user.isOnline()">
    <div class="onlineON">Online</span></div>
<xf:else />
     <div class="offlineOFF">Offline</span></div>
</xf:if>
 

360matt

SN Confirmed Member
Nice modification, thanks for sharing!

Just one comment about it.

You will find this 2 times in template "message_macros".
Code:
<span class="message-userArrow"></span>
Place this above (the last shown code as above).

Code:
<xf:if is="$user.isOnline()">
    <div class="onlineON">Online</span></div>
<xf:else />
     <div class="offlineOFF">Offline</span></div>
</xf:if>
GG for that solution
 
Top