Changeset 513
- Timestamp:
- 05/16/08 15:26:15 (5 years ago)
- Location:
- profile.lastvisitors
- Files:
-
- 7 modified
-
de-informal.xml (modified) (2 diffs)
-
de.xml (modified) (2 diffs)
-
files/lib/page/MoreVisitorsPage.class.php (modified) (1 diff)
-
files/lib/page/MoreVisitorsTabPage.class.php (modified) (2 diffs)
-
package.xml (modified) (4 diffs)
-
templates/moreVisitors.tpl (modified) (1 diff)
-
templates/moreVisitorsTab.tpl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
profile.lastvisitors/de-informal.xml
r439 r513 74 74 <item name="wcf.user.option.profile.lastvisitor.morevisitors.button"><![CDATA[zum Profil von »{$user["username"]}«]]></item> 75 75 <item name="wcf.user.option.profile.lastvisitor.moretitle.table"><![CDATA[weitere Besucher des Profils von »{$user["username"]}«.]]></item> 76 <item name="wcf.user.option.profile.lastvisitor.moretabtitle"><![CDATA[ weitere Besucher des Profilsvon »{$user["username"]}«]]></item>76 <item name="wcf.user.option.profile.lastvisitor.moretabtitle"><![CDATA[Profil-Besucher von »{$user["username"]}«]]></item> 77 77 <item name="wcf.user.option.profile.lastvisitor.moretabtitle.description"><![CDATA[{if $visitorCount == 1}Insgesamt ist derzeit nur ein Besucher registriert.<br />Maximal werden nur {@SHOW_LASTVISITOR_MOREVISITORS_AMOUNT} Besucher gespeichert.{/if}{if $visitorCount > 1}Insgesamt sind derzeit in der Liste {$visitorCount} Besucher registriert.<br />Maximal werden nur {@SHOW_LASTVISITOR_MOREVISITORS_AMOUNT} Besucher gespeichert.{/if}]]></item> 78 78 <item name="wcf.user.option.profile.lastvisitor.online"><![CDATA[Online]]></item> … … 84 84 <item name="wcf.user.profile.lastvisitor.morevisitors.tab"><![CDATA[Profil-Besucher]]></item> 85 85 <item name="wcf.user.profile.lastvisitors.tabtitle"><![CDATA[Profil-Besucher]]></item> 86 <item name="wcf.user.profile.lastvisitors.tabcontenttitle"><![CDATA[ weitereBenutzerprofil-Besucher von »{$user["username"]}«]]></item>86 <item name="wcf.user.profile.lastvisitors.tabcontenttitle"><![CDATA[Benutzerprofil-Besucher von »{$user["username"]}«]]></item> 87 87 </category> 88 88 -
profile.lastvisitors/de.xml
r439 r513 74 74 <item name="wcf.user.option.profile.lastvisitor.morevisitors.button"><![CDATA[zum Profil von »{$user["username"]}«]]></item> 75 75 <item name="wcf.user.option.profile.lastvisitor.moretitle.table"><![CDATA[weitere Besucher des Profils von »{$user["username"]}«.]]></item> 76 <item name="wcf.user.option.profile.lastvisitor.moretabtitle"><![CDATA[ weitere Besucher des Profilsvon »{$user["username"]}«]]></item>77 <item name="wcf.user.option.profile.lastvisitor.moretabtitle.description"><![CDATA[{if $visitorCount == 1}Insgesamt ist derzeit nur ein Besucher registriert.<br />Maximal werden nur {@SHOW_LASTVISITOR_MOREVISITORS_AMOUNT} Besucher gespeichert.{/if}{if $visitorCount > 1}Insgesamt sind derzeit in der Liste {$visitorCount} Besucher registriert.<br />Maximal werden nur {@SHOW_LASTVISITOR_MOREVISITORS_AMOUNT} Besucher gespeichert.{/if}]]></item>76 <item name="wcf.user.option.profile.lastvisitor.moretabtitle"><![CDATA[Profil-Besucher von »{$user["username"]}«]]></item> 77 <item name="wcf.user.option.profile.lastvisitor.moretabtitle.description"><![CDATA[{if $visitorCount == 1}Insgesamt ist derzeit nur ein Besucher in der Liste eingetragen.{/if}{if $visitorCount > 1}Insgesamt sind derzeit {$visitorCount} Besucher in der Liste eingetragen.{/if}]]></item> 78 78 <item name="wcf.user.option.profile.lastvisitor.online"><![CDATA[Online]]></item> 79 79 <item name="wcf.user.option.profile.lastvisitor.offline"><![CDATA[Offline]]></item> … … 84 84 <item name="wcf.user.profile.lastvisitor.morevisitors.tab"><![CDATA[Profil-Besucher]]></item> 85 85 <item name="wcf.user.profile.lastvisitors.tabtitle"><![CDATA[Profil-Besucher]]></item> 86 <item name="wcf.user.profile.lastvisitors.tabcontenttitle"><![CDATA[ weitereBenutzerprofil-Besucher von »{$user["username"]}«]]></item>86 <item name="wcf.user.profile.lastvisitors.tabcontenttitle"><![CDATA[Benutzerprofil-Besucher von »{$user["username"]}«]]></item> 87 87 </category> 88 88 -
profile.lastvisitors/files/lib/page/MoreVisitorsPage.class.php
r411 r513 25 25 26 26 // hier werde die Daten von den Besuchern des Profils geladen 27 $sql = "SELECT * 28 FROM wcf".WCF_N."_profile_lastvisitors 29 WHERE profileID = ".$this->profileID." 30 ORDER BY time DESC 31 LIMIT 0 , ".SHOW_LASTVISITOR_MOREVISITORS_AMOUNT; 27 $sql = "SELECT profile.userID, profile.username, profile.time, user.lastActivityTime 28 FROM wcf".WCF_N."_profile_lastvisitors profile 29 LEFT OUTER JOIN wcf".WCF_N."_user user 30 ON (user.userID = profile.userID) 31 WHERE profileID = ".$this->profileID." 32 ORDER BY time DESC 33 LIMIT 0 , ".SHOW_LASTVISITOR_MOREVISITORS_AMOUNT; 32 34 $result = WCF::getDB()->sendQuery($sql); 33 35 while ($row = WCF::getDB()->fetchArray($result)) { -
profile.lastvisitors/files/lib/page/MoreVisitorsTabPage.class.php
r419 r513 31 31 32 32 // hier werde die Daten von den Besuchern des Profils geladen 33 $sql = "SELECT * 34 FROM wcf".WCF_N."_profile_lastvisitors 35 WHERE profileID = ".$this->profileID." 36 ORDER BY time DESC 37 LIMIT 0 , ".SHOW_LASTVISITOR_MOREVISITORS_AMOUNT; 33 $sql = "SELECT profile.userID, profile.username, profile.time, user.lastActivityTime 34 FROM wcf".WCF_N."_profile_lastvisitors profile 35 LEFT OUTER JOIN wcf".WCF_N."_user user 36 ON (user.userID = profile.userID) 37 WHERE profileID = ".$this->profileID." 38 ORDER BY time DESC 39 LIMIT 0 , ".SHOW_LASTVISITOR_MOREVISITORS_AMOUNT; 38 40 $result = WCF::getDB()->sendQuery($sql); 39 41 while ($row = WCF::getDB()->fetchArray($result)) { … … 73 75 UserProfileMenu::getInstance()->setActiveMenuItem('wcf.user.profile.menu.link.profile.lastvisitor'); 74 76 77 // set active header menu item 78 require_once(WCF_DIR.'lib/page/util/menu/HeaderMenu.class.php'); 79 HeaderMenu::setActiveMenuItem('wcf.header.menu.memberslist'); 80 75 81 parent::show(); 76 82 } -
profile.lastvisitors/package.xml
r505 r513 8 8 <packagedescription>Shows the last profile visitors in the user profile.</packagedescription> 9 9 <packagedescription language="de"><![CDATA[Mit diesem PlugIn werden die letzten Besucher im Profil angezeigt.]]></packagedescription> 10 <version>1.1. 8</version>11 <date>2008-05-1 0</date>10 <version>1.1.9</version> 11 <date>2008-05-16</date> 12 12 <plugin>com.woltlab.wcf</plugin> 13 13 <isunique>1</isunique> … … 138 138 139 139 <instructions type="update" fromversion="1.1.6"> 140 <languages languagecode="de">de.xml</languages> 141 <languages languagecode="de-informal">de-informal.xml</languages> 140 142 <files>files.tar</files> 141 143 <templates>templates.tar</templates> … … 145 147 146 148 <instructions type="update" fromversion="1.1.6 pl 1"> 149 <languages languagecode="de">de.xml</languages> 150 <languages languagecode="de-informal">de-informal.xml</languages> 147 151 <files>files.tar</files> 148 152 <templates>templates.tar</templates> … … 151 155 152 156 <instructions type="update" fromversion="1.1.7"> 157 <languages languagecode="de">de.xml</languages> 158 <languages languagecode="de-informal">de-informal.xml</languages> 159 <files>files.tar</files> 160 <templates>templates.tar</templates> 161 </instructions> 162 163 <instructions type="update" fromversion="1.1.8"> 164 <languages languagecode="de">de.xml</languages> 165 <languages languagecode="de-informal">de-informal.xml</languages> 153 166 <files>files.tar</files> 154 167 <templates>templates.tar</templates> -
profile.lastvisitors/templates/moreVisitors.tpl
r420 r513 44 44 {foreach from=$visitors item=user} 45 45 <div class="{cycle}"> 46 <div class="fieldTitle"><a href="index.php?page=User&userID={$user.userID}">{$user.username}</a></div> 46 <div class="fieldTitle"><a href="index.php?page=User&userID={$user.userID}">{$user.username}</a> 47 {if $user["lastActivityTime"] > TIME_NOW - USER_ONLINE_TIMEOUT && SHOW_LASTVISITOR_ONLINE == 1 && $this->user->invisible != 1 || $user["lastActivityTime"] > TIME_NOW - USER_ONLINE_TIMEOUT && SHOW_LASTVISITOR_ONLINE == 1 && $this->user->getPermission('admin.general.canViewInvisible') == 1} 48 <img src="{@RELATIVE_WCF_DIR}icon/onlineS.png" alt="" title="{lang}wcf.user.option.profile.lastvisitor.online{/lang}" /> 49 {elseif SHOW_LASTVISITOR_ONLINE == 1} 50 <img src="{@RELATIVE_WCF_DIR}icon/offlineS.png" alt="" title="{lang}wcf.user.option.profile.lastvisitor.offline{/lang}" /> 51 {/if} 52 </div> 47 53 <div class="fieldValue">{@$user.time|time}</div> 48 54 </div> -
profile.lastvisitors/templates/moreVisitorsTab.tpl
r420 r513 22 22 23 23 <div class="mainHeadline"> 24 <img src="{@RELATIVE_WCF_DIR}icon/ userProfileL.png" alt="" />24 <img src="{@RELATIVE_WCF_DIR}icon/membersL.png" alt="" /> 25 25 <div class="headlineContainer"> 26 26 <h2> {lang}wcf.user.option.profile.lastvisitor.moretabtitle{/lang}</h2> … … 88 88 {foreach from=$visitors item='user'} 89 89 <div class="{cycle}"> 90 <div class="fieldTitle"><a href="index.php?page=User&userID={$user.userID}{@SID_ARG_2ND}">{$user.username}</a></div> 90 <div class="fieldTitle"><a href="index.php?page=User&userID={$user.userID}{@SID_ARG_2ND}">{$user.username}</a> 91 {if $user["lastActivityTime"] > TIME_NOW - USER_ONLINE_TIMEOUT && SHOW_LASTVISITOR_ONLINE == 1 && $this->user->invisible != 1 || $user["lastActivityTime"] > TIME_NOW - USER_ONLINE_TIMEOUT && SHOW_LASTVISITOR_ONLINE == 1 && $this->user->getPermission('admin.general.canViewInvisible') == 1} 92 <img src="{@RELATIVE_WCF_DIR}icon/onlineS.png" alt="" title="{lang}wcf.user.option.profile.lastvisitor.online{/lang}" /> 93 {elseif SHOW_LASTVISITOR_ONLINE == 1} 94 <img src="{@RELATIVE_WCF_DIR}icon/offlineS.png" alt="" title="{lang}wcf.user.option.profile.lastvisitor.offline{/lang}" /> 95 {/if} 96 </div> 91 97 <div class="fieldValue">{@$user.time|time}</div> 92 98 </div>
