Hallöschen zsm suche folgende Online Box
externer Link
Habe schon diverses durch nur weiß leider nicht nach was ich suchen muss bzw wie das Modul heißt
verwendete ilchClan Version: 1.1 P
betroffene Homepage: externer Link
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<script type="text/javascript"> var Box = 3; var chosenBox = 1; function toggleBox (toBox) { toBox = isNaN(toBox) ? 0 : toBox; if (toBox < 1 || toBox > Box) { toBox = (chosenBox < Box) ? chosenBox + 1 : 1; } document.getElementById('Box_'+chosenBox).style.display = 'none'; document.getElementById('Box_'+toBox).style.display = ''; chosenBox = toBox; } </script> <?php defined ('main') or die ('no direct access'); echo' <div id="Box_1"> <div id="Menu"> <a href="javascript:void(0);" onclick="toggleBox(1);"><img src="/include/designs/DDvXv2/Bilder/Switchbox/online_hover.png" border="0" Title="Online"></a> <a href="javascript:void(0);" onclick="toggleBox(2);"><img src="/include/designs/DDvXv2/Bilder/Switchbox/stats.png" border="0" Title="Statistik"></a> <a href="javascript:void(0);" onclick="toggleBox(3);"><img src="/include/designs/DDvXv2/Bilder/Switchbox/bday.png" border="0" Title="Geburtstage"></a> </div> <br> <div id="Inhalt">{_boxes_online}</div> <br> </div> '; echo ' <div id="Box_2" style="display:none"> <div id="Menu"> <a href="javascript:void(0);" onclick="toggleBox(1);"><img src="/include/designs/DDvXv2/Bilder/Switchbox/online.png" border="0" Title="Online"></a> <a href="javascript:void(0);" onclick="toggleBox(2);"><img src="/include/designs/DDvXv2/Bilder/Switchbox/stats_hover.png" border="0" Title="Statistik"></a> <a href="javascript:void(0);" onclick="toggleBox(3);"><img src="/include/designs/DDvXv2/Bilder/Switchbox/bday.png" border="0" Title="Geburtstage"></a> </div> <br> <div id="Inhalt">{_boxes_statistik2}</div> <br> </div> '; echo ' <div id="Box_3" style="display:none"> <div id="Menu"> <a href="javascript:void(0);" onclick="toggleBox(1);"><img src="/include/designs/DDvXv2/Bilder/Switchbox/online.png" border="0" Title="Online"></a> <a href="javascript:void(0);" onclick="toggleBox(2);"><img src="/include/designs/DDvXv2/Bilder/Switchbox/stats.png" border="0" Title="Statistik"></a> <a href="javascript:void(0);" onclick="toggleBox(3);"><img src="/include/designs/DDvXv2/Bilder/Switchbox/bday_hover.png" border="0" Title="Geburtstage"></a> </div> <br> <div id="Inhalt">{_boxes_geburtstag}</div> <br> </div> '; ?>
<script type="text/javascript"> var box = 4; var chosbox = 1; function togglebox (tshow) { tshow = isNaN(tshow) ? 1 : tshow; if (tshow < 1 || tshow > box) { tshow = (chosbox < box) ? chosbox + 1 : 1; } document.getElementById('boxx_'+chosbox).style.display = 'none'; document.getElementById('boxx_'+tshow).style.display = ''; chosbox = tshow; } </script> <div align="center"> <a href="javascript:void(0);" onclick="toggleBoxes(1);"><img src="include/images/icons/boxen/teamspeak.png" width="80" height="28" border="0" onmouseover="this.src='include/images/icons/boxen/teamspeak_hover.png'" onmouseout="this.src='include/images/icons/boxen/teamspeak.png'" border="0" alt="Join unserem Teamspeak"></a> <a href="javascript:void(0);" onclick="toggleBoxes(2);"><img src="include/images/icons/boxen/gameserver.png" width="80" height="28" border="0" onmouseover="this.src='include/images/icons/boxen/gameserver_hover.png'" onmouseout="this.src='include/images/icons/boxen/gameserver.png'" border="0" alt="Battlefield 3 Server"></a> </div> <br /> <div id="boxx_1" style="display:none"><!-- var ts3v_url_1 = "http://www.tsviewer.com/ts3viewer.php?ID=1024043&text=ffffff&text_size=12&text_family=1&js=1&text_s_weight=bold&text_s_style=normal&text_s_variant=normal&text_s_decoration=none&text_s_color_h=525284&text_s_weight_h=bold&text_s_style_h=normal&text_s_variant_h=normal&text_s_decoration_h=underline&text_i_weight=normal&text_i_style=normal&text_i_variant=normal&text_i_decoration=none&text_i_color_h=525284&text_i_weight_h=normal&text_i_style_h=normal&text_i_variant_h=normal&text_i_decoration_h=underline&text_c_weight=normal&text_c_style=normal&text_c_variant=normal&text_c_decoration=none&text_c_color_h=525284&text_c_weight_h=normal&text_c_style_h=normal&text_c_variant_h=normal&text_c_decoration_h=underline&text_u_weight=bold&text_u_style=normal&text_u_variant=normal&text_u_decoration=none&text_u_color_h=525284&text_u_weight_h=bold&text_u_style_h=normal&text_u_variant_h=normal&text_u_decoration_h=none"; ts3v_display.init(ts3v_url_1, 1024043, 100); --></div> <div id="boxx_2" style="display:none">{_boxes_gameserver}</div>
<script type="text/javascript"> var Box = 3; var chosenBox = 1; function toggleBox (toBox) { toBox = isNaN(toBox) ? 0 : toBox; if (toBox < 1 || toBox > Box) { toBox = (chosenBox < Box) ? chosenBox + 1 : 1; } document.getElementById('Box_'+chosenBox).style.display = 'none'; document.getElementById('Box_'+toBox).style.display = ''; chosenBox = toBox; } </script>
<script type="text/javascript"> var Server = 3; var chosenServer = 1; function toggleServer (toServer) { toServer = isNaN(toServer) ? 0 : toServer; if (toServer < 1 || toServer > Server) { toServer = (chosenServer < Server) ? chosenServer + 1 : 1; } document.getElementById('Server_'+chosenServer).style.display = 'none'; document.getElementById('Server_'+toServer).style.display = ''; chosenServer = toServer; } </script>
echo' <div id="Box_1"> <div id="Menu"> <a href="javascript:void(0);" onclick="toggleBox(1);"><img src="/include/designs/DDvXv2/Bilder/Switchbox/online_hover.png" border="0" Title="Online"></a> <a href="javascript:void(0);" onclick="toggleBox(2);"><img src="/include/designs/DDvXv2/Bilder/Switchbox/stats.png" border="0" Title="Statistik"></a> <a href="javascript:void(0);" onclick="toggleBox(3);"><img src="/include/designs/DDvXv2/Bilder/Switchbox/bday.png" border="0" Title="Geburtstage"></a> </div> <br>
echo' <div id="Server_1"> <div id="Server"> <a href="javascript:void(0);" onclick="toggleServer(1);"><img src="/include/designs/DDvXv2/Bilder/Switchbox/ts3_hover.png" border="0" Title="Teamspeak"></a> <a href="javascript:void(0);" onclick="toggleServer(2);"><img src="/include/designs/DDvXv2/Bilder/Switchbox/server1.png" border="0" Title="BF3 Server 1 (Rammelstube)"></a> <a href="javascript:void(0);" onclick="toggleServer(3);"><img src="/include/designs/DDvXv2/Bilder/Switchbox/server2.png" border="0" Title="BF3 Server 2 (Hoppelbude)"></a> </div> <br>
var Box = 2;
<div id="boxx_1" style="display:none">
<div id="boxx_1">
<div id="Inhalt"><div id="ts3viewer_977635" style="width:210px; height:500px; overflow:auto;"> </div> <script type="text/javascript" src="http://static.tsviewer.com/short_expire/js/ts3viewer_loader.js"></script> <script type="text/javascript"> <!-- var ts3v_url_1 = "http://www.tsviewer.com/ts3viewer.php?ID=977635&text=FFFFFF&text_size=9&text_family=1&js=1&text_s_color=E78830&text_s_weight=bold&text_s_style=normal&text_s_variant=normal&text_s_decoration=none&text_s_color_h=E78830&text_s_weight_h=bold&text_s_style_h=normal&text_s_variant_h=normal&text_s_decoration_h=underline&text_i_weight=normal&text_i_style=normal&text_i_variant=normal&text_i_decoration=none&text_i_weight_h=normal&text_i_style_h=normal&text_i_variant_h=normal&text_i_decoration_h=underline&text_c_weight=normal&text_c_style=normal&text_c_variant=normal&text_c_decoration=none&text_c_weight_h=normal&text_c_style_h=normal&text_c_variant_h=normal&text_c_decoration_h=underline&text_u_color=E78830&text_u_weight=bold&text_u_style=normal&text_u_variant=normal&text_u_decoration=none&text_u_color_h=E78830&text_u_weight_h=bold&text_u_style_h=normal&text_u_variant_h=normal&text_u_decoration_h=none"; ts3v_display.init(ts3v_url_1, 977635, 100); --> </script></div>
<script language="JavaScript" type="text/javascript"> <!-- function einblenden(div) { with(document.getElementById(div).style){ if(display=="none"){ display="inline"; } else{ display="none"; } } } //--> </script> <?php # Copyright by Manuel Staechele # Support www.ilch.de # Modifiziert by: Puni # Support: www.fhag-gaming.de if (!defined('main')) {die("no direct access");} $dif = date('Y-m-d H:i:s', time() - 60); $abf = "SELECT a.uid, b.avatar FROM `prefix_online` a LEFT JOIN prefix_user b ON a.uid = b.id WHERE uptime > '". $dif."'"; $resultID = db_query($abf); $brk=''; $uid = array(); $guests = 0; $guestn = $lang['guests']; $content=''; while ($row = db_fetch_object($resultID)) { if ( file_exists($row->avatar)) { $avatar = '<a href="index.php?user-details-'.$row->uid.'"><img width="40" height="53" src="'.$row->avatar.'" border="0">'; } else { $avatar = '<a href="index.php?user-details-'.$row->uid.'"><img width="40" height="53" src="include/images/avatars/noavatar.jpg" border="0">'; } if ($row->uid != 0 AND $brk!=$row->uid) { $name=@db_result(db_query('SELECT name FROM prefix_user WHERE id='.$row->uid),0); $content.='<table width="70%" align="center" cellpadding="2" cellspacing="0" border="0"> <tr><td width="20" align="left" valign="middle"><img src="include/images/icons/online.gif" border="0" alt="online"></td> <td align="left" valign="middle"> <a class="box" onmouseover="javascript:einblenden('.$row->uid.')" onmouseout="javascript:einblenden('.$row->uid.')" href="index.php?user-details-'.$row->uid.'">'.$name.'</a></td> </tr></table> <div id="'.$row->uid.'" style="display : none;"> <table align="center" border="0" width="90%" cellspacing="2" cellpadding="0" style="border: 1px solid #12c100"> <tr><td>'.$avatar.'</td><td><font color="#12c100">Zurzeit Online!</font></td> </tr></table></div>'."n"; $uid[] = $row->uid; } if ($row->uid == 0) { $guests++; } $brk=$row->uid; } if ($guests == 1) { $guestn = $lang['guest']; } if (empty($content)) { $content.='<table width="70%" align="center" cellpadding="2" cellspacing="0" border="0"><tr><td width="20" align="left" valign="middle"><img src="include/images/icons/offline.gif" border="0" alt="offline"></td> <td align="left" valign="middle"><font color="#c10000">0 User </font></td> </tr></table>'."n"; } $content.='<table width="70%" align="center" cellpadding="2" cellspacing="0" border="0"><tr><td colspan="2"><hr style="height: 0px; border: dashed #747474 0px; border-top-width: 1px;"></td></tr></table>'."n"; $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)) { if ( file_exists($row2->avatar)) { $avatar = '<a href="index.php?user-details-'.$row2->id.'"><img width="40" height="53" src="'.$row2->avatar.'" border="0">'; } else { $avatar = '<a href="index.php?user-details-'.$row2->id.'"><img witdh="40" height="53" src="include/images/avatars/noavatar.jpg" border="0">'; } $datum = date('H:i Uhr - d.m.y',$row2->llogin); $user = $row2->name; $content.='<table width="70%" align="center" cellpadding="2" cellspacing="0" border="0"><tr> <td width="20" align="left" valign="middle"><img src="include/images/icons/offline.gif" border="0" alt="offline"></td> <td align="left" valign="middle"> <a class="box" onmouseover="javascript:einblenden('.$row2->id.')" onmouseout="javascript:einblenden('.$row2->id.')" href="index.php?user-details-'.$row2->id.'">'.$user.'</a></td> </tr></table> <div id="'.$row2->id.'" style="display : none;"> <table align="center" border="0" width="90%" cellspacing="2" cellpadding="0" style="border: 1px solid #FF0000"> <tr><td>'.$avatar.'</td><td> Letztes mal Online:<br /> '.$datum.'</td> </tr></table></div>'."n"; } if ($guests == 0) { $content.= '<table width="70%" align="center" cellpadding="2" cellspacing="0" border="0"><tr><td colspan="2"><hr style="height: 0px; border: dashed #747474 0px; border-top-width: 1px";></td></tr>'."n".' <tr><td width="20" align="left" valign="middle"><img src="include/images/icons/offline.gif" border="0" alt="offline"></td> <td align="left" valign="middle"><font size="-1" color="#c10000">0 '.$lang['guests'].'</td> </tr></table>'."n"; } else { $content.= '<table width="70%" align="center" cellpadding="2" cellspacing="0" border="0"><tr><td colspan="2"><hr style="height: 0px; border: dashed #747474 0px; border-top-width: 1px;"></td></tr>'."n".' <tr><td width="20" align="left" valign="middle"><img src="include/images/icons/online.gif" border="0" alt="online"></td> <td align="left" valign="middle"><font size=-1>'.$guests.' '.$guestn.'</font></td> </tr></table>'."n"; } ?> <?php echo $content; ?>
<link media="screen" href="include/boxes/online_css/online.css" type="text/css" rel="stylesheet"> <?php if (!defined('main')) {die("no direct access");} // Farben & RangIcon $farbeAdmin = '#ff0000'; $iconAdmin = '<td><img src="/include/images/onlineboxicons/admin.png" border="0" alt="Admin" style="vertical-align:text-bottom;" />'; // Admin $farbeCoAdmin = '#ff8000'; $iconCoAdmin = '<td><img src="/include/images/onlineboxicons/coadmin.png" border="0" alt="CoAdmin" style="vertical-align:text-bottom;"/>'; // CoAdmin $farbeSiteAdmin = '#ff00ff'; $iconSiteAdmin = '<td><img src="/include/images/onlineboxicons/moderator.png" border="0" alt="Moderator" style="vertical-align:text-bottom;"/>'; // SiteAdmin $farbeLeader = '#bdbdbd'; $iconLeader = '<td><img src="/include/images/onlineboxicons/leader.png" border="0" alt="Leader" style="vertical-align:text-bottom;" />'; // Leader $farbeCoLeader = '#cccccc'; $iconCoLeader = '<td><img src="/include/images/onlineboxicons/coleader.png" border="0" alt="Coleader" style="vertical-align:text-bottom;" />'; // Coleader $farbeMember = '#00ff00'; $iconMember = '<td><img src="/include/images/onlineboxicons/fullmember.png" border="0" alt="Fullmemebr" style="vertical-align:text-bottom;"/>'; // Member $farbeTrialmember = '#ffff00'; $iconTrialmember = '<td><img src="/include/images/onlineboxicons/trialmember.png" border="0" alt="Trialmember" style="vertical-align:text-bottom;"/>'; // Trialmember $farbeSuperuser = '#ffffff'; $iconSuperuser = '<td><img src="/include/images/onlineboxicons/inaktiv.png" border="0" alt="Inaktiv" style="vertical-align:text-bottom;"/></td>'; // Inaktiv $farbeUser = '#00bfff'; $iconUser = '<td><img src="/include/images/onlineboxicons/user.png" border="0" alt="User" style="vertical-align:text-bottom;"/></td>'; // User $farbeGast = '#ffffff'; $iconGast = '<td><img src="/include/images/onlineboxicons/gast.png" border="0" alt="G" style="vertical-align:text-bottom;"/></td>'; // Gast $dif = date('Y-m-d H:i:s', time() - 60); $abf = "SELECT uid FROM `prefix_online` WHERE uptime > '". $dif."'"; $resultID = db_query($abf); $brk=''; $uid = array(); $guests = 0; $guestn = $lang['guests']; $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); $recht=@db_result(db_query('SELECT recht FROM prefix_user WHERE id='.$row->uid),0); if ($recht == -9) {$farbe = $farbeAdmin; $rangIcon = $iconAdmin;} elseif ($recht == -8) {$farbe = $farbeCoAdmin; $rangIcon = $iconCoAdmin;} elseif ($recht == -7) {$farbe = $farbeSiteAdmin; $rangIcon = $iconSiteAdmin;} elseif ($recht == -6) {$farbe = $farbeLeader; $rangIcon = $iconLeader;} elseif ($recht == -5) {$farbe = $farbeCoLeader; $rangIcon = $iconCoLeader;} elseif ($recht == -4) {$farbe = $farbeMember; $rangIcon = $iconMember;} elseif ($recht == -3) {$farbe = $farbeTrialmember; $rangIcon = $iconTrialmember;} elseif ($recht == -2) {$farbe = $farbeSuperuser; $rangIcon = $iconSuperuser;} elseif ($recht == -1) {$farbe = $farbeUser; $rangIcon = $iconUser;} else {$farbe = $farbeGast; $rangIcon = $iconGast;} $chat = (loggedin() && $_SESSION['authid'] != $row->id) ? '<td><a href="javascript:void(0)" onclick="javascript:chatWith(''.$row->uid.'',''.$name.'')"><img src="include/images/onlineboxicons/pm.png" width="25" height="18" border="0" alt="Chat" /></a>' : ''; $content.= '<tr><td><img src="include/images/onlineboxicons/online.png" align="absmiddle" border="0" alt="online"></td>'; $content.='<td> <b><a href="index.php?user-details-'.$row->uid.'"><font size= 1 style="color:'.$farbe.'">'.$name.'</font> '.$rangIcon.'</a></td><td width="16">'.$chat.'</td></tr>'.""; $uid[] = $row->uid; } if ($row->uid == 0) { $guests++; } $brk=$row->uid; } if ($guests == 1) { $guestn = $lang['guest']; } if (empty($content)) { $content.='<tr><td><img src="include/images/onlineboxicons/offline.png" align="absmiddle" border="0" alt="offline"></td><td><font style="color:'.$farbe.'">0 User </font></td></tr>'.""; } $content.='<tr><td colspan="3"><hr style="<hr>"></td></tr>'.""; $where = (count($uid)>0) ? 'WHERE id NOT IN ('.implode(', ', $uid).')' : ''; $abf2 = 'SELECT * FROM prefix_user '.$where.' ORDER BY llogin DESC LIMIT 0,10'; $erg2 = db_query($abf2); while ($row2 = db_fetch_object($erg2)) { if ($row2->recht == -9) {$farbe = $farbeAdmin; $rangIcon = $iconAdmin;} elseif ($row2->recht == -8) {$farbe = $farbeCoAdmin; $rangIcon = $iconCoAdmin;} elseif ($row2->recht == -7) {$farbe = $farbeSiteAdmin; $rangIcon = $iconSiteAdmin;} elseif ($row2->recht == -6) {$farbe = $farbeLeader; $rangIcon = $iconLeader;} elseif ($row2->recht == -5) {$farbe = $farbeCoLeader; $rangIcon = $iconCoLeader;} elseif ($row2->recht == -4) {$farbe = $farbeMember; $rangIcon = $iconMember;} elseif ($row2->recht == -3) {$farbe = $farbeTrialmember; $rangIcon = $iconTrialmember;} elseif ($row2->recht == -2) {$farbe = $farbeSuperuser; $rangIcon = $iconSuperuser;} elseif ($row2->recht == -1) {$farbe = $farbeUser; $rangIcon = $iconUser;} else {$farbe = $farbeGast; $rangIcon = $iconGast;} $datum = date('H:i d.m.y',$row2->llogin); $user = '<font size= 1 style="color:'.$farbe.'">'.$row2->name.' '.$rangIcon.'</font>'; $content.='<tr><td><img src="include/images/onlineboxicons/offline.png" align="absmiddle" border="0" alt="offline"></td><td> <b><a href="index.php?user-details-'.$row2->id.'" title="'.$lang['lasttimeonline'].$datum.'">'.$user.'</a></td></tr>'.""; } if ($guests == 0) { $content.= '<tr><td colspan="3"><hr style="<hr>"></td></tr>'."".' <tr><td><img src="include/images/onlineboxicons/offline.png" align="absmiddle" border="0" alt="offline"></td><td> <font size="-1" color="'.$farbeGast.'">0 '.$lang['guests'].'</td></tr>'.""; } else { $content.= '<tr><td colspan="3"><hr style="<hr>"></td></tr>'."".' <tr><td><img src="include/images/onlineboxicons/online.png" align="absmiddle" border="0" alt="online"></td><td> <font size="-1" color="'.$farbeGast.'">'.$guests.' '.$guestn.'</font></td></tr>'.""; } ?><br> <table width="86%" border="0" cellpadding="0" cellspacing="0" align="center"> <?php echo $content; ?> </table><br> <script type="text/javascript"> function auf(x) { if(document.getElementById(x).style.display == "block") { document.getElementById(x).style.display = "none"; } else { document.getElementById(x).style.display = "block"; }} </script> <center><a href="#" onclick="auf('unter1');return false;"><img src="include/images/onlineboxicons/legende.png" border="0" alt="Online" onmouseover="this.src='include/images/onlineboxicons/legende_h.png';" onmouseout="this.src='include/images/onlineboxicons/legende.png'" /></a> <div style="display:none;" id="unter1"> <div class="visiblebox"> <div class="toggle_ce"> <div class="visiblebox"><br> <div align="left"><blockquote><b><img src="include/images/onlineboxicons/admin.png" width="16" height="16" align="top"/> <font color="#FF0000"> = Admin </font><br><p> <img src="include/images/onlineboxicons/coadmin.png" width="16" height="16" align="top"/> <font color="#FF8000"> = Co-Admin </font><br><p> <img src="include/images/onlineboxicons/moderator.png" width="16" height="16" align="top"/> <font color="#ff00ff"> = Moderator </font><br><p> <img src="include/images/onlineboxicons/leader.png" width="16" height="16" align="top"/> <font color="#bdbdbd"> = Leader </font><br><p> <img src="include/images/onlineboxicons/coleader.png" width="16" height="16" align="top"/> <font color="#cccccc"> = Coleader </font><br><p> <img src="include/images/onlineboxicons/fullmember.png" width="16" height="16" align="top"/> <font color="#00ff00"> = Fullmember </font><br><p> <img src="include/images/onlineboxicons/trialmember.png" width="16" height="16" align="top"/> <font color="#ffff00"> = Trialmember </font><br><p> <img src="include/images/onlineboxicons/inaktiv.png" width="16" height="16" align="top"/> <font color="#ffffff"> = Inaktiv </font><br><p> <img src="include/images/onlineboxicons/user.png" width="16" height="16" align="top"/> <font color="#00bfff"> = User </font></b></div></blockquote> </div> <div class="togglebox"> </div> <div class="toggler"><br> </div> </div> </div> </div> </center>
<a href="index.php?user-details-'.$row['id'].'" class="online_tooltip">'.$row['name'].'<span><img width="68" border="0" '.$avatar.'</img><br><br></span></a>
displayzum Einblenden das css-Attribut
visibility: visible;, zum Ausblenden
visibility: hidden;, dann verschiebt es drum herum nix
<font color="#ffffff"><u><strong>------Wer war/ist Online?------</strong></u></font><br><br> <script language="JavaScript" type="text/javascript"> <!-- function einblenden(div) { with(document.getElementById(div).style){ if(visibility=="hidden"){ visibility="visible"; } else{ visibility="hidden"; } } } //--> </script> <?php if (!defined('main')) {die("no direct access");} // Farben & RangIcon $farbeAdmin = '#FF0000'; $iconAdmin = '<img src="include/images/onlineboxicons/admin.png" border="0" alt="CoAdmin" style="vertical-align:text-bottom;"/>'; // Admin $farbeCoAdmin = '#FF8800'; $iconCoAdmin = '<img src="include/images/onlineboxicons/coadmin.png" border="0" alt="CoAdmin" style="vertical-align:text-bottom;"/>'; // CoAdmin $farbeSiteAdmin = '#FF8800'; $iconSiteAdmin = '<img src="include/images/onlineboxicons/siteadmin.png" border="0" alt="SiteAdmin" style="vertical-align:text-bottom;"/>'; // SiteAdmin $farbeLeader = '#00FF00'; $iconLeader = '<img src="include/images/onlineboxicons/leader.png" border="0" alt="Leader" style="vertical-align:text-bottom;"/>'; // Leader $farbeCoLeader = '#00FF00'; $iconCoLeader = '<img src="include/images/onlineboxicons/coleader.png" border="0" alt="CoLeader" style="vertical-align:text-bottom;"/>'; // CoLeader $farbeMember = '#0000FF'; $iconMember = '<img src="include/images/onlineboxicons/fullmember.png" border="0" alt="Member" style="vertical-align:text-bottom;"/>'; // Member $farbeTrialmember = '#0000FF'; $iconTrialmember = '<img src="include/images/onlineboxicons/trialmember.png" border="0" alt="TrialMember" style="vertical-align:text-bottom;"/>'; // Trialmember $farbeSuperuser = '#cccccc'; $iconSuperuser = '<img src="include/images/onlineboxicons/superuser.png" border="0" alt="SuperUser" style="vertical-align:text-bottom;"/>'; // Superuser $farbeUser = '#000000'; $iconUser = '<img src="include/images/onlineboxicons/user.png" border="0" alt="User" style="vertical-align:text-bottom;"/>'; // User $farbeGast = '#000000'; $iconGast = '<img src="include/images/onlineboxicons/gast.png" border="0" alt="Gast" style="vertical-align:text-bottom;"/>'; // Gast $dif = date('Y-m-d H:i:s', time() - 60); $abf = "SELECT a.uid, b.avatar, b.recht, b.gebdatum FROM `prefix_online` a LEFT JOIN prefix_user b ON a.uid = b.id WHERE uptime > '". $dif."'"; $resultID = db_query($abf); $brk=''; $uid = array(); $guests = 0; $guestn = $lang['guests']; $content=''; while ($row = db_fetch_object($resultID)) { if ( file_exists($row->avatar)) { $avatar = '<a href="index.php?user-details-'.$row->uid.'"><img width="40" height="53" src="'.$row->avatar.'" border="0">'; } else { $avatar = '<a href="index.php?user-details-'.$row->uid.'"><img width="40" height="53" src="include/images/avatars/noavatar.png" border="0">'; } if ($row->uid != 0 AND $brk!=$row->uid) { $name=@db_result(db_query('SELECT name FROM prefix_user WHERE id='.$row->uid),0); if ($row->recht == -9) {$farbe = $farbeAdmin; $rangIcon = $iconAdmin;} elseif ($row->recht == -8) {$farbe = $farbeCoAdmin; $rangIcon = $iconCoAdmin;} elseif ($row->recht == -7) {$farbe = $farbeSiteAdmin; $rangIcon = $iconSiteAdmin;} elseif ($row->recht == -6) {$farbe = $farbeLeader; $rangIcon = $iconLeader;} elseif ($row->recht == -5) {$farbe = $farbeCoLeader; $rangIcon = $iconCoLeader;} elseif ($row->recht == -4) {$farbe = $farbeMember; $rangIcon = $iconMember;} elseif ($row->recht == -3) {$farbe = $farbeTrialmember; $rangIcon = $iconTrialmember;} elseif ($row->recht == -2) {$farbe = $farbeSuperuser; $rangIcon = $iconSuperuser;} elseif ($row->recht == -1) {$farbe = $farbeUser; $rangIcon = $iconUser;} else {$row->recht = $farbeGast; $rangIcon = $iconGast;} $content.='<table width="90%" align="center" cellpadding="2" cellspacing="0" border="0"> <tr> <td width="5%" align="center"><img src="include/images/icons/online.gif" border="0" alt="online"></td> <td width="80%" align="left" ><a class="box" onmouseover="javascript:einblenden('.$row->uid.')" onmouseout="javascript:einblenden('.$row->uid.')" href="index.php?user-details-'.$row->uid.'"><font style="color:'.$farbe.'">'.$name.' '.$alter.'</font></a></td> <td width="5%" align="center">'.$rangIcon.'</td> </tr></table> <div id="'.$row->uid.'" style="visibility : hidden;"> <table align="center" border="0" width="90%" cellspacing="2" cellpadding="0" style="border: 1px solid #00ff00"> <tr> <td>'.$avatar.'</td> <td><font color="#00ff00">Jetzt gerade hier!</font></td> </tr> </table></div>'."\n"; $uid[] = $row->uid; } if ($row->uid == 0) { $guests++; } $brk=$row->uid; } if ($guests == 1) { $guestn = $lang['guest']; } if (empty($content)) { $content.='<table width="90%" align="center" cellpadding="2" cellspacing="0" border="0"><tr><td><img src="include/images/icons/offline.gif" border="0" alt="offline"><font color="#003366">0 User </font></td></tr></table>'."\n"; } $content.='<table width="90%" align="center" cellpadding="2" cellspacing="0" border="0"><tr><td colspan="2"><hr style="height: 0px; border: dashed #9AB1C8 0px; border-top-width: 1px;"></td></tr></table>'."\n"; $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)) { if ($row2->recht == -9) {$farbe = $farbeAdmin; $rangIcon = $iconAdmin;} elseif ($row2->recht == -8) {$farbe = $farbeCoAdmin; $rangIcon = $iconCoAdmin;} elseif ($row2->recht == -7) {$farbe = $farbeSiteAdmin; $rangIcon = $iconSiteAdmin;} elseif ($row2->recht == -6) {$farbe = $farbeLeader; $rangIcon = $iconLeader;} elseif ($row2->recht == -5) {$farbe = $farbeCoLeader; $rangIcon = $iconCoLeader;} elseif ($row2->recht == -4) {$farbe = $farbeMember; $rangIcon = $iconMember;} elseif ($row2->recht == -3) {$farbe = $farbeTrialmember; $rangIcon = $iconTrialmember;} elseif ($row2->recht == -2) {$farbe = $farbeSuperuser; $rangIcon = $iconSuperuser;} elseif ($row2->recht == -1) {$farbe = $farbeUser; $rangIcon = $iconUser;} else {$row2->recht = $farbeGast; $rangIcon = $iconGast;} if ( file_exists($row2->avatar)) { $avatar = '<a href="index.php?user-details-'.$row2->id.'"><img width="40" height="53" src="'.$row2->avatar.'" border="0">'; } else { $avatar = '<a href="index.php?user-details-'.$row2->id.'"><img witdh="40" height="53" src="include/images/avatars/noavatar.png" border="0">'; } $datum = date('H:i \U\h\r - d.m.y',$row2->llogin); $content.='<table width="90%" align="center" cellpadding="2" cellspacing="0" border="0"> <tr> <td align="center" width="5%"><img src="include/images/icons/offline.gif" border="0" alt="offline"></td> <td align="left" width="80%"><a class="box" onmouseover="javascript:einblenden('.$row2->id.')" onmouseout="javascript:einblenden('.$row2->id.')" href="index.php?user-details-'.$row2->id.'"><font style="color:'.$farbe.'">'.$row2->name.' '.$alter.'</font></a></td> <td align="center" width="5%">'.$rangIcon.'</td> </tr> </table> <div id="'.$row2->id.'" style="visibility : hidden;"> <table align="center" border="0" width="90%" cellspacing="2" cellpadding="0" style="border: 1px solid #FF0000"> <tr> <td>'.$avatar.'</td><td> Letztes mal Online:<br /> '.$datum.'</td> </tr> </table></div>'."\n"; } if ($guests == 0) { $content.= '<table width="90%" align="center" cellpadding="2" cellspacing="0" border="0"><tr><td colspan="2"><hr style="height: 0px; border: dashed #9AB1C8 0px; border-top-width: 1px";></td></tr>'."\n".' <tr><td><img src="include/images/icons/offline.gif" border="0" alt="offline"><font size="-1" color="'.$farbeGast.'">0 '.$lang['guests'].'</td></tr></table>'."\n"; } else { $content.= '<table width="90%" align="center" cellpadding="2" cellspacing="0" border="0"><tr><td colspan="2"><hr style="height: 0px; border: dashed #9AB1C8 0px; border-top-width: 1px;"></td></tr>'."\n".' <tr><td><img src="include/images/icons/online.gif" border="0" alt="online"><font size=-1>'.$guests.' '.$guestn.'</font></td></tr></table>'."\n"; } ?> <br> <table width="86%" border="0" cellpadding="0" cellspacing="0" align="center"> <?php echo $content; ?> <script type="text/javascript"> function auf(x) { if(document.getElementById(x).style.visibility == "block") { document.getElementById(x).style.visibility = "hidden"; } else { document.getElementById(x).style.visibility = "block"; }} </script> <center><a href="#" onclick="auf('unter1');return false;"><img src="include/images/onlineboxicons/legende.png" border="0" alt="Online" onmouseover="this.src='include/images/onlineboxicons/legende_h.png';" onmouseout="this.src='include/images/onlineboxicons/legende.png'" /></a> <div style="visibility:hidden;" id="unter1"> <div class="visiblebox"> <div class="toggle_ce"> <div class="visiblebox"><br> <div align="left"><blockquote><b><img src="include/images/onlineboxicons/admin.png" width="16" height="16" align="top"/> <font color="#FF0000"> = Admin </font><br><p> <img src="include/images/onlineboxicons/coadmin.png" width="16" height="16" align="top"/> <font color="#FF8000"> = Co-Admin </font><br><p> <img src="include/images/onlineboxicons/moderator.png" width="16" height="16" align="top"/> <font color="#ff00ff"> = Moderator </font><br><p> <img src="include/images/onlineboxicons/leader.png" width="16" height="16" align="top"/> <font color="#bdbdbd"> = Leader </font><br><p> <img src="include/images/onlineboxicons/coleader.png" width="16" height="16" align="top"/> <font color="#cccccc"> = Coleader </font><br><p> <img src="include/images/onlineboxicons/fullmember.png" width="16" height="16" align="top"/> <font color="#00ff00"> = Fullmember </font><br><p> <img src="include/images/onlineboxicons/trialmember.png" width="16" height="16" align="top"/> <font color="#ffff00"> = Trialmember </font><br><p> <img src="include/images/onlineboxicons/inaktiv.png" width="16" height="16" align="top"/> <font color="#ffffff"> = Inaktiv </font><br><p> <img src="include/images/onlineboxicons/user.png" width="16" height="16" align="top"/> <font color="#00bfff"> = User </font></b></div></blockquote> </div> <div class="togglebox"> </div> <div class="toggler"><br> </div> </div> </div> </div> </center>
<link media="screen" href="include/boxes/online_css/online.css" type="text/css" rel="stylesheet"> <?php if (!defined('main')) {die("no direct access");} // Farben & RangIcon $farbeAdmin = '#ff0000'; $iconAdmin = '<td><img src="/include/images/onlineboxicons/admin.png" border="0" alt="Admin" style="vertical-align:text-bottom;" />'; // Admin $farbeCoAdmin = '#ff8000'; $iconCoAdmin = '<td><img src="/include/images/onlineboxicons/coadmin.png" border="0" alt="CoAdmin" style="vertical-align:text-bottom;"/>'; // CoAdmin $farbeSiteAdmin = '#ff00ff'; $iconSiteAdmin = '<td><img src="/include/images/onlineboxicons/moderator.png" border="0" alt="Moderator" style="vertical-align:text-bottom;"/>'; // SiteAdmin $farbeLeader = '#bdbdbd'; $iconLeader = '<td><img src="/include/images/onlineboxicons/leader.png" border="0" alt="Leader" style="vertical-align:text-bottom;" />'; // Leader $farbeCoLeader = '#cccccc'; $iconCoLeader = '<td><img src="/include/images/onlineboxicons/coleader.png" border="0" alt="Coleader" style="vertical-align:text-bottom;" />'; // Coleader $farbeMember = '#00ff00'; $iconMember = '<td><img src="/include/images/onlineboxicons/fullmember.png" border="0" alt="Fullmemebr" style="vertical-align:text-bottom;"/>'; // Member $farbeTrialmember = '#ffff00'; $iconTrialmember = '<td><img src="/include/images/onlineboxicons/trialmember.png" border="0" alt="Trialmember" style="vertical-align:text-bottom;"/>'; // Trialmember $farbeSuperuser = '#ffffff'; $iconSuperuser = '<td><img src="/include/images/onlineboxicons/inaktiv.png" border="0" alt="Inaktiv" style="vertical-align:text-bottom;"/></td>'; // Inaktiv $farbeUser = '#00bfff'; $iconUser = '<td><img src="/include/images/onlineboxicons/user.png" border="0" alt="User" style="vertical-align:text-bottom;"/></td>'; // User $farbeGast = '#ffffff'; $iconGast = '<td><img src="/include/images/onlineboxicons/gast.png" border="0" alt="G" style="vertical-align:text-bottom;"/></td>'; // Gast $dif = date('Y-m-d H:i:s', time() - 60); $abf = "SELECT uid FROM `prefix_online` WHERE uptime > '". $dif."'"; $resultID = db_query($abf); $brk=''; $uid = array(); $guests = 0; $guestn = $lang['guests']; $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); $recht=@db_result(db_query('SELECT recht FROM prefix_user WHERE id='.$row->uid),0); if ($recht == -9) {$farbe = $farbeAdmin; $rangIcon = $iconAdmin;} elseif ($recht == -8) {$farbe = $farbeCoAdmin; $rangIcon = $iconCoAdmin;} elseif ($recht == -7) {$farbe = $farbeSiteAdmin; $rangIcon = $iconSiteAdmin;} elseif ($recht == -6) {$farbe = $farbeLeader; $rangIcon = $iconLeader;} elseif ($recht == -5) {$farbe = $farbeCoLeader; $rangIcon = $iconCoLeader;} elseif ($recht == -4) {$farbe = $farbeMember; $rangIcon = $iconMember;} elseif ($recht == -3) {$farbe = $farbeTrialmember; $rangIcon = $iconTrialmember;} elseif ($recht == -2) {$farbe = $farbeSuperuser; $rangIcon = $iconSuperuser;} elseif ($recht == -1) {$farbe = $farbeUser; $rangIcon = $iconUser;} else {$farbe = $farbeGast; $rangIcon = $iconGast;} $chat = (loggedin() && $_SESSION['authid'] != $row->id) ? '<td><a href="javascript:void(0)" onclick="javascript:chatWith(\''.$row->uid.'\',\''.$name.'\')"><img src="include/images/onlineboxicons/pm.png" width="25" height="18" border="0" alt="Chat" /></a>' : ''; $content.= '<tr><td><img src="include/images/onlineboxicons/online.png" align="absmiddle" border="0" alt="online"></td>'; $content.='<td> <b><a href="index.php?user-details-'.$row->uid.'" class="online_tooltip"><font size= 1 style="color:'.$farbe.'">'.$name.'</font> '.$rangIcon.'</a></td><td width="16">'.$chat.'</td></tr>'.""; $uid[] = $row->uid; } if ($row->uid == 0) { $guests++; } $brk=$row->uid; } if ($guests == 1) { $guestn = $lang['guest']; } if (empty($content)) { $content.='<tr><td><img src="include/images/onlineboxicons/offline.png" align="absmiddle" border="0" alt="offline"></td><td><font style="color:'.$farbe.'">0 User </font></td></tr>'.""; } $content.='<tr><td colspan="3"><hr style="<hr>"></td></tr>'.""; $where = (count($uid)>0) ? 'WHERE id NOT IN ('.implode(', ', $uid).')' : ''; $abf2 = 'SELECT * FROM prefix_user '.$where.' ORDER BY llogin DESC LIMIT 0,10'; $erg2 = db_query($abf2); while ($row2 = db_fetch_object($erg2)) { if ($row2->recht == -9) {$farbe = $farbeAdmin; $rangIcon = $iconAdmin;} elseif ($row2->recht == -8) {$farbe = $farbeCoAdmin; $rangIcon = $iconCoAdmin;} elseif ($row2->recht == -7) {$farbe = $farbeSiteAdmin; $rangIcon = $iconSiteAdmin;} elseif ($row2->recht == -6) {$farbe = $farbeLeader; $rangIcon = $iconLeader;} elseif ($row2->recht == -5) {$farbe = $farbeCoLeader; $rangIcon = $iconCoLeader;} elseif ($row2->recht == -4) {$farbe = $farbeMember; $rangIcon = $iconMember;} elseif ($row2->recht == -3) {$farbe = $farbeTrialmember; $rangIcon = $iconTrialmember;} elseif ($row2->recht == -2) {$farbe = $farbeSuperuser; $rangIcon = $iconSuperuser;} elseif ($row2->recht == -1) {$farbe = $farbeUser; $rangIcon = $iconUser;} else {$farbe = $farbeGast; $rangIcon = $iconGast;} $datum = date('H:i d.m.y',$row2->llogin); $user = '<font size= 1 style="color:'.$farbe.'">'.$row2->name.' '.$rangIcon.'</font>'; $content.='<tr><td><img src="include/images/onlineboxicons/offline.png" align="absmiddle" border="0" alt="offline"></td><td> <b><a href="index.php?user-details-'.$row2->id.'" class="online_tooltip"'.$lang['lasttimeonline'].$datum.'">'.$user.'.'$row['name'].'</td></tr>'.""; } if ($guests == 0) { $content.= '<tr><td colspan="3"><hr style="<hr>"></td></tr>'."".' <tr><td><img src="include/images/onlineboxicons/offline.png" align="absmiddle" border="0" alt="offline"></td><td> <font size="-1" color="'.$farbeGast.'">0 '.$lang['guests'].'</td></tr>'.""; } else { $content.= '<tr><td colspan="3"><hr style="<hr>"></td></tr>'."".' <tr><td><img src="include/images/onlineboxicons/online.png" align="absmiddle" border="0" alt="online"></td><td> <font size="-1" color="'.$farbeGast.'">'.$guests.' '.$guestn.'</font></td></tr>'.""; } ?><br> <table width="86%" border="0" cellpadding="0" cellspacing="0" align="center"> <?php echo $content; ?> </table><br> <script type="text/javascript"> function auf(x) { if(document.getElementById(x).style.display == "block") { document.getElementById(x).style.display = "none"; } else { document.getElementById(x).style.display = "block"; }} </script> <center><a href="#" onclick="auf('unter1');return false;"><img src="include/images/onlineboxicons/legende.png" border="0" alt="Online" onmouseover="this.src='include/images/onlineboxicons/legende_h.png';" onmouseout="this.src='include/images/onlineboxicons/legende.png'" /></a> <div style="display:none;" id="unter1"> <div class="visiblebox"> <div class="toggle_ce"> <div class="visiblebox"><br> <div align="left"><blockquote><b><img src="include/images/onlineboxicons/admin.png" width="16" height="16" align="top"/> <font color="#FF0000"> = Admin </font><br><p> <img src="include/images/onlineboxicons/coadmin.png" width="16" height="16" align="top"/> <font color="#FF8000"> = Co-Admin </font><br><p> <img src="include/images/onlineboxicons/moderator.png" width="16" height="16" align="top"/> <font color="#ff00ff"> = Moderator </font><br><p> <img src="include/images/onlineboxicons/leader.png" width="16" height="16" align="top"/> <font color="#bdbdbd"> = Leader </font><br><p> <img src="include/images/onlineboxicons/coleader.png" width="16" height="16" align="top"/> <font color="#cccccc"> = Coleader </font><br><p> <img src="include/images/onlineboxicons/fullmember.png" width="16" height="16" align="top"/> <font color="#00ff00"> = Fullmember </font><br><p> <img src="include/images/onlineboxicons/trialmember.png" width="16" height="16" align="top"/> <font color="#ffff00"> = Trialmember </font><br><p> <img src="include/images/onlineboxicons/inaktiv.png" width="16" height="16" align="top"/> <font color="#ffffff"> = Inaktiv </font><br><p> <img src="include/images/onlineboxicons/user.png" width="16" height="16" align="top"/> <font color="#00bfff"> = User </font></b></div></blockquote> </div> <div class="togglebox"> </div> <div class="toggler"><br> </div> </div> </div> </div> </center>
a.tooltips { position: relative; display: inline; } a.tooltips span { position: absolute; width:140px; color: #FFFFFF; background: #000000; border: 2px solid #6d6d6d; height: 100px; line-height: 100px; text-align: center; visibility: hidden; border-radius: 20px; } a.tooltips span:before { content: ''; position: absolute; top: 50%; right: 100%; margin-top: -12px; width: 0; height: 0; border-right: 12px solid #6d6d6d; border-top: 12px solid transparent; border-bottom: 12px solid transparent; } a.tooltips span:after { content: ''; position: absolute; top: 50%; right: 100%; margin-top: -8px; width: 0; height: 0; border-right: 8px solid #000000; border-top: 8px solid transparent; border-bottom: 8px solid transparent; } a:hover.tooltips span { visibility: visible; opacity: 0.6; left: 100%; top: 50%; margin-top: -50px; margin-left: 15px; z-index: 999; }
<link media="screen" href="include/boxes/tooltips_css/tooltips.css" type="text/css" rel="stylesheet"> <?php # Copyright by Manuel Staechele # Support www.ilch.de # Modifiziert by: Puni # Support: www.fhag-gaming.de if (!defined('main')) {die("no direct access");} $dif = date('Y-m-d H:i:s', time() - 60); $abf = "SELECT a.uid, b.avatar FROM `prefix_online` a LEFT JOIN prefix_user b ON a.uid = b.id WHERE uptime > '". $dif."'"; $resultID = db_query($abf); $brk=''; $uid = array(); $guests = 0; $guestn = $lang['guests']; $content=''; while ($row = db_fetch_object($resultID)) { if ( file_exists($row->avatar)) { $avatar = '<a href="index.php?user-details-'.$row->uid.'"><img width="40" height="53" src="'.$row->avatar.'" border="0">'; } else { $avatar = '<a href="index.php?user-details-'.$row->uid.'"><img width="40" height="53" src="include/images/avatars/noavatar.jpg" border="0">'; } if ($row->uid != 0 AND $brk!=$row->uid) { $name=@db_result(db_query('SELECT name FROM prefix_user WHERE id='.$row->uid),0); $content.='<table width="70%" align="center" cellpadding="2" cellspacing="0" border="0"> <tr><td width="20" align="left" valign="middle"><img src="include/images/icons/online.gif" border="0" alt="online"></td> <td align="left" valign="middle"> <a class="tooltips" href="#">CSS Tooltips<span>( '.$row->uid.')" href="index.php?user-details-'.$row->uid.'">'.$name.'</span></a> <div id="'.$row->uid.'" style="display : none;"> <table align="center" border="0" width="90%" cellspacing="2" cellpadding="0" style="border: 1px solid #12c100"> <tr><td>'.$avatar.'</td><td><font color="#12c100">Zurzeit Online!</font></td> </tr></table></div>'."\n"; $uid[] = $row->uid; } if ($row->uid == 0) { $guests++; } $brk=$row->uid; } if ($guests == 1) { $guestn = $lang['guest']; } if (empty($content)) { $content.='<table width="70%" align="center" cellpadding="2" cellspacing="0" border="0"><tr><td width="20" align="left" valign="middle"><img src="include/images/icons/offline.gif" border="0" alt="offline"></td> <td align="left" valign="middle"><font color="#c10000">0 User </font></td> </tr></table>'."\n"; } $content.='<table width="70%" align="center" cellpadding="2" cellspacing="0" border="0"><tr><td colspan="2"><hr style="height: 0px; border: dashed #747474 0px; border-top-width: 1px;"></td></tr></table>'."\n"; $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)) { if ( file_exists($row2->avatar)) { $avatar = '<a href="index.php?user-details-'.$row2->id.'"><img width="40" height="53" src="'.$row2->avatar.'" border="0">'; } else { $avatar = '<a href="index.php?user-details-'.$row2->id.'"><img witdh="40" height="53" src="include/images/avatars/noavatar.jpg" border="0">'; } $datum = date('H:i \U\h\r - d.m.y',$row2->llogin); $user = $row2->name; $content.='<table width="70%" align="center" cellpadding="2" cellspacing="0" border="0"><tr> <td width="20" align="left" valign="middle"><img src="include/images/icons/offline.gif" border="0" alt="offline"></td> <td align="left" valign="middle"> <a class="tooltips" href="#">CSS Tooltips<span>'.$row2->id.'" href="index.php?user-details-'.$row2->id.'">'.$user.'</span></a> <div id="'.$row2->id.'" style="display : none;"> <table align="center" border="0" width="90%" cellspacing="2" cellpadding="0" style="border: 1px solid #FF0000"> <tr><td>'.$avatar.'</td><td> Letztes mal Online:<br /> '.$datum.'</td> </tr></table></div>'."\n"; } if ($guests == 0) { $content.= '<table width="70%" align="center" cellpadding="2" cellspacing="0" border="0"><tr><td colspan="2"><hr style="height: 0px; border: dashed #747474 0px; border-top-width: 1px";></td></tr>'."\n".' <tr><td width="20" align="left" valign="middle"><img src="include/images/icons/offline.gif" border="0" alt="offline"></td> <td align="left" valign="middle"><font size="-1" color="#c10000">0 '.$lang['guests'].'</td> </tr></table>'."\n"; } else { $content.= '<table width="70%" align="center" cellpadding="2" cellspacing="0" border="0"><tr><td colspan="2"><hr style="height: 0px; border: dashed #747474 0px; border-top-width: 1px;"></td></tr>'."\n".' <tr><td width="20" align="left" valign="middle"><img src="include/images/icons/online.gif" border="0" alt="online"></td> <td align="left" valign="middle"><font size=-1>'.$guests.' '.$guestn.'</font></td> </tr></table>'."\n"; } ?> <?php echo $content; ?>
<a class="tooltips" href="#">CSS Tooltips<span>Tooltip</span></a>
<td align="left" valign="middle"> <a class="box" onmouseover="javascript:einblenden('.$row->uid.')" onmouseout="javascript:einblenden('.$row->uid.')" href="index.php?user-details-'.$row->uid.'">'.$name.'</a></td> </tr></table> <div id="'.$row->uid.'" style="display : none;"> <table align="center" border="0" width="90%" cellspacing="2" cellpadding="0" style="border: 1px solid #12c100"> <tr><td>'.$avatar.'</td><td><font color="#12c100">Zurzeit Online!</font></td> </tr></table></div>'."\n"; $uid[] = $row->uid;
<td align="left" valign="middle"> <a class="box" onmouseover="javascript:einblenden('.$row2->id.')" onmouseout="javascript:einblenden('.$row2->id.')" href="index.php?user-details-'.$row2->id.'">'.$user.'</a></td> </tr></table> <div id="'.$row2->id.'" style="display : none;"> <table align="center" border="0" width="90%" cellspacing="2" cellpadding="0" style="border: 1px solid #FF0000"> <tr><td>'.$avatar.'</td><td> Letztes mal Online:<br /> '.$datum.'</td> </tr></table></div>'."\n";
.onlinebox span.online { border: 1px solid #fff; display: block; margin-left: 20px; margin-top: 20px; padding: 5px; position: absolute; visibility: hidden; width: 200px; }
.onlinebox span.offline { }
.onlinebox:hover span.online, .onlinebox:hover span.offline { visibility: visible; }
$content.='<td><a href="index.php?user-details-'.$row->uid.'">'.$name.'</a></td></tr>'."\n";
$content.='<td><a href="index.php?user-details-'.$row->uid.'" class="onlinebox">'.$name.'<span class="online"><img width="80px" height="80px" style="float:left;" src="include/images/avatars/gast.png" /></span></a></td></tr>'."\n";
a, also dem Link die Klasse onlinebox vergeben, weiter hinten in der Zeile das span mit der Klasse online eingebaut. Ich habe dem span mal ein Image verpaßt, damit Du überhaupt siehst, was passiert. Sicher solltest Du zu jedem User den entsprechenden Avatar vorher auslesen und dann im span ausgeben. Alle weiteren Infos zum User müssen zwischen
<span class="online">und
</span>stehen.
if (!empty($row->staat) && is_file('include/images/flags/'.$row->staat)) { $flag = '<img src="include/images/flags/'.$row->staat.'" alt="'.$row->staat.'" title="'.$row->staat.'" border="0" width="12"/>'; } else { $flag = '<img src="include/images/flags/na.gif" border="0" width="12"/>'; }
$content.='<td><a href="index.php?user-details-'.$row->uid.'" class="onlinebox">'.$name.'<span class="online"><table align="center" border="0" width="95%" cellspacing="2" cellpadding="0" style="border: 1px solid #12c100"> <tr><td>'.$avatar.'</td><td><font color="#12c100">Zurzeit Online!</font></td> </tr></table></img>Herkunft:'.$staat.'</span></a></td></tr>'."\n";
$staat=@db_result(db_query('SELECT staat FROM prefix_user WHERE id='.$row->uid),0);
$flagrichtig zusammengebaut, gibst dann aber diese Variable nicht ans Template weiter, sondern die Variable aus der Abfrage...
$staat
<?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."'"; $resultID = db_query($abf); $brk=''; $uid = array(); $guests = 0; $guestn = $lang['guests']; $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); $recht=@db_result(db_query('SELECT recht FROM prefix_user WHERE id='.$row->uid),0); if ($recht == -9) {$rangIcon = 'Admin';} elseif ($recht == -8) {$rangIcon = 'CoAdmin';} elseif ($recht == -7) {$rangIcon = 'SiteAdmin';} elseif ($recht == -6) {$rangIcon = 'Leader';} elseif ($recht == -5) {$rangIcon = 'CoLeader';} elseif ($recht == -4) {$rangIcon = 'Member';} elseif ($recht == -3) {$rangIcon = 'Trialmember';} elseif ($recht == -2) {$rangIcon = 'Superuser';} elseif ($recht == -1) {$rangIcon = 'User';} else {$rangIcon = 'Gast';} $avatar=@db_result(db_query('SELECT avatar FROM prefix_user WHERE id='.$row->uid),0); if (empty($avatar)) { $avatar = 'include/images/avatars/gast.png'; } $staat=@db_result(db_query('SELECT staat FROM prefix_user WHERE id='.$row->uid),0); if(!empty($staat)){ $flagg = "<img src=\"include/images/flags/".$staat."\" border=\"0\" />"; } else { $flagg = "<img src=\"include/images/flags/na.gif\" border=\"0\" />"; } $gebdate = @db_result(db_query('SELECT gebdatum FROM prefix_user WHERE id='.$row->uid),0); if($gebdate !== "0000-00-00"){ $gebdatum = date('d.m.Y',strtotime($gebdate)); $tag = date('d',strtotime($gebdate)); $monat = date('m',strtotime($gebdate)); $jahr = date('Y',strtotime($gebdate)); $jetzt = mktime(0,0,0,date("m"),date("d"),date("Y")); $geburtstag = mktime(0,0,0,$monat,$tag,$jahr); $alter = "(".intval(($jetzt - $geburtstag) / (3600 * 24 * 365)).")"; } else { $alter = ""; } $content.= '<tr><td><img src="include/images/icons/online.gif" border="0" alt="online"></td>'; $content.='<td><a href="index.php?user-details-'.$row->uid.'" class="onlinebox">'.$name.'<span class="online"><img width="80px" height="80px" style="float:left" src="'.$avatar.'" /><span style="font-weight:bold">'.$name.' '.$alter.'</span><br>'.$flagg.'<br>'.$rangIcon.'</span></a></td></tr>'."\n"; $uid[] = $row->uid; } if ($row->uid == 0) { $guests++; } $brk=$row->uid; } if ($guests == 1) { $guestn = $lang['guest']; } if (empty($content)) { $content.='<tr><td><img src="include/images/icons/offline.gif" border="0" alt="offline"></td><td><font color="#003366">0 User </font></td></tr>'."\n"; } $content.='<tr><td colspan="2"><hr style="height: 0px; border: dashed #9AB1C8 0px; border-top-width: 1px;"></td></tr>'."\n"; $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; if ($row2->recht == -9) {$rangIcon = 'Admin';} elseif ($row2->recht == -8) {$rangIcon = 'CoAdmin';} elseif ($row2->recht == -7) {$rangIcon = 'SiteAdmin';} elseif ($row2->recht == -6) {$rangIcon = 'Leader';} elseif ($row2->recht == -5) {$rangIcon = 'CoLeader';} elseif ($row2->recht == -4) {$rangIcon = 'Member';} elseif ($row2->recht == -3) {$rangIcon = 'Trialmember';} elseif ($row2->recht == -2) {$rangIcon = 'Superuser';} elseif ($row2->recht == -1) {$rangIcon = 'User';} else {$rangIcon = 'Gast';} $avatar = $row2->avatar; if (empty($avatar)) { $avatar = 'include/images/avatars/gast.png'; } $staat = $row2->staat; if(!empty($staat)){ $flagg = "<img src=\"include/images/flags/".$staat."\" border=\"0\" />"; } else { $flagg = "<img src=\"include/images/flags/na.gif\" border=\"0\" />"; } $gebdate = $row2->gebdatum; if($gebdate !== "0000-00-00"){ $gebdatum = date('d.m.Y',strtotime($gebdate)); $tag = date('d',strtotime($gebdate)); $monat = date('m',strtotime($gebdate)); $jahr = date('Y',strtotime($gebdate)); $jetzt = mktime(0,0,0,date("m"),date("d"),date("Y")); $geburtstag = mktime(0,0,0,$monat,$tag,$jahr); $alter = "(".intval(($jetzt - $geburtstag) / (3600 * 24 * 365)).")"; } else { $alter = ""; } $content.='<tr><td><img src="include/images/icons/offline.gif" border="0" alt="offline"></td>'; $content.='<td><a href="index.php?user-details-'.$row2->id.'" class="onlinebox">'.$user.'<span class="offline"><img width="80px" height="80px" style="float:left" src="'.$avatar.'" /><span style="font-weight:bold">'.$user.' '.$alter.'</span><br>'.$flagg.'<br>'.$rangIcon.'</span></a></td></tr>'."\n"; } if ($guests == 0) { $content.= '<tr><td colspan="2"><hr style="height: 0px; border: dashed #9AB1C8 0px; border-top-width: 1px";></td></tr>'."\n".' <tr><td><img src="include/images/icons/offline.gif" border="0" alt="offline"></td><td><font size="-1" color="#003366">0 '.$lang['guests'].'</td></tr>'."\n"; } else { $content.= '<tr><td colspan="2"><hr style="height: 0px; border: dashed #9AB1C8 0px; border-top-width: 1px;"></td></tr>'."\n".' <tr><td><img src="include/images/icons/online.gif" border="0" alt="online"></td><td><font size=-1>'.$guests.' '.$guestn.'</font></td></tr>'."\n"; } ?> <table align="center" border="0" cellpadding="0" cellspacing="0" > <?php echo $content; ?> </table>
Geschlossen | ||
Zurück zu HTML, PHP, SQL,... |