XenScript
WFN Üye
1/3
Aşağıdaki anlatımı uygulayarak siz de BS Live Forum Statistics eklentinizde avatara online offline indicator ekleyebilirsiniz.
Temanızın lfs_tab_thread_definition_macros şablonunu açın ve aşağıdaki kodu bulun;
Aşağıdaki ile değiştirin;
Aşağıdaki kodu temanızın extra.less şablonuna ekleyip kaydedin;
Temanızın lfs_tab_thread_definition_macros şablonunu açın ve aşağıdaki kodu bulun;
Kod:
<div class="structItem-cell structItem-cell--avatar">
<xf:avatar user="{$user}" size="xxs" />
</div>
Aşağıdaki ile değiştirin;
Kod:
<div class="structItem-cell structItem-cell--avatar">
<span class="{{ $user.isOnline() ? 'online' : 'offline' }}">
<xf:avatar user="{$user}" size="xxs" />
</span>
</div>
Aşağıdaki kodu temanızın extra.less şablonuna ekleyip kaydedin;
Kod:
.structItem-cell--avatar {position: relative;}
.structItem-cell--avatar span {position: relative; display: inline-block;}
.structItem-cell--avatar span.online::after,
.structItem-cell--avatar span.offline::after {
content: ""; position: absolute; width: 8px; height: 8px;
border-radius: 50%; bottom: 0; right: 0; z-index: 10;}
.structItem-cell--avatar span.online::after {background-color: #00fa6a;}
.structItem-cell--avatar span.offline::after {background-color: #ff001e;}