Admin- und MOD Farbe der Onlineanzeige?
Verfasst: 14.03.2006 13:20
Ich hab hier folgenden Code um auf der Startseite anzuzeigen welche User online sind usw ...
Funktioniert auch prima eigendlich ...
Ab jetzt würde ich gerne noch das die Admins und Mods, wie in der Forumsliste selber auch farblich hervorgehoben werden ...
Könnt ihr mir bitte schnell mal weiterhelfen?
Funktioniert auch prima eigendlich ...
Ab jetzt würde ich gerne noch das die Admins und Mods, wie in der Forumsliste selber auch farblich hervorgehoben werden ...
Könnt ihr mir bitte schnell mal weiterhelfen?
Code: Alles auswählen
<!-- ONLINE USERS -->
<?php if (isset($online)) { ?>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111"
width="100%" id="AutoNumber1">
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse"
bordercolor="#111111" width="100%" id="AutoNumber2" bgcolor="#FFCC66">
<tr>
<td width="100%"><?php echo $lang['Who_is_Online']; ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%">
<?php for ($i = 0; $i < count($online); $i++) {
?>
<a href="<?php echo append_sid($phpbb_root_path .
'profile.php?mode=viewprofile&u=' . $online[$i]['user_id']);
?>"><?php echo $online[$i]['username']; ?></a>
<?php if ($i <
count($online) - 1) { ?>, <?php } ?>
<?php } ?>
<?php if ($online) { ?>, <?php } ?>
<?php if ($stats['user_online'] - count($online) == 1) {
printf($lang['Guest_user_total'], 1);
} else { printf($lang['Guest_users_total'],
$stats['user_online'] - count($online) < 0 ? 0 :
$stats['user_online'] - count($online)); } ?>
</td>
</tr>
</table>
<br />
<?php } ?>
<!-- ONLINE USERS -->