Online / Offline status CSS styling

  • Thread starter Thread starter AdminAdmin is verified member.
  • Start date Start date
Admin

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
This is a very simply, alternativ ON / OFF status styling via CSS.
Check out the screenshots at the end of the post, the status can be found on the right if the nickname




1. Open your "additional.css" and add this code (feel free to pick your desired colors)


Code:
/* BEGIN CUSTOM ONLINE STATUS*/


.customstatuson { 
background: #E1FA05; 
color: #000;
}


.customstatusoff { 
background: #FA7305;
color: #FFF; 
}


.customstatusinv { 
background: #FFF;
color: #3c3c3c; 
}


/* END CUSTOM ONLINE STATUS*/


2. Open your "postbit_onlinestatus" template and replace the existing code with this one


Code:
<vb:if condition="$onlinestatus==0"><span class="customstatusoff">&nbsp;OFF&nbsp;</span></vb:if>
<vb:if condition="$onlinestatus==1"><span class="customstatuson">&nbsp;ON&nbsp;</span></vb:if>
<vb:if condition="$onlinestatus==2"><span class="customstatusinv">&nbsp;INV&nbsp;</span></vb:if>
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
2K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
943
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
1
Views
1K
khanhhoanew
K
Admin
Replies
0
Views
150K
AdminAdmin is verified member.
Admin
Back
Top