Skip to content

Smiley Package Installation Plugin#

Installs new smileys.

Components#

Each smiley is described as an <smiley> element with the mandatory attribute name.

<title>#

Short human readable description of the smiley.

<path(2x)?>#

The files must be installed using the file PIP.

File path relative to the root of WoltLab Suite Core. path2x is optional and being used for High-DPI screens.

<aliases>#

Optional

List of smiley aliases. Aliases must be separated by a line feed character (\n, U+000A).

<showorder>#

Optional

Determines at which position of the smiley list the smiley is shown.

Example#

smiley.xml
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
<?xml version="1.0" encoding="UTF-8"?>
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/2019/smiley.xsd">
    <import>
        <smiley name=":example:">
            <title>example</title>
            <path>images/smilies/example.png</path>
            <path2x>images/smilies/example@2x.png</path2x>
            <aliases><![CDATA[:alias:
:more_aliases:]]></aliases>
        </smiley>
    </import>
</data>

Last update: 2021-04-23