Show
Ignore:
Timestamp:
03/08/08 09:54:02 (5 years ago)
Author:
MDMAN
Message:

new version with extra side for all visitors

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • profile.lastvisitors/files/lib/system/event/listener/ProfilelastVisitorsListener.class.php

    r278 r282  
    3939                                'profileID' => $eventObj->userID, 
    4040                )); 
    41         //Datenbank wird hier aufgeraeumt... Hier werden alle Visitors geloescht, die nicht mehr angezeigt werden koennen (Visitors groesser 10) 
     41        //Datenbank wird hier aufgeraeumt... Hier werden alle Visitors geloescht, die nicht mehr angezeigt werden koennen (Visitors groesser 100) 
    4242        $sql = "SELECT userID FROM wcf".WCF_N."_profile_lastvisitors WHERE profileID = '".$eventObj->userID."' ORDER BY time DESC"; 
    4343        $result = WCF::getDB()->sendQuery($sql); 
     
    4545        $deleteIDs = array(); 
    4646        while ($row = WCF::getDB()->fetchArray($result)){ 
    47             if($skipCount > 10) $deleteIDs[] = $row['userID']; 
     47            if($skipCount > 100) $deleteIDs[] = $row['userID']; 
    4848            $skipCount++; 
    4949        } 
     
    5555        
    5656        //Hier werden die Templates in die Platzhalter der userProfile.tpl geladen 
    57        WCF::getTPL()->append('additionalBoxes5', WCF::getTPL()->fetch('ProfilelastVisitorSmall')); 
     57        WCF::getTPL()->append('additionalBoxes5', WCF::getTPL()->fetch('ProfilelastVisitorSmall')); 
    5858        WCF::getTPL()->append('additionalContents3', WCF::getTPL()->fetch('ProfilelastVisitor')); 
    5959