Ist es den möglich in der OnlineBox die angezeigten User einer bestimmten Gruppe oder Rank mit einem anderen Hexcode zu belegen ?
Hier mal die OnlineBox:
<?php if (!defined('main')) {die("no direct access");} $dif = date('Y-m-d H:i:s', time() - 60); $abf = "SELECT uid FROM `prefix_online` WHERE uptime > '". $dif."' LIMIT 0,5"; $resultID = db_query($abf); $brk=''; $guests = 0; $guestn = $lang['guests']; $uid = array(); $content=''; while ($row = db_fetch_object($resultID)) { if ($row->uid != 0 AND $brk!=$row->uid) { $name=@db_result(db_query('SELECT name FROM prefix_user WHERE id='.$row->uid),0); $content.='<a class="online" href="index.php?user-details-'.$row->uid.'" title = "gerade online">'.$name.'</a> '; $uid[] = $row->uid; } if ($row->uid == 0) { $guests++; } $brk=$row->uid; } $content .= '| '; $where = (count($uid)>0) ? 'WHERE id NOT IN ('.implode(', ', $uid).')' : ''; $abf2 = 'SELECT * FROM prefix_user '.$where.' ORDER BY llogin DESC LIMIT 0,5'; $erg2 = db_query($abf2); while ($row2 = db_fetch_object($erg2)) { $datum = date('H:i d.m.y',$row2->llogin); $user = $row2->name; $content.='<a class="offline" href="index.php?user-details-'.$row2->id.'" title="'.$lang['lasttimeonline'].$datum.'">'.$user.'</a> '; } $content .= '| '; if ($guests == 0) { $content.= '<tr><td>0 '.$lang['guests'].'</td></tr>'."\n"; } else { $content.= '<tr></td>'.$guests.' '.$guestn.'</td></tr>'."\n"; } echo $content; ?>
Wäre super,wenn dies möglich wäre. Mfg Maretz
Zuletzt modifiziert von Maretz am 17.01.2011 - 20:01:04