Welcome, Guest. Please Login or Register.
May 06, 2024, 02:05:00 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Done][Code] User colors via css « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Done][Code] User colors via css  (Read 4410 times)
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
[Done][Code] User colors via css
« on: August 10, 2002, 07:46:33 AM »
Reply with quote

This makes it so that you can change the colors of the user's online via CSS.  It has been tested on www.boardnation.com

in Boardindex.php search for:
  $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><font color=\"red\">$tmp[realName]</font></a>";
elseif ($tmp['memberGroup']=="Global Moderator")
   $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><font color=\"blue\">$tmp[realName]</font></a>";
elseif ($tmp['memberGroup']=="YaBB SE Developer")
   $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><font color=\"green\">$tmp[realName]</font></a>";
elseif ($tmp['memberGroup']=="Mod Team")
   $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><font color=\"orange\">$tmp[realName]</font></a>";
else
   $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\">$tmp[realName]</a>";

replace:
  $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><font class=\"admin_color\" color=\"red\">$tmp[realName]</font></a>";
elseif ($tmp['memberGroup']=="Global Moderator")
   $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><font class=\"gm_color\" color=\"blue\">$tmp[realName]</font></a>";
elseif ($tmp['memberGroup']=="YaBB SE Developer")
   $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><font class=\"developer_color\" color=\"green\">$tmp[realName]</font></a>";
elseif ($tmp['memberGroup']=="Mod Team")
   $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><font class=\"modteam_color\" color=\"orange\">$tmp[realName]</font></a>";
else
   $tmpusers[] = "<a href=\"$scripturl?action=viewprofile;user=$euser\"><font color=\"black\" class=\"users_color\">$tmp[realName]</a></font>";

then in your template search for:
.meaction {
   COLOR: red; BACKGROUND-COLOR: transparent
}

add after:
.admin_color {
   COLOR: red;
}
.gm_color {
   COLOR: blue;
}
.developer_color {
   COLOR: green;
}
.modteam_color {
   COLOR: orange;
}
.users_color{
   COLOR: black;
}
« Last Edit: August 11, 2002, 07:42:40 PM by Nemesis » Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done][Code] User colors via css « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.065 seconds with 21 queries.