You can place any of the following parameters into your config/rooms.js file to overwrite default value for each room that you need to.
Example of a room definition:
bcroom = new Object();
bcroom.id = 1;
bcroom.name = "Room";
bcroom.topic = "RoomTopic";
//additional parameters here
bcDataConfig.rooms.push(bcroom);
You should copy this code for each room you would like to create.
Parameter name
|
Default value
|
Type
|
bcroom.id (mandatory) | Number | |
Identification number of the room (must be unique value in your system) |
||
bcroom.name | "Room" | String |
Name of the room |
||
bcroom.topic | "RoomTopic" | String |
Topic of the room (short description) |
||
bcroom.showButtonSendChat | true | Boolean |
Should the "Send" clickable button be visible in the Chat? |
||
bcroom.showButtonSendShout | false | Boolean |
Should the "Send" clickable button be visible in the Shout? |
||
bcroom.showButtonSendBar | false | Boolean |
Should the "Send" clickable button be visible in the Bar? |
||
bcroom.emoticonsGroupId | 0 | Integer |
Emoticons group id is to use in this room (defined in config/emoticons.js |
||
bcroom.emoticonsGroupBaseClass | "bcEmoticon" | String |
Emoticons base CSS class (defined in config/css/emoticons.css file) |
||
bcroom.emoticonsGroupColsChat | 6 | Integer |
chat |
||
bcroom.emoticonsGroupColsShout | 6 | Integer |
chat |
||
bcroom.emoticonsGroupColsBar | 6 | Integer |
bar |
||
bcroom.soundsGroupId | 0 | Integer |
|
||
bcroom.soundsGroupBaseClass | "bcSound" | String |
bcroom.soundsGroupColsChat | 6 | Integer |
chat |
||
bcroom.soundsGroupColsShout | 6 | Integer |
shout |
||
bcroom.soundsGroupColsBar | 6 | Integer |
bar |
||
bcroom.soundsRoomMessage | 0 | Integer |
bcroom.soundsPrivateMessage | 0 | Integer |
bcroom.baseClass | "bcIcon" | String |
icon base class |
||
bcroom.iconClass | "bcIconRooms" | String |
icon class |
||
bcroom.baseClassBar | "bcIconBar" | String |
|
||
bcroom.iconClassBar | "bcIconRoomsBar" | String |
bcroom.password | false | Boolean |
if true, you must create this room in your blastchat.com account Administration |
||
bcroom.moderated | false | Boolean |
strict moderation, message must be approved by user with moderator privileges |
Following parameters can be overwritten in config/roomsgroups.js file per group.
Parameter Name
|
Default value
|
Type
|
bcroom.maxChatters | 100 | Integer |
max chatters in the room |
||
bcroom.bannerHeight | 0 | Integer |
bcroom.bannerUrl | String | |
bcroom.visible | true | Boolean |
bcroom.avatarsChat | true | Boolean |
bcroom.avatarsShout | true | Boolean |
bcroom.avatarsBar | true | Boolean |
bcroom.access | true | Boolean |
bcroom.write | true | Boolean |
bcroom.copypaste | false | Boolean |
Set value to true to allow copy/paste and save history to text file functionality | ||
bcroom.showGuestList | true | Boolean |
Show guest list in the userlist area inside this room. |
||
bcroom.showUserlistChat | true | Boolean |
bcroom.showUserlistShout | true | Boolean |
bcroom.showUserlistBar | true | Boolean |
bcroom.showWeblinksChat | true | Boolean |
bcroom.showWeblinksShout | true | Boolean |
bcroom.showWeblinksBar | true | Boolean |
bcroom.historyCount | 10 | Integer |
count of old messages loaded on room entry (max value is 25, 0 - no history) |
||
bcroom.historyMaxAge | 60 | Integer |
minutes, max age of old messages that are loaded on room entry |
||
bcroom.emoticons | true | Boolean |
bcroom.sounds | true | Boolean |
bcroom.colors | true | Boolean |
Colors usage allowed |
||
bcroom.fontstyle | true | Boolean |
Font Style usage allowed |
||
bcroom.fontsize | true | Boolean |
Font Size usage allowed |
||
bcroom.detectUrl | true | Boolean |
bcDataConfig.system.badWords | null | Array |
badWords filter, array of strings, example ['a','b'] |
||
bcDataConfig.system.badWordsReplacement | *** | String |
badWords replacement string |
||
bcroom.flood | true | Boolean |
does flood apply? |
||
bcroom.autoKickBan | true | Boolean |
bcroom.messageDeleteOwn | true | Boolean |
bcroom.messageMaxLength | 250 | Integer |
0 - unlimited |
||
bcroom.messageMaxLines | 3 | Integer |
0 - unlimited |
||
bcroom.messageSingleModeChat | false | Boolean |
maximum messages to show (0 - unlimited) |
||
bcroom.messageSingleModeShout | false | Boolean |
maximum messages to show (0 - unlimited) |
||
bcroom.messageSingleModeBar | false | Boolean |
maximum messages to show (0 - unlimited) |
||
bcroom.maxMessagesChat | 0 | Integer |
maximum messages to show (0 - unlimited) |
||
bcroom.maxMessagesShout | 0 | Integer |
maximum messages to show (0 - unlimited) |
||
bcroom.maxMessagesBar | 0 | Integer |
maximum messages to show (0 - unlimited) |
||
bcroom.instantMessaging | true | Boolean |
Allow instant messaging between people from different groups that meet in room (if "Bar" is present) |
||
bcroom.adminMessageDeleteAny | false | Boolean |
(Admin feature, group must have "adminAccess" set to true to access this feature) |
||
bcroom.adminApprove | false | Boolean |
can approve messages in strict moderation room (Admin feature, group must have "adminAccess" set to true to access this feature) |
||
bcroom.adminAssign | false | Boolean |
can assign write privileges to users who belong to less 'weight' group for this room? (Admin feature, group must have "adminAccess" set to true to access this feature) |
||
bcroom.adminRevoke | false | Boolean |
can revoke write privileges to users who belong to less 'weight' group for this room? (Admin feature, group must have "adminAccess" set to true to access this feature) |
||
bcroom.adminKick | false | Boolean |
can user kick other users who belong to less 'weight' group from this room? (Admin feature, group must have "adminAccess" set to true to access this feature) |
||
bcroom.adminBan | false | Boolean |
can user ban other users who belong to less 'weight' group for this room? (Admin feature, group must have "adminAccess" set to true to access this feature) |