View Full Version : who is online colors..
dssforum
06-26-2002, 09:26 PM
Hey ,
I am new here and want to learn how to change the colors of the who is online list on some vbulletin forums i see the modorators in Red and the admins in Blue and sponsers ect... can someone please direct me on how to do this. any the help is appriciated. thax :squareeyed:
Xenon
06-26-2002, 09:38 PM
open online.php
find this:
if ($user['usergroupid'] == 6 and $highlightadmin) {
$userinfo["$key"]['username'] = "<b><i>$user[username]</i></b>";
} else if (($mod["$key"] or $user['usergroupid'] == 5)and $highlightadmin) {
$userinfo["$key"]['username'] = "<b>$user[username]</b>";
} else {
if you have enabled the highlightadminfeature, you can just modify the changes to a username here.
dssforum
06-26-2002, 09:57 PM
cant seem to find it
(if you have enabled the highlightadminfeature, you can just modify the changes to a username here.)
how do i do that
sorry i am not very expirianced and dont wanna mess the board up
dssforum
06-26-2002, 10:11 PM
// Let's show the admin the location but put something false up for everyone else..
if ($bbuserinfo[usergroupid] == 6) {
$userinfo[location] = htmlspecialchars(stripslashes(replacesession($user info[location])));
$userinfo[where] = "<b>Unknown Location:</b> <a href=\"$userinfo[location]\">$userinfo[location]</a>";
} else {
// We were unable to parse the location
$userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";;
is that it?
Boofo
06-27-2002, 12:00 AM
How would you add Supermoderator to that?
Originally posted by Xenon
open online.php
find this:
if ($user['usergroupid'] == 6 and $highlightadmin) {
$userinfo["$key"]['username'] = "<b><i>$user[username]</i></b>";
} else if (($mod["$key"] or $user['usergroupid'] == 5)and $highlightadmin) {
$userinfo["$key"]['username'] = "<b>$user[username]</b>";
} else {
if you have enabled the highlightadminfeature, you can just modify the changes to a username here.
Xenon
06-27-2002, 12:29 AM
dssforum: its around line 627 in an unhacked online.php
boofo:
replace
} else if (($mod["$key"] or $user['usergroupid'] == 5)and $highlightadmin) {
$userinfo["$key"]['username'] = "<b>$user[username]</b>";
} else {
with:
} else if ($user['usergroupid'] == 5 and $highlightadmin) {
$userinfo["$key"]['username'] = "<b>$user[username]</b>";
} else if ($mod["$key"] and $highlightadmin) {
$userinfo["$key"]['username'] = "<b>$user[username]</b>";
} else {
groupid5 is supermods..
dssforum
06-27-2002, 12:34 AM
ok thankx
dssforum
06-27-2002, 12:39 AM
although i have a copy of a 2.2.6 i downloaded from members i never uploaded because dont wanna have board down preety hard to use it heh
Boofo
06-27-2002, 01:30 AM
Thanks! But is there a way to have Adin, Super Mods and Modertors in all of that? I guess I should have checked which group was which before I replied to the message. Sorry. :)
Originally posted by Xenon
dssforum: its around line 627 in an unhacked online.php
boofo:
replace
} else if (($mod["$key"] or $user['usergroupid'] == 5)and $highlightadmin) {
$userinfo["$key"]['username'] = "<b>$user[username]</b>";
} else {
with:
} else if ($user['usergroupid'] == 5 and $highlightadmin) {
$userinfo["$key"]['username'] = "<b>$user[username]</b>";
} else if ($mod["$key"] and $highlightadmin) {
$userinfo["$key"]['username'] = "<b>$user[username]</b>";
} else {
groupid5 is supermods..
Xenon
06-27-2002, 11:38 AM
hmm, i think what i told you should be what you want. mods, admins and supermods have their own if-clause so you can give them different colors.
you can easily add other usergroups just ad before the } else { another else if clause :)
dssforum
08-24-2002, 10:43 PM
Boofo
I saw on your forums u had Super mods in red and mods in another color and admins in another can u give me the code to add to have that ?
Boofo
08-25-2002, 02:50 AM
Ahhh...so you were the one sneaking around there. :) Did you see all of the cob-webs on the forum?
I can give you the code and where I put it, but I don't remember the original code. It should be pretty easy to find though.
In the online.php, find this:
$count = 0;
while ($user = $DB_site->fetch_array($allusers)) {
if ($user['userid']) { // Reg'd Member
$key = $user['userid'];
if (($userinfo["$key"]['lastactivity'] < $user['lastactivity']) or !$userinfo["$key"]['lastactivity']) {
$userinfo["$key"]['realname'] = $user['username'];
if ($user['usergroupid'] == 6 and $highlightadmin) {
And this is what I have below it:
$userinfo["$key"]['username'] = "<b><i><font color=\"red\">$user[username]</i></b></font>";
} else if (($mod["$key"] or $user['usergroupid'] == 5)and $highlightadmin) {
$userinfo["$key"]['username'] = "<b><font color=\"darkred\">$user[username]</b></font>";
} else {
$userinfo["$key"]['username'] = "<font color=\"blue\">$user[username]</font>";
}
Hope that helps. :)
If you need it in any other places, just let me know.
Originally posted by dssforum
Boofo
I saw on your forums u had Super mods in red and mods in another color and admins in another can u give me the code to add to have that ?
Boofo
08-25-2002, 03:01 AM
Xenon, will the following also work or do I have one too many $mod["$key"] in it?
if ($user['usergroupid'] == 6 and $highlightadmin) {
$userinfo["$key"]['username'] = "<b><i><font color=\"red\">$user[username]</i></b></font>";
} else if (($mod["$key"] or $user['usergroupid'] == 5)and $highlightadmin) {
$userinfo["$key"]['username'] = "<b><font color=\"darkred\">$user[username]</b></font>";
} else if (($mod["$key"] or $user['usergroupid'] == 7)and $highlightadmin) {
$userinfo["$key"]['username'] = "<b><font color=\"green\">$user[username]</b></font>";
} else {
$userinfo["$key"]['username'] = "<font color=\"blue\">$user[username]</font>";
}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.