Changeset 282
- Timestamp:
- 03/08/08 09:54:02 (5 years ago)
- Location:
- profile.lastvisitors
- Files:
-
- 4 modified
-
files/lib/system/event/listener/ProfilelastVisitorsListener.class.php (modified) (3 diffs)
-
package.xml (modified) (5 diffs)
-
templates/ProfilelastVisitor.tpl (modified) (2 diffs)
-
templates/ProfilelastVisitorSmall.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
profile.lastvisitors/files/lib/system/event/listener/ProfilelastVisitorsListener.class.php
r278 r282 39 39 'profileID' => $eventObj->userID, 40 40 )); 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) 42 42 $sql = "SELECT userID FROM wcf".WCF_N."_profile_lastvisitors WHERE profileID = '".$eventObj->userID."' ORDER BY time DESC"; 43 43 $result = WCF::getDB()->sendQuery($sql); … … 45 45 $deleteIDs = array(); 46 46 while ($row = WCF::getDB()->fetchArray($result)){ 47 if($skipCount > 10 ) $deleteIDs[] = $row['userID'];47 if($skipCount > 100) $deleteIDs[] = $row['userID']; 48 48 $skipCount++; 49 49 } … … 55 55 56 56 //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')); 58 58 WCF::getTPL()->append('additionalContents3', WCF::getTPL()->fetch('ProfilelastVisitor')); 59 59 -
profile.lastvisitors/package.xml
r278 r282 6 6 <isunique>1</isunique> 7 7 <packagedescription>Mit diesem PlugIn werden die letzten Besucher im Profil angezeigt.</packagedescription> 8 <version>1. 0.4 pl 2</version>9 <date>2008-02-2 7</date>8 <version>1.1.0</version> 9 <date>2008-02-26</date> 10 10 <plugin>com.woltlab.wcf</plugin> 11 11 </packageinformation> … … 24 24 <languages languagecode="de">de.xml</languages> 25 25 <languages languagecode="de-informal">de-informal.xml</languages> 26 <languages languagecode="en">en.xml</languages>27 26 <templates>templates.tar</templates> 28 27 <groupoptions>groupoptions.xml</groupoptions> … … 33 32 34 33 <instructions type="update" fromversion="1.0.3"> 35 <languages languagecode="en">en.xml</languages>36 34 <files>files.tar</files> 37 35 <!--<languages languagecode="de">de.xml</languages> … … 44 42 45 43 <instructions type="update" fromversion="1.0.4"> 46 <languages languagecode="en">en.xml</languages>47 44 <templates>templates.tar</templates> 48 45 <files>files.tar</files> … … 50 47 51 48 <instructions type="update" fromversion="1.0.4 pl 1"> 52 <languages languagecode="en">en.xml</languages> 49 <templates>templates.tar</templates> 50 <files>files.tar</files> 53 51 </instructions> 54 52 </package> -
profile.lastvisitors/templates/ProfilelastVisitor.tpl
r278 r282 18 18 </div> 19 19 {/foreach} 20 {if SHOW_LASTVISITOR_MOREVISITORS == 1 && $visitorCount == SHOW_LASTVISITOR_AMOUNT} 21 {capture assign=searchHiddenFields} 22 <input type="hidden" name="ProfileID" value="{$ProfileID}" /> 23 {/capture} 24 <div class="{cycle}"> 25 <div class="fieldTitle"><a href="index.php?page=MorelastVisitors</a></div> 26 <div class="fieldValue">alle Besucher anzeigen</div> 27 </div> 28 {/if} 20 29 </div> 21 30 </div> … … 33 42 {lang}wcf.user.option.profile.lastvisitor.name{/lang} 34 43 {/foreach} 44 {if SHOW_LASTVISITOR_MOREVISITORS == 1 && $visitorCount == SHOW_LASTVISITOR_AMOUNT} 45 {capture assign=searchHiddenFields} 46 <input type="hidden" name="ProfileID" value="{$ProfileID}" /> 47 {/capture} 48 <div class="{cycle}"> 49 <div class="fieldTitle"><a href="index.php?page=MorelastVisitors</a></div> 50 <div class="fieldValue">alle Besucher anzeigen</div> 51 </div> 52 {/if} 35 53 </div> 36 54 </div> -
profile.lastvisitors/templates/ProfilelastVisitorSmall.tpl
r278 r282 11 11 <li><a href="index.php?page=User&userID={$besucher["userID"]}"><strong>{$besucher["username"]}</strong>{if SHOW_LASTVISITOR_TIME == 1}<br><font size = 1> {@$besucher["time"]|time}</font>{/if}</a></li> 12 12 {/foreach} 13 {if SHOW_LASTVISITOR_MOREVISITORS == 1 && $visitorCount == SHOW_LASTVISITOR_AMOUNT} 14 {capture assign=searchHiddenFields} 15 <input type="hidden" name="ProfileID" value="{$ProfileID}" /> 16 {/capture} 17 <div class="{cycle}"> 18 <div class="fieldTitle"><a href="index.php?page=MorelastVisitors</a></div> 19 <div class="fieldValue">alle Besucher anzeigen</div> 20 </div> 21 {/if} 13 22 </ul> 14 23 </div>
