![]() |
Usergroups coloring
I know you can change the color of a certain usergroup's username but how do make the rest of their font that color like underneath their avatar where all their info like age and such is in the postbit. I've seen it done on several vb boards. I tried just not putting end tags and it works but on the whos' online list the next person name, the comma after it is the color of my font.
|
<a href="https://vborg.vbsupport.ru/showthread.php?t=110025" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=110025</a>
|
That wasn't my question.
http://www.gopednation.com/forum/sho...d.php?t=207930 Look at the first person who posted, his entire postbit is yellow, not just his name. I want to achieve this. |
I don't see any reason why you can't throw an if / else into postbit or postbit_legacy for the span class.
|
I'm kind of new to this, can you write the clause and tell me where I have to put it?
|
Oh, ok I misread your question. You can do this easily with:
HTML Code:
<if condition="$post[usergroupid]==X"><font color ="#XXXXXX"></if> |
Thanks, I'm still alittle confused on where to enter that. For example, I want the admin's postbit a certain color and the rest of the usergroups default. I would just copy and paste the entire postbit into <!-- the text you want to be a different color --> and set the appropriate id for admin usergroup. Then what's the 2nd if condition for, what goes there?
|
The second condition is just to close the </font> tag if the fist is opened. Put the same usergroup id there. :-)
You don't need to copy and paste into that middle area. Instead, just take the first condition above and place it where the XXXX is below (based on the default postbit legacy template): HTML Code:
<tr valign="top"> HTML Code:
$post[msnicon] $post[yahooicon] $post[skypeicon]</div> |
Thanks, worked perfectly
|
No problem. :-) Good to hear.
|
All times are GMT. The time now is 12:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|