Version: , by Afterburner
Developer Last Online: Oct 2003
Version: 2.2.x
Rating:
Released: 11-04-2001
Last Update: Never
Installs: 124
No support by the author.
Code:
With this hack you have colored usernames of: - Administratoren (ID:6)
- Supermoderatoren (ID:5)
- Moderatoren (ID:7) und
- registred Members (ID:2)
in your Onlinelist on the mainpage.
You have to enable "Highlight Admin" in your CP, if not all is shown like the registrated members (blue)
Orginal settings of this hack:
Administrator: "red"
Supermoderator: "darkred"
Moderator: "green"
Member: "blue"
You can change the color in the Index.php(3) (there is a remark)
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Its a nice idea man. I really appreciate the effort, but I just wish there was an easier way to change the colors. Sucks having to edit index.php and reup it every time you try and tweak the colors to match skin.
I have different styles on my board and on one the active users looks good but the other it's really hard to read. How can I modify it for both styles?
11-05-01 at 11:47 AM Afterburner said this in Post #1
Code:
With this hack you have colored usernames of: - Administratoren (ID:6)
- Supermoderatoren (ID:5)
- Moderatoren (ID:7) und
- registred Members (ID:2)
in your Onlinelist on the mainpage.
You have to enable "Highlight Admin" in your CP, if not all is shown like the registrated members (blue)
Orginal settings of this hack:
Administrator: "red"
Supermoderator: "darkred"
Moderator: "green"
Member: "blue"
You can change the color in the Index.php(3) (there is a remark)
i do it in 2.30
all work good but Moderator its show blue names??????
what errer ??in it
Quote:
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i><font color=red>$loggedin[username]</font></i></b>"; // Color for Admin
} else if (($loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b><font color=darkred>$loggedin[username]</font></b>"; // Color for Supermod
} else if (($mod["$userid"]) and $highlightadmin) {
$username = "<b><font color=green>$loggedin[username]</font></b>"; // Color for Mod
} else {
$username = "<font color=blue>$loggedin[username]</font>"; // Color for normal Member or "Highlight Admin" is turned of
}
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";" );
}
while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
$invisibleuser = '';
if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
continue;
}
$numbervisible++;
$userid=$loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i><font color=red>$loggedin[username]</font></i></b>"; // Color for Admin
} else if (($loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b><font color=darkred>$loggedin[username]</font></b>"; // Color for Supermod
} else if (($mod["$userid"]) and $highlightadmin) {
$username = "<b><font color=green>$loggedin[username]</font></b>"; // Color for Mod
} else {
$username = "<font color=blue>$loggedin[username]</font>"; // Color for normal Member or "Highlight Admin" is turned of
}
i don't know if this has been said yet, but the color you have for mods is only when that person is a local mod and not part of the user group mod. below is a change i made to it so both mods of specific forums and user group mods show the same color. this will also explain how to add different user groups if you look at the original code and compare it to mine.
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i><font color=red>$loggedin[username]</font></i></b>"; // Color for Admin
} else if (($loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b><font color=lightblue>$loggedin[username]</font></b>"; // Color for Supermod
} else if (($mod["$userid"]) and $highlightadmin) {
$username = "<b><font color=yellow>$loggedin[username]</font></b>"; // Color for Mod Local
} else if (($loggedin['usergroupid'] == 7) and $highlightadmin) {
$username = "<b><font color=purple>$loggedin[username]</font></b>"; // Color for Mod Group
} else {
$username = "<font color=lightgrey>$loggedin[username]</font>"; // Color for normal Member or "Highlight Admin" is turned of
}
// Afterburners Colored OnlineUserHack End