PDA

View Full Version : a new admin user group


Thewnagchung
07-30-2002, 08:10 PM
Hi, Ive created a new adminuser group, But their names arent bold/italized in the who's online bar, how can i fix this?

DrkFusion
07-30-2002, 08:25 PM
hehe, I asked for this...let me find the thread, and bump it for you

Drk

Thewnagchung
07-30-2002, 09:22 PM
thank you =D

DrkFusion
07-30-2002, 11:02 PM
UH...i can't find it, try this
find the following in online.php
if ($user['usergroupid'] == 6 and $highlightadmin) {
$userinfo["$key"]['username'] = "<b><i>$user[username]</i></b>";
and replace with
if ($user['usergroupid'] == 6 and $highlightadmin) {
$userinfo["$key"]['username'] = "<b><i>$user[username]</i></b>";
if ($user['usergroupid'] == XX and $highlightadmin) {
$userinfo["$key"]['username'] = "<b><i>$user[username]</i></b>";
Repalce XX with the id of the group

Drk

DrkFusion
07-30-2002, 11:05 PM
If that doesn't work, along with the above modification find the following in index.php
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i><font color=red>$loggedin[username]</font></i></b>"; // Color for Admin
and add under
} else if (($loggedin['usergroupid'] == XX) and $highlightadmin) {
if ($loggedin['usergroupid'] == XX and $highlightadmin) {
$username = "<b><i><font color=red>$loggedin[username]</font></i></b>"; // Color for Other Admin
and again replace XX witht he group id

Drk

Thewnagchung
07-31-2002, 02:54 AM
Originally posted by DrkFusion
If that doesn't work, along with the above modification find the following in index.php
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i><font color=red>$loggedin[username]</font></i></b>"; // Color for Admin
and add under
} else if (($loggedin['usergroupid'] == XX) and $highlightadmin) {
if ($loggedin['usergroupid'] == XX and $highlightadmin) {
$username = "<b><i><font color=red>$loggedin[username]</font></i></b>"; // Color for Other Admin
and again replace XX witht he group id

Drk

thank you so much, it works =D

DrkFusion
07-31-2002, 03:34 PM
no problem ;)

Drk