Changeset 604

Show
Ignore:
Timestamp:
07/18/08 23:36:22 (5 years ago)
Author:
MDMAN
Message:

newnew version added for application.register

Location:
application.register
Files:
1 added
5 modified

Legend:

Unmodified
Added
Removed
  • application.register/de-informal.xml

    r498 r604  
    55                <item name="wbb.index.application.register.info"><![CDATA[{if $count == 1}Du hast noch eine unbearbeitete Bewerbung fÃŒr eine Benutzergruppe.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Direkt zur Bewerbung...</a>{/if}{if $count > 1}Du hast noch unbearbeitete Bewerbungen fÃŒr Benutzergruppen.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Direkt zu den Bewerbungen...</a>{/if}]]></item> 
    66        </category> 
     7        <category name="wcf.acp.option"> 
     8                <item name="wcf.acp.option.application_info_enable"><![CDATA[Bewerbungshinweis-Info-Box anzeigen]]></item> 
     9                <item name="wcf.acp.option.application_info_enable.description"><![CDATA[Ist diese Option aktiviert, wird dem Gruppenleiter einer Benutzergruppe eine Info-Box angezeigt, die auf eine neue Bewebung hinweist. Sehen kann die Box nur der Gruppenleiter der jeweiligen Benutzergruppe.]]></item> 
     10        </category> 
    711</language> 
  • application.register/de.xml

    r498 r604  
    55                <item name="wbb.index.application.register.info"><![CDATA[{if $count == 1}Es ist eine unbearbeitete Bewerbung fÃŒr eine Benutzergruppe vorhanden.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Direkt zur Bewerbung...</a>{/if}{if $count > 1}Es sind noch unbearbeitete Bewerbungen fÃŒr Benutzergruppen vorhanden.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Direkt zu den Bewerbungen...</a>{/if}]]></item> 
    66        </category> 
     7        <category name="wcf.acp.option"> 
     8                <item name="wcf.acp.option.application_info_enable"><![CDATA[Bewerbungshinweis-Info-Box anzeigen]]></item> 
     9                <item name="wcf.acp.option.application_info_enable.description"><![CDATA[Ist diese Option aktiviert, wird dem Gruppenleiter einer Benutzergruppe eine Info-Box angezeigt, die auf eine neue Bewebung hinweist. Sehen kann die Box nur der Gruppenleiter der jeweiligen Benutzergruppe.]]></item> 
     10        </category> 
    711</language> 
  • application.register/en.xml

    r503 r604  
    33 
    44        <category name="wbb.index"> 
    5                 <item name="wbb.index.application.register.info"><![CDATA[{if $count == 1}There is one unattended application for a user group.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Go to the application management...</a>{/if}{if $count > 1}There are unattended applications for user groups.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Go to the application management...</a>{/if}]]></item> 
     5                <item name="wbb.index.application.register.info"><![CDATA[{if $count == 1}An unattended application exists for a user group.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Go to the application...</a>{/if}{if $count > 1}Unattended applications exist for user groups.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Go to the applications...</a>{/if}]]></item> 
     6        </category> 
     7        <category name="wcf.acp.option"> 
     8                <item name="wcf.acp.option.application_info_enable"><![CDATA[Show infobox on user group applications]]></item> 
     9                <item name="wcf.acp.option.application_info_enable.description"><![CDATA[If enabled, an information box will be shown to the group leaders on new applications for their user groups.]]></item> 
    610        </category> 
    711</language> 
  • application.register/files/lib/system/event/listener/ApplicationRegisterListener.class.php

    r510 r604  
    1616         */ 
    1717        public function execute($eventObj, $className, $eventName) { 
    18                 $sql = "SELECT wcf".WCF_N."_group_application.* FROM wcf".WCF_N."_group_application 
    19                                 LEFT JOIN wcf".WCF_N."_group_application_notification 
    20                                 ON wcf".WCF_N."_group_application.applicationID = wcf".WCF_N."_group_application_notification.applicationID 
    21                                 AND wcf".WCF_N."_group_application_notification.userID = ".WCF::getUser()->userID." 
    22                                 WHERE wcf".WCF_N."_group_application_notification.applicationID IS NULL 
    23                                 AND wcf".WCF_N."_group_application.groupID IN ( 
    24                                                                 SELECT  groupID 
    25                                                                 FROM    wcf".WCF_N."_group_leader 
    26                                                                 WHERE   userID = ".WCF::getUser()->userID." 
    27                                                                 ) 
    28                                 AND wcf".WCF_N."_group_application.applicationStatus = 0 
    29                                 "; 
     18                 
     19                if (APPLICATION_INFO_ENABLE == 1) { 
     20                         
     21                        $sql = "SELECT wcf".WCF_N."_group_application.* FROM wcf".WCF_N."_group_application 
     22                                        LEFT JOIN wcf".WCF_N."_group_application_notification 
     23                                        ON wcf".WCF_N."_group_application.applicationID = wcf".WCF_N."_group_application_notification.applicationID 
     24                                        AND wcf".WCF_N."_group_application_notification.userID = ".WCF::getUser()->userID." 
     25                                        WHERE wcf".WCF_N."_group_application_notification.applicationID IS NULL 
     26                                        AND wcf".WCF_N."_group_application.groupID IN ( 
     27                                                                        SELECT  groupID 
     28                                                                        FROM    wcf".WCF_N."_group_leader 
     29                                                                        WHERE   userID = ".WCF::getUser()->userID." 
     30                                                                        ) 
     31                                        AND wcf".WCF_N."_group_application.applicationStatus = 0 
     32                                        "; 
    3033 
    31                 $res = WCF::getDB()->sendQuery($sql); 
    32                 $count = WCF::getDB()->countRows($res); 
     34                        $res = WCF::getDB()->sendQuery($sql); 
     35                        $count = WCF::getDB()->countRows($res); 
    3336 
    34                 if ($count >= 1){ 
    35                 //Hier werden die Variablen im Template registriert 
    36                         WCF::getTPL()->assign(array( 
     37                        if ($count >= 1){ 
     38                        //Hier werden die Variablen im Template registriert 
     39                                WCF::getTPL()->assign(array( 
    3740                 'count' => $count, 
    38             )); 
    39         //Hier wird das Template in dem Platzhalter userMessages integriert. 
    40                         if (strpos(WCF::getTPL()->get('userMessages'), WCF::getTPL()->fetch('applicationRegister')) === false) { 
    41                                 WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('applicationRegister')); 
     41                )); 
     42                //Hier wird das Template in dem Platzhalter userMessages integriert. 
     43                                if (strpos(WCF::getTPL()->get('userMessages'), WCF::getTPL()->fetch('applicationRegister')) === false) { 
     44                                        WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('applicationRegister')); 
     45                                } 
    4246                        } 
    43  
    4447                } 
    45  
    4648        } 
    47  
    4849} 
    4950?> 
  • application.register/package.xml

    r502 r604  
    88                <packagedescription>Mit diesem PlugIn wird auf der Startseite ein Hinweis fÃŒr den Gruppenleader erscheinen, falls es neue Bewerbungen fÃŒr eine Benutzergruppe gibt.</packagedescription> 
    99                <packageurl><![CDATA[http://www.mdman.de]]></packageurl> 
    10                 <version>1.0.5</version> 
    11                 <date>2008-05-09</date> 
     10                <version>1.0.6</version> 
     11                <date>2008-07-18</date> 
    1212                <plugin>com.woltlab.wcf</plugin> 
    1313        </packageinformation> 
     
    1919 
    2020        <requiredpackages> 
    21                 <requiredpackage minversion="3.0.4">com.woltlab.wbb</requiredpackage> 
     21                <requiredpackage minversion="3.0.7">com.woltlab.wbb</requiredpackage> 
    2222        </requiredpackages> 
    2323 
     
    3030                <eventlistener>eventlistener.xml</eventlistener> 
    3131                <sql>install.sql</sql> 
     32                <options>options.xml</options> 
    3233        </instructions> 
    3334 
    3435        <instructions type="update" fromversion="1.0.0"> 
    3536                <files>files.tar</files> 
     37                <languages languagecode="de">de.xml</languages> 
     38                <languages languagecode="de-informal">de-informal.xml</languages> 
    3639                <languages languagecode="en">en.xml</languages> 
    3740                <templates>templates.tar</templates> 
    3841                <sql>install.sql</sql> 
    3942                <eventlistener>eventlistener.xml</eventlistener> 
     43                <options>options.xml</options> 
    4044        </instructions> 
    4145 
    4246        <instructions type="update" fromversion="1.0.1"> 
    4347                <files>files.tar</files> 
     48                <languages languagecode="de">de.xml</languages> 
     49                <languages languagecode="de-informal">de-informal.xml</languages> 
    4450                <languages languagecode="en">en.xml</languages> 
    4551                <templates>templates.tar</templates> 
    4652                <eventlistener>eventlistener.xml</eventlistener> 
    4753                <sql>install.sql</sql> 
     54                <options>options.xml</options> 
    4855        </instructions> 
    4956 
     
    5259                <eventlistener>eventlistener.xml</eventlistener> 
    5360                <sql>install.sql</sql> 
     61                <languages languagecode="de">de.xml</languages> 
     62                <languages languagecode="de-informal">de-informal.xml</languages> 
    5463                <languages languagecode="en">en.xml</languages> 
     64                <options>options.xml</options> 
    5565        </instructions> 
    5666 
    5767        <instructions type="update" fromversion="1.0.3"> 
     68                <languages languagecode="de">de.xml</languages> 
     69                <languages languagecode="de-informal">de-informal.xml</languages> 
    5870                <languages languagecode="en">en.xml</languages> 
    5971                <files>files.tar</files> 
    6072                <eventlistener>eventlistener.xml</eventlistener> 
    6173                <sql>install.sql</sql> 
     74                <options>options.xml</options> 
    6275        </instructions> 
    6376 
    6477        <instructions type="update" fromversion="1.0.4"> 
     78                <languages languagecode="de">de.xml</languages> 
     79                <languages languagecode="de-informal">de-informal.xml</languages> 
     80                <languages languagecode="en">en.xml</languages> 
    6581                <files>files.tar</files> 
    6682                <eventlistener>eventlistener.xml</eventlistener> 
    6783                <sql>install.sql</sql> 
     84                <options>options.xml</options> 
     85        </instructions> 
     86         
     87        <instructions type="update" fromversion="1.0.5"> 
     88                <languages languagecode="de">de.xml</languages> 
     89                <languages languagecode="de-informal">de-informal.xml</languages> 
     90                <languages languagecode="en">en.xml</languages> 
     91                <files>files.tar</files> 
     92                <options>options.xml</options> 
    6893        </instructions> 
    6994