MyXoops Forum

Forum - myXOOPS German Support

0 + 2 = ?  
Geben Sie das Ergebnis der Berechnung ein
Sie haben max. 10 Versuche.
 
* = Erforderlich

Aw:: Online History zeigt nicht korrekt an

Betreff: Aw:: Online History zeigt nicht korrekt an
von alfred am 25.01.2010 19:23:05

liegt wohl an (blöden) textsanitizer hier :
if ($member_online_num 0) {
        
$first 0;
        
$result $xoopsDB->query("SELECT l.uid, l.username, u.name, u.user_avatar FROM ".$xoopsDB->prefix("lastseen")." as l, ".$xoopsDB->prefix("users")." as u WHERE l.uid>0 AND l.online=1 AND l.uid=u.uid AND 1=1 LIMIT 10");
        while(list(
$memuid$memusername$memname$avatar) = $xoopsDB->fetchRow($result)) {
            if (
$first!=0$block['useronline'] .=", ";
            
$list_online[] = $memuid;
            
$name = ( $options[3] == ) ? ((trim($memname) != '') ? $memname $memusername) : $memusername;
            
$block['user_avatar'] = $avatar;
            
$block['useronline'] .="<a href='".XOOPS_URL."/userinfo.php?uid=".$memuid."'>".$myts->htmlSpecialChars($name)."</a>";
            
$first1;
        }
        if (
$first==1$block['useronline'] .="";        
    }
jetzt nochmal testen (geändert)

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
Modulentwicklung New Xoops Xcreate Module 0 5312 26.11.2025 15:22
efkan Gehe zum letzten Beitrag
Modulentwicklung XOOPS Custom Field Module 1 1804 24.11.2025 11:21
Goffy Gehe zum letzten Beitrag