- Compatible XF 1.x versions
- 1.4
Offline status indicator
With:
- BEFORE, install this modification !
- Upload online-indicator_offline.png in styles/default/xenforo/icons/
- In EXTRA.css template, add this:
Code:
.messageUserBlock div.avatarHolder .offlineMarker {
background: url("@imagePath/xenforo/icons/online-indicator_offline.png") no-repeat !important;
position: absolute;
left: 100px !important;
top: 10px !important;
width: 12px;
height: 12px;
}
@media (max-width:480px) {
.Responsive .messageUserBlock div.avatarHolder .offlineMarker {
left: 47px !important;
top: 5px !important; }
}
.xengallery_media_view .offlineMarker, .quickReply .offlineMarker {
display: none;
}
- In message_user_info template, replace:
Code:
<xen:if is="{$user.isOnline}"><span class="Tooltip onlineMarker" title="{xen:phrase online_now}" data-offsetX="-22" data-offsetY="-8"></span></xen:if>
Code:
<xen:if is="{$user.isOnline}"><span class="Tooltip onlineMarker" title="{xen:phrase online_now}" data-offsetX="-22" data-offsetY="-8"></span>
<xen:else />
<span class="Tooltip offlineMarker" title="Offline" data-offsetX="-10" data-offsetY="-8"></span>
</xen:if>