Changeset 513

Show
Ignore:
Timestamp:
05/16/08 15:26:15 (5 years ago)
Author:
MDMAN
Message:

New Version of profile.lastvisitors added (Version 1.1.9)

Location:
profile.lastvisitors
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • profile.lastvisitors/de-informal.xml

    r439 r513  
    7474                <item name="wcf.user.option.profile.lastvisitor.morevisitors.button"><![CDATA[zum Profil von »{$user["username"]}«]]></item> 
    7575                <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 Profils von »{$user["username"]}«]]></item> 
     76                <item name="wcf.user.option.profile.lastvisitor.moretabtitle"><![CDATA[Profil-Besucher von »{$user["username"]}«]]></item> 
    7777                <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> 
    7878                <item name="wcf.user.option.profile.lastvisitor.online"><![CDATA[Online]]></item> 
     
    8484                <item name="wcf.user.profile.lastvisitor.morevisitors.tab"><![CDATA[Profil-Besucher]]></item> 
    8585                <item name="wcf.user.profile.lastvisitors.tabtitle"><![CDATA[Profil-Besucher]]></item> 
    86                 <item name="wcf.user.profile.lastvisitors.tabcontenttitle"><![CDATA[weitere Benutzerprofil-Besucher von »{$user["username"]}«]]></item> 
     86                <item name="wcf.user.profile.lastvisitors.tabcontenttitle"><![CDATA[Benutzerprofil-Besucher von »{$user["username"]}«]]></item> 
    8787        </category> 
    8888          
  • profile.lastvisitors/de.xml

    r439 r513  
    7474                <item name="wcf.user.option.profile.lastvisitor.morevisitors.button"><![CDATA[zum Profil von »{$user["username"]}«]]></item> 
    7575                <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 Profils von »{$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> 
    7878                <item name="wcf.user.option.profile.lastvisitor.online"><![CDATA[Online]]></item> 
    7979                <item name="wcf.user.option.profile.lastvisitor.offline"><![CDATA[Offline]]></item> 
     
    8484                <item name="wcf.user.profile.lastvisitor.morevisitors.tab"><![CDATA[Profil-Besucher]]></item> 
    8585                <item name="wcf.user.profile.lastvisitors.tabtitle"><![CDATA[Profil-Besucher]]></item> 
    86                 <item name="wcf.user.profile.lastvisitors.tabcontenttitle"><![CDATA[weitere Benutzerprofil-Besucher von »{$user["username"]}«]]></item> 
     86                <item name="wcf.user.profile.lastvisitors.tabcontenttitle"><![CDATA[Benutzerprofil-Besucher von »{$user["username"]}«]]></item> 
    8787        </category> 
    8888          
  • profile.lastvisitors/files/lib/page/MoreVisitorsPage.class.php

    r411 r513  
    2525 
    2626                        // 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; 
    3234                        $result = WCF::getDB()->sendQuery($sql); 
    3335                        while ($row = WCF::getDB()->fetchArray($result)) { 
  • profile.lastvisitors/files/lib/page/MoreVisitorsTabPage.class.php

    r419 r513  
    3131 
    3232                        // 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; 
    3840                        $result = WCF::getDB()->sendQuery($sql); 
    3941                        while ($row = WCF::getDB()->fetchArray($result)) { 
     
    7375                UserProfileMenu::getInstance()->setActiveMenuItem('wcf.user.profile.menu.link.profile.lastvisitor'); 
    7476                 
     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                 
    7581                parent::show(); 
    7682        } 
  • profile.lastvisitors/package.xml

    r505 r513  
    88                <packagedescription>Shows the last profile visitors in the user profile.</packagedescription> 
    99                <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-10</date> 
     10                <version>1.1.9</version> 
     11                <date>2008-05-16</date> 
    1212                <plugin>com.woltlab.wcf</plugin> 
    1313                <isunique>1</isunique> 
     
    138138 
    139139        <instructions type="update" fromversion="1.1.6"> 
     140                <languages languagecode="de">de.xml</languages> 
     141                <languages languagecode="de-informal">de-informal.xml</languages> 
    140142                <files>files.tar</files> 
    141143                <templates>templates.tar</templates> 
     
    145147 
    146148        <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> 
    147151                <files>files.tar</files> 
    148152                <templates>templates.tar</templates> 
     
    151155 
    152156        <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> 
    153166                <files>files.tar</files> 
    154167                <templates>templates.tar</templates> 
  • profile.lastvisitors/templates/moreVisitors.tpl

    r420 r513  
    4444                                {foreach from=$visitors item=user} 
    4545                                        <div class="{cycle}"> 
    46                                                 <div class="fieldTitle"><a href="index.php?page=User&amp;userID={$user.userID}">{$user.username}</a></div> 
     46                                                <div class="fieldTitle"><a href="index.php?page=User&amp;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> 
    4753                                                <div class="fieldValue">{@$user.time|time}</div> 
    4854                                        </div> 
  • profile.lastvisitors/templates/moreVisitorsTab.tpl

    r420 r513  
    2222 
    2323<div class="mainHeadline"> 
    24         <img src="{@RELATIVE_WCF_DIR}icon/userProfileL.png" alt="" /> 
     24        <img src="{@RELATIVE_WCF_DIR}icon/membersL.png" alt="" /> 
    2525        <div class="headlineContainer"> 
    2626                <h2> {lang}wcf.user.option.profile.lastvisitor.moretabtitle{/lang}</h2> 
     
    8888                                        {foreach from=$visitors item='user'}     
    8989                                                <div class="{cycle}">                                            
    90                                                         <div class="fieldTitle"><a href="index.php?page=User&amp;userID={$user.userID}{@SID_ARG_2ND}">{$user.username}</a></div> 
     90                                                        <div class="fieldTitle"><a href="index.php?page=User&amp;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> 
    9197                                                        <div class="fieldValue">{@$user.time|time}</div> 
    9298                                                </div>