Witam. Zauważyłem, że w InfoPanel po najechaniu myszką na nazwę użytkownika, pojawia się pusty dymek, a powinny być w nim informacje o nim. Jak to naprawić lub ewentualnie usunąć ten dymek. Wygląda to tak:
Kod mojego InfoPanel:
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if ($settings['maintenance'] != "1") {
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online VALUES('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-120)."");
openside("<b>UserInfo KZ</b>");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
echo $locale['011'].dbrows($result)."<br>\n";
$result = dbquery(
"SELECT ton.*, user_id,user_name FROM ".$db_prefix."online ton
LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id
WHERE online_user!='0'"
);
$members = dbrows($result);
if ($members != 0) {
$i = 1;
}
echo "<br>".$locale['014']."\n";
echo "<font color='red'>".dbcount("(user_id)", "users", "user_status<='1'")."<br><br></font >\n";
if ($settings['admin_activation'] == "1") echo $locale['015'].dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
$data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
$wynik = dbquery("
SELECT (SELECT COUNT(user_id) FROM ".$db_prefix."users WHERE DATE(FROM_UNIXTIME(user_joined)) = CURDATE()) AS dzis,
(SELECT COUNT(user_id) FROM ".$db_prefix."users WHERE DATE(FROM_UNIXTIME(user_joined)) = DATE_SUB(CURDATE(), INTERVAL 1 DAY) ) AS wczoraj,
(SELECT COUNT(user_id) FROM ".$db_prefix."users WHERE YEARWEEK(FROM_UNIXTIME(user_joined)) = YEARWEEK(CURDATE())) AS w_tym_tygodniu
");
$r = dbarray($wynik);
echo 'Dzis '.number_format($r['dzis']).'<br>';
echo 'Wczoraj '.number_format($r['wczoraj']).'<br>';
echo 'W tym tygodniu '.number_format($r['w_tym_tygodniu']).'<br>';
$data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
echo"Najnowszy User: <b><u><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</b></u></a></b>";
"</a></b><br><br>\n";
echo"<hr>";
}
if (file_exists(INFUSIONS."info_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."info_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."info_panel/locale/English.php";
}
include INCLUDES."theme.php";
include LOCALE.LOCALESET."search.php";
$result=dbquery("SELECT * FROM ".$db_prefix."users ORDER BY user_lastvisit DESC LIMIT 0,15");
if(dbrows($result)!=0){
while($data=dbarray($result)){
$lastseen=time()-$data['user_lastvisit'];
$iW=sprintf("%2d",floor($lastseen/604800));
$iD=sprintf("%2d",floor($lastseen/(60*60*24)));
$iH=sprintf("%02d",floor((($lastseen%604800)%86400)/3600));
$iM=sprintf("%02d",floor(((($lastseen%604800)%86400)%3600)/60));
$iS=sprintf("%02d",floor((((($lastseen%604800)%86400)%3600)%60)));
if($lastseen<120){
$lastseen="<nobr><font color='green'><b>OnLine</b></font></NOBR>";
}elseif($lastseen<400){
$lastseen="<nobr><font color='red'><b>OffLine</b></font></NOBR>";
}elseif($iW>0){
if($iW==1) $Text="".$locale['XXX_007']."";
elseif($iW==2 || $iW==3 || $iW==4) $Text="".$locale['XXX_011']."";
else $Text="".$locale['XXX_008']."";
$lastseen="<nobr>$iW $Text</NOBR>";
}elseif($iD>0){
if($iD==1) $Text="".$locale['XXX_009']."";
else $Text="".$locale['XXX_010']."";
$lastseen="<NOBR>$iD $Text</NOBR>";
}else{
$lastseen="$iH:$iM:$iS";
}
if (!isset($start)) $start="";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td class='small'>
<a href='".BASEDIR."profile.php?lookup=$data[user_id]'
onmouseover=\"ddrivetip('$start<center><b>° ".$locale['XXX_017']." °</b></center><hr><b>".$locale['XXX_003']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_004']."</b>: ".$data['user_location']."<br><b>".$locale['XXX_005']."</b>: ".$data['user_msn'].": ".$data['user_posts']."$end')\" style='color:#".$data['user_color']."' onMouseout=\"hideddrivetip()\">";
echo $data['user_prefix'].$data['user_name']."</a></td><td align=\"right\" class='small'>".$lastseen."</td></tr></table>";
}
}
echo "\n";
if (!isset($usr_grps) || !isNum($usr_grps)) $usr_grps="";
echo "</td></tr></table>";
?>
Dziękuję za pomoc i pozdrawiam |