The Arcive of vBulletin Modifications Site. |
|
Online / Offline status CSS styling Details »»
|
|||||||||||||||||||||||||||||||
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*/
Code:
<vb:if condition="$onlinestatus==0"><span class="customstatusoff"> OFF </span></vb:if> <vb:if condition="$onlinestatus==1"><span class="customstatuson"> ON </span></vb:if> <vb:if condition="$onlinestatus==2"><span class="customstatusinv"> INV </span></vb:if> Screenshots
Show Your Support
|
|||||||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
First !
![]() Nice resultat !
|
|
#3
|
||||
|
||||
|
thank you bro
installed + rated tanslated too |
|
#4
|
|||
|
|||
|
nice
|
|
#5
|
||||
|
||||
|
thank you bro
|
|
#6
|
|||
|
|||
|
Is there a way to center the on/off/inv text vertically?
|
|
#7
|
|||
|
|||
|
Hi Superorb
Sorry for my late response.. You can add another attribute to the css called 'vertical-align' I guess the easiest way is to use px-values, just try&error. Mine for example is exactly vertical with this: vertical-align: 2px; Cheers |
|
#8
|
|||
|
|||
|
Works perfectly and looks great.
Thanks! |
![]() |
|
|