In order to use CometChat across multiple subdomains.
Note: For setting CometChat for multiple domains you have to keep database constant for every subdomain.
You can run CometChat across multiple domains/sub-domains. Please follow these steps AFTER you have installed CometChat at least one location.
An ideal use of this feature is when you have CometChat installed at www.yoursite.com and want to also use it on abc.yoursite.com.
To allow your sub-domains to use CometChat as well, perform the following steps:
* Edit BASE_URL to the full path e.g. http://www.yoursite.com/cometchat/
please follow below article for the same.
* Then set CROSS_DOMAIN to 1 (Once Install CometChat please let us know we will set this variable on the respective place.)
Add the following code to the site template of your sub-domains (remember to include the full URL path).
Add the code immediately after
<link type="text/css" rel="stylesheet" media="all" href="http://www.yoursite.com/cometchat/cometchatcss.php" />