Emoticons are defined in config/emoticons.js file.
Example of an emoticon definition:
bcemoticon = new Object(); bcemoticon.id = 1; bcemoticon.name = "Smile"; bcemoticon.alt1 = ":-)"; bcemoticon.alt2 = ":)"; bcemoticon.alt3 = ""; bcemoticon.iconClass = "bcEmoticonSmile"; bcDataConfig.emoticons.emoticons.push(bcemoticon);
You should copy this code for each emoticon you would like to create.
Parameter name
|
Default value
|
Type
|
bcemoticon.id (mandatory) | Number | |
Identification number of the emoticon (must be unique value in your system) |
||
bcemoticon.name | "" | String |
Emoticon name (presented as a tooltip). |
||
bcemoticon.alt1 | "" | String |
First string alternative to look for in the message, that should be mapped to this emoticon |
||
bcemoticon.alt2 | "" | Boolean |
Second string alternative to look for in the message, that should be mapped to this emoticon |
||
bcemoticon.alt3 | "" | String |
Third string alternative to look for in the message, that should be mapped to this emoticon |
||
bcemoticon.iconClass | "" | String |
icon class |
Emoticon groups are defined in config/emoticons.js file.
Example of a emoticon group definition:
bcsoundgroup = new Object(); bcsoundgroup.id = 1; bcsoundgroup.sounds = [1,2]; bcDataConfig.sounds.groups.push(bcsoundgroup);
You should copy this code for each emoticon group you would like to create.
Parameter name
|
Default value
|
Type
|
bcemoticongroup.id (mandatory) | Number | |
Identification number of the emoticon group (must be unique value in your system) |
||
bcemoticongroup.emoticons | "" | Array |
Array of comma separated emoticon identification numbers that belong to this emoticon group |