1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Add attachment object type and permissions to the corresponding XMLs.

This commit is contained in:
Maximilian Mader 2013-09-13 22:38:59 +02:00
parent 648224a213
commit 2a2b69093b
2 changed files with 26 additions and 0 deletions

View File

@ -24,5 +24,10 @@
<classname>chat\system\user\online\location\ChatLocation</classname> <classname>chat\system\user\online\location\ChatLocation</classname>
<languagevariable>chat.user.usersOnline.location.ChatPage</languagevariable> <languagevariable>chat.user.usersOnline.location.ChatPage</languagevariable>
</type> </type>
<type>
<name>be.bastelstu.chat.message</name>
<definitionname>com.woltlab.wcf.attachment.objectType</definitionname>
<classname>chat\system\attachment\MessageAttachmentObjectType</classname>
</type>
</import> </import>
</data> </data>

View File

@ -38,6 +38,27 @@
<defaultvalue>none</defaultvalue> <defaultvalue>none</defaultvalue>
<admindefaultvalue>all</admindefaultvalue> <admindefaultvalue>all</admindefaultvalue>
</option> </option>
<option name="user.chat.maxAttachmentSize">
<categoryname>user.chat</categoryname>
<optiontype>fileSize</optiontype>
<defaultvalue>1000000</defaultvalue>
<options>module_attachment</options>
<minvalue>10000</minvalue>
</option>
<option name="user.chat.allowedAttachmentExtensions">
<categoryname>user.chat</categoryname>
<optiontype>textarea</optiontype>
<defaultvalue><![CDATA[gif
jpg
jpeg
png
bmp
zip
txt
pdf]]></defaultvalue>
<options>module_attachment</options>
<wildcard><![CDATA[*]]></wildcard>
</option>
<option name="mod.chat.canAlwaysEnter"> <option name="mod.chat.canAlwaysEnter">
<categoryname>mod.chat</categoryname> <categoryname>mod.chat</categoryname>
<optiontype>boolean</optiontype> <optiontype>boolean</optiontype>