You will find two zip files inside the ‘cometchat_UNZIP_FIRST’ folder. Unzip the ‘skadate.zip’ file and merge the extracted ‘ow_plugins’ folder with the existing ‘ow_plugins’ directory of your site.
Log in to SkaDate administration panel, go to ‘PLUGINS > Available Plugins’.
Find ‘CometChat’ under the list of ‘AVAILABLE PLUGINS > Plugins to Install’ and click INSTALL.
Go to ‘PLUGINS > Installed Plugins’. Find and select ‘CometChat’ under ‘INSTALLED PLUGINS > Active Plugins’ and click SETTINGS.
Select the ‘cometchat.zip’ file provided in the package and click UPLOAD.
Note: If you face problem while uploading ‘cometchat.zip’ file, please unzip the ‘cometchat.zip’ that has been provided in the package. Place the ‘cometchat’ folder in the skadate root directory and execute ‘cometchat/install.php’ from “http://<path_to_skadate>/cometchat/install.php”. Also, CHMOD the following folder to 777 (recursively):
Once the CometChat is installed successfully on your site, the CometChat Administration Panel will be displayed.
You can hide CometChat for specific groups by simply entering the user group’s ID in the ‘Hide CometChat from’ field and click SAVE SETTINGS.
You can hide CometChat bar from your site by entering ‘all’ in the ‘Hide CometChat from’ field and click SAVE SETTINGS.
Check “Yes” to enable Inbox Synchronization and click SAVE SETTINGS.
Note: The inbox synchronization will work only if SkaDate’s mailbox plugin is installed and activated. Also, ensure that message mode of that plugin is set to ‘Chats’ or ‘Mails + Chat’.
Activate / Deactivate CometChat:
To activate / deactivate CometChat on your site, go to ‘PLUGINS > Installed Plugins’. Find ‘CometChat’ under ‘INSTALLED PLUGINS > Active Plugins / Inactive Plugins’ and click DEACTIVATE / ACTIVATE respectively.
Add the following code to your site template and update the variables to output the logged in user’s information.
<script> var chat_name = 'LOGGEDIN_USERS_NAME'; var chat_id = 'LOGGEDIN_USERS_UNIQUE_ID'; var chat_avatar = 'LOGGEDIN_PROFILE_IMAGE'; var chat_link = 'LOGGEDIN_USERS_PROFILE_LINK'; var chat_role = 'USER_ROLE'; </script>
Select a layout of your choice and click on “Add To Site” button to proceed.