Welcome, Guest. Please Login or Register.
April 30, 2025, 07:45:20 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Graphics and Templates  |  How to change colors of admin and mod in Users online « previous next »
Pages: [1] Reply Ignore Print
Author Topic: How to change colors of admin and mod in Users online  (Read 678 times)
Devilpyro
Noobie
*
Posts: 6


I dont wanna be a llama!

How to change colors of admin and mod in Users online
« on: January 28, 2003, 04:03:19 PM »
Reply with quote

I want to change the colors for admin and moderator thats used to display their name under Users Online, where can i do this??

i tried it with the help in the following topic: http://www.boardnation.com/index.php?board=20;action=display;threadid=151

And added the following text under meaction


.admin_color {
  COLOR: #E2E2E2; BACKGROUND-COLOR: transparent; TEXT-DECORATION: none
}
.gmod_color {
  COLOR: #E2E2E2; BACKGROUND-COLOR: transparent; TEXT-DECORATION: none
}
.mem_color {
  COLOR: #E2E2E2; BACKGROUND-COLOR: transparent; TEXT-DECORATION: none
}

But this yust doesnt work, what did i do wrong??
« Last Edit: January 28, 2003, 04:13:50 PM by Devilpyro » Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:How to change colors of admin and mod in Users online
« Reply #1 on: January 28, 2003, 04:16:16 PM »
Reply with quote

It doesn't work because it is custom code.  ;)
Logged

Devilpyro
Noobie
*
Posts: 6


I dont wanna be a llama!

Re:How to change colors of admin and mod in Users online
« Reply #2 on: January 28, 2003, 04:37:59 PM »
Reply with quote

then how to change the color?
Logged
TempusFugit
Noobie
*
Posts: 41


tempusfugit@mail.com WWW
Re:How to change colors of admin and mod in Users online
« Reply #3 on: January 28, 2003, 05:11:13 PM »
Reply with quote

In boardindex.php you'll find the following code:

if ($tmp['memberGroup']=="Administrator")
   $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>";

Change the red, blue, orange and green values with the colors you prefer either with their names or by adding their HEX value (eg #0066FF).
« Last Edit: January 28, 2003, 05:17:53 PM by TempusFugit » Logged

"All men dream: but not equally. Those who dream by night in the dusty recesses of their mind wake in the day to find that it was vanity: but the dreamers of the day are dangerous men, for they may act their dream with open eyes, to make it possible. This I did."
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Graphics and Templates  |  How to change colors of admin and mod in Users online « 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.028 seconds with 17 queries.