mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Move CHAT_ACTIVE to modules and rename it to MODULE_CHAT
This commit is contained in:
parent
f570e9d1a6
commit
3fb212693d
@ -124,7 +124,7 @@ public function updatePosition() {
|
|||||||
* Validates parameters and permissions.
|
* Validates parameters and permissions.
|
||||||
*/
|
*/
|
||||||
public function validateGetRoomList() {
|
public function validateGetRoomList() {
|
||||||
if (!CHAT_ACTIVE) throw new \wcf\system\exception\IllegalLinkException();
|
if (!MODULE_CHAT) throw new \wcf\system\exception\IllegalLinkException();
|
||||||
|
|
||||||
$rooms = Room::getCache();
|
$rooms = Room::getCache();
|
||||||
$roomID = ChatUtil::readUserData('roomID');
|
$roomID = ChatUtil::readUserData('roomID');
|
||||||
@ -161,7 +161,7 @@ public function getRoomList() {
|
|||||||
* Validates parameters and permissions.
|
* Validates parameters and permissions.
|
||||||
*/
|
*/
|
||||||
public function validateLeave() {
|
public function validateLeave() {
|
||||||
if (!CHAT_ACTIVE) throw new \wcf\system\exception\IllegalLinkException();
|
if (!MODULE_CHAT) throw new \wcf\system\exception\IllegalLinkException();
|
||||||
|
|
||||||
unset($this->parameters['user']);
|
unset($this->parameters['user']);
|
||||||
|
|
||||||
@ -228,7 +228,7 @@ public function removeDeadUsers() {
|
|||||||
* Validates permissions.
|
* Validates permissions.
|
||||||
*/
|
*/
|
||||||
public function validateGetDashboardRoomList() {
|
public function validateGetDashboardRoomList() {
|
||||||
if (!CHAT_ACTIVE) throw new \wcf\system\exception\IllegalLinkException();
|
if (!MODULE_CHAT) throw new \wcf\system\exception\IllegalLinkException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,7 +21,7 @@ class ChatPage extends \wcf\page\AbstractPage {
|
|||||||
/**
|
/**
|
||||||
* @see \wcf\page\AbstractPage::$neededModules
|
* @see \wcf\page\AbstractPage::$neededModules
|
||||||
*/
|
*/
|
||||||
public $neededModules = array('CHAT_ACTIVE');
|
public $neededModules = array('MODULE_CHAT');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see \wcf\page\AbstractPage::$neededPermissions
|
* @see \wcf\page\AbstractPage::$neededPermissions
|
||||||
|
@ -19,7 +19,7 @@ class CopyrightPage extends \wcf\page\AbstractPage {
|
|||||||
/**
|
/**
|
||||||
* @see \wcf\page\AbstractPage::$neededModules
|
* @see \wcf\page\AbstractPage::$neededModules
|
||||||
*/
|
*/
|
||||||
public $neededModules = array('CHAT_ACTIVE');
|
public $neededModules = array('MODULE_CHAT');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see \wcf\page\AbstractPage::$neededPermissions
|
* @see \wcf\page\AbstractPage::$neededPermissions
|
||||||
|
@ -30,7 +30,7 @@ class LogPage extends \wcf\page\AbstractPage {
|
|||||||
/**
|
/**
|
||||||
* @see \wcf\page\AbstractPage::$neededModules
|
* @see \wcf\page\AbstractPage::$neededModules
|
||||||
*/
|
*/
|
||||||
public $neededModules = array('CHAT_ACTIVE');
|
public $neededModules = array('MODULE_CHAT');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see \wcf\page\AbstractPage::$neededPermissions
|
* @see \wcf\page\AbstractPage::$neededPermissions
|
||||||
|
@ -29,7 +29,7 @@ class NewMessagesPage extends \wcf\page\AbstractPage {
|
|||||||
/**
|
/**
|
||||||
* @see \wcf\page\AbstractPage::$neededModules
|
* @see \wcf\page\AbstractPage::$neededModules
|
||||||
*/
|
*/
|
||||||
public $neededModules = array('CHAT_ACTIVE');
|
public $neededModules = array('MODULE_CHAT');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see \wcf\page\AbstractPage::$neededPermissions
|
* @see \wcf\page\AbstractPage::$neededPermissions
|
||||||
|
@ -24,7 +24,7 @@ class OnlineListDashboardBox extends \wcf\system\dashboard\box\AbstractContentDa
|
|||||||
public function init(\wcf\data\dashboard\box\DashboardBox $box, \wcf\page\IPage $page) {
|
public function init(\wcf\data\dashboard\box\DashboardBox $box, \wcf\page\IPage $page) {
|
||||||
parent::init($box, $page);
|
parent::init($box, $page);
|
||||||
|
|
||||||
if (!CHAT_ACTIVE) return;
|
if (!MODULE_CHAT) return;
|
||||||
if (!\wcf\system\WCF::getUser()->userID) return;
|
if (!\wcf\system\WCF::getUser()->userID) return;
|
||||||
|
|
||||||
$this->rooms = data\room\Room::getCache();
|
$this->rooms = data\room\Room::getCache();
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
<category name="wcf.acp.option">
|
<category name="wcf.acp.option">
|
||||||
<item name="wcf.acp.option.category.chat"><![CDATA[Chat]]></item>
|
<item name="wcf.acp.option.category.chat"><![CDATA[Chat]]></item>
|
||||||
<item name="wcf.acp.option.category.chat.general"><![CDATA[Allgemein]]></item>
|
<item name="wcf.acp.option.category.chat.general"><![CDATA[Allgemein]]></item>
|
||||||
<item name="wcf.acp.option.chat_active"><![CDATA[Chat aktivieren]]></item>
|
<item name="wcf.acp.option.module_chat"><![CDATA[Tims Chat]]></item>
|
||||||
<item name="wcf.acp.option.chat_reloadtime"><![CDATA[Nachladezeit]]></item>
|
<item name="wcf.acp.option.chat_reloadtime"><![CDATA[Nachladezeit]]></item>
|
||||||
<item name="wcf.acp.option.chat_reloadtime.description"><![CDATA[Wartezeit zwischen zwei Anfragen zum Server. [Zeit in Sekunden]]]></item>
|
<item name="wcf.acp.option.chat_reloadtime.description"><![CDATA[Wartezeit zwischen zwei Anfragen zum Server. [Zeit in Sekunden]]]></item>
|
||||||
<item name="wcf.acp.option.chat_lastmessages"><![CDATA[Anzahl der letzten Nachrichten]]></item>
|
<item name="wcf.acp.option.chat_lastmessages"><![CDATA[Anzahl der letzten Nachrichten]]></item>
|
||||||
|
10
option.xml
10
option.xml
@ -14,10 +14,9 @@
|
|||||||
<options>
|
<options>
|
||||||
<!-- general chat options -->
|
<!-- general chat options -->
|
||||||
<option name="chat_active">
|
<option name="chat_active">
|
||||||
<categoryname>chat.general</categoryname>
|
<categoryname>module.community</categoryname>
|
||||||
<optiontype>boolean</optiontype>
|
<optiontype>boolean</optiontype>
|
||||||
<defaultvalue>1</defaultvalue>
|
<defaultvalue>1</defaultvalue>
|
||||||
<showorder>1</showorder>
|
|
||||||
</option>
|
</option>
|
||||||
<option name="chat_reloadtime">
|
<option name="chat_reloadtime">
|
||||||
<categoryname>chat.general</categoryname>
|
<categoryname>chat.general</categoryname>
|
||||||
@ -25,7 +24,6 @@
|
|||||||
<defaultvalue>5</defaultvalue>
|
<defaultvalue>5</defaultvalue>
|
||||||
<minvalue>1</minvalue>
|
<minvalue>1</minvalue>
|
||||||
<maxvalue>15</maxvalue>
|
<maxvalue>15</maxvalue>
|
||||||
<showorder>2</showorder>
|
|
||||||
</option>
|
</option>
|
||||||
<option name="chat_lastmessages">
|
<option name="chat_lastmessages">
|
||||||
<categoryname>chat.general</categoryname>
|
<categoryname>chat.general</categoryname>
|
||||||
@ -33,13 +31,11 @@
|
|||||||
<defaultvalue>5</defaultvalue>
|
<defaultvalue>5</defaultvalue>
|
||||||
<minvalue>0</minvalue>
|
<minvalue>0</minvalue>
|
||||||
<maxvalue>50</maxvalue>
|
<maxvalue>50</maxvalue>
|
||||||
<showorder>4</showorder>
|
|
||||||
</option>
|
</option>
|
||||||
<option name="chat_display_join_leave">
|
<option name="chat_display_join_leave">
|
||||||
<categoryname>chat.general</categoryname>
|
<categoryname>chat.general</categoryname>
|
||||||
<optiontype>boolean</optiontype>
|
<optiontype>boolean</optiontype>
|
||||||
<defaultvalue>1</defaultvalue>
|
<defaultvalue>1</defaultvalue>
|
||||||
<showorder>5</showorder>
|
|
||||||
</option>
|
</option>
|
||||||
<option name="chat_max_length">
|
<option name="chat_max_length">
|
||||||
<categoryname>chat.general</categoryname>
|
<categoryname>chat.general</categoryname>
|
||||||
@ -47,13 +43,11 @@
|
|||||||
<defaultvalue>500</defaultvalue>
|
<defaultvalue>500</defaultvalue>
|
||||||
<minvalue>1</minvalue>
|
<minvalue>1</minvalue>
|
||||||
<maxvalue>5000</maxvalue>
|
<maxvalue>5000</maxvalue>
|
||||||
<showorder>8</showorder>
|
|
||||||
</option>
|
</option>
|
||||||
<option name="chat_show_version">
|
<option name="chat_show_version">
|
||||||
<categoryname>chat.general</categoryname>
|
<categoryname>chat.general</categoryname>
|
||||||
<optiontype>boolean</optiontype>
|
<optiontype>boolean</optiontype>
|
||||||
<defaultvalue>1</defaultvalue>
|
<defaultvalue>1</defaultvalue>
|
||||||
<showorder>9</showorder>
|
|
||||||
</option>
|
</option>
|
||||||
<!-- general chat options end -->
|
<!-- general chat options end -->
|
||||||
|
|
||||||
@ -62,14 +56,12 @@
|
|||||||
<categoryname>chat.log</categoryname>
|
<categoryname>chat.log</categoryname>
|
||||||
<optiontype>boolean</optiontype>
|
<optiontype>boolean</optiontype>
|
||||||
<defaultvalue><![CDATA[1]]></defaultvalue>
|
<defaultvalue><![CDATA[1]]></defaultvalue>
|
||||||
<showorder>1</showorder>
|
|
||||||
</option>
|
</option>
|
||||||
<option name="chat_log_archivetime">
|
<option name="chat_log_archivetime">
|
||||||
<categoryname>chat.log</categoryname>
|
<categoryname>chat.log</categoryname>
|
||||||
<optiontype>integer</optiontype>
|
<optiontype>integer</optiontype>
|
||||||
<defaultvalue>10080</defaultvalue>
|
<defaultvalue>10080</defaultvalue>
|
||||||
<minvalue>-1</minvalue>
|
<minvalue>-1</minvalue>
|
||||||
<showorder>2</showorder>
|
|
||||||
</option>
|
</option>
|
||||||
<!--log options end-->
|
<!--log options end-->
|
||||||
</options>
|
</options>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<packagedescription><![CDATA[Chat for WoltLab Community Framework™.]]></packagedescription>
|
<packagedescription><![CDATA[Chat for WoltLab Community Framework™.]]></packagedescription>
|
||||||
<packagedescription language="de"><![CDATA[Chat für WoltLab Community Framework™.]]></packagedescription>
|
<packagedescription language="de"><![CDATA[Chat für WoltLab Community Framework™.]]></packagedescription>
|
||||||
<isapplication>1</isapplication>
|
<isapplication>1</isapplication>
|
||||||
<version>3.0.0 Alpha 22</version><!-- Codename: Codenames are overrated -->
|
<version>3.0.0 Alpha 23</version><!-- Codename: Codenames are overrated -->
|
||||||
<date>2011-11-26</date>
|
<date>2011-11-26</date>
|
||||||
</packageinformation>
|
</packageinformation>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user