logo
Home XtGem- Templates- XtScript- bottom

Chatroom


Add block > Utilities > Social > Chatroom
The chatroom function can be used as it is or the more advanced user can fully customize it
Your site can contain multiple chatrooms but each must be on a separate page.
The basic setup is very simple
Give the chatroom a unique name to identify it and select the number of messages to display and you are done
The site options also has a setting for restricting who can post to the chat room
anyone or only your registered users
Some mobile browsers may have difficulty running the chat function

Advanced users

For the advanced user the whole chatroom can be customized by using twig and css
First create folders in the main filebrowser (root directory) named
_xtgem_templates
_xtgem_translations

The twig file is at:
Upload by remote server to _xtgem_templates and then remove the .js
The css file is at :
Upload by remote server to _xtgem_templates
To use the css you need the twig file
Near the top of the twig file change
<style type="text/css">{% filter css|raw %}{% include 'style.css' %}{% endfilter %}</style>
To
<style type="text/css">{% filter css|raw %}{% include 'my_chat_style.css' %}{% endfilter %}</style>
The translations file is at :
Upload by remote server to _xtgem_translations and then remove the .js
The format of the translations is:
translation_key = translation_text // optional comment
Each translation must be on a separate line
If the xtchat file exists no default translations for forum will be loaded unless you delete this file.
Powered by XtGem
About us Contact Forum topÂ