![]() |
Colored usernames in memberlist
Well this has already been done for online users but as far as I know not for the memberlist, so I did that today on my board and thought I'd share it with you.
Basically it allows you to color the usernames appearing in your member list according to which usergroup they belong to. I'ts a tiny hack and my very first one. Maybe it could be done better, but here it goes. Tested on unmodified memberslist.php for v.2.2.5. |
and here is a screenshot (on my board I have also installed the gender hack, so the little figure infront of the username will not show up unless you have also installed this other hack).
|
Instead of:
Code:
if ($var == 10) { Code:
switch ($var) { |
Thanks chen, I'll see if I can improve the code accordingly :)
|
:p
|
ok, ive updated the code according to Fireflys code - so now its your hack firefly :D
|
I just added this hack as well, but I have a suggestion...
Try creating a new css entry, a new class for each level and then instead of hard coding the colors in the memberlist.php file you can go in the vB Admin CP and change a bit of text. Might save some time later on. |
Useful hack, thanks! :)
|
Quote:
|
btw! I will install next weekend
|
cool hack :)
my best wish... LORD |
Ah...German...
One of the best languages if I do say so myself... Satan |
Installed and works like a charm!!
Thanks... :) BTW: I use replacements for each color. Example: {whosonlineadmin} = #FFFF00 {whosonlinemod} =#FFFF66 {whosonlinesupermod} =#FFFF99 So u can change this colors easy for all your colored users like on whos online or Foumhome... :) |
All times are GMT. The time now is 03:51 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:
|