Introduction
This guide will help you through the installation process and get CometChat running on your site.
Installation is very straight forward, only taking about 5 minutes from uploading the files to viewing the CometChat bar on your site.
Before you begin, you will need an FTP client, if you do not have one, you can download a free client like FileZilla.
You do not need programming knowledge to install CometChat, but a working knowledge of FTP functions is a plus.
This guide assumes that you have successfully downloaded the latest release of CometChat and have the zip file “unzipped” and ready to go. If not, you can download the package from the CometChat Client Area
.
The instructions will term the zip file you downloaded as cometchat.zip
.
Uploading
At this point, you should have the zip archive cometchat.zip
and find a single folder- cometchat
.
If you don’t know already, find out the folder in which MediaWiki is installed.
If you access your MediaWiki site via http://www.domain.com
, then look for the webroot
directory.
The webroot
directory is usually public_html
or www
, but this varies from server to server so if you’re unsure, contact your hosting provider.
Using your FTP client, copy the /cometchat
folder inside your MediaWiki folder. e.g. http://www.domain.com/cometchat
Installation
Step 1
You should now run the installer file through your web browser by entering the URL into your browser’s address bar (if you have followed our example, type in http://www.domain.com/cometchat/install.php
, naturally substituting domain.com
for your web address).
If the installation was completed successfully, you will receive the link for CometChat Admin Panel
.
Also the page may display a list of files and folders which may require additional permissions. Please CHMOD those files/folders to 777.
Step 2
Login to CometChat Admin Panel
and click on the Install CometChat
tab. Follow the on-screen instructions to receive the code that you need to add to your site.
Docked Layout
If you using the Docked Layout, you need to edit your site template.
- Open
OutputPage.php
file located inincludes
directory. - Find
getHeadLinksArray()
function. - In
getHeadLinksArray()
function, add the following code after$canonicalUrl = $this->mCanonicalUrl;
$tags['cometchat-footer-code-link'] = Html::element('link', array(
'rel' => 'stylesheet',
'type' => 'text/css',
'charset' => 'utf-8',
'href' => '/cometchat/cometchatcss.php',
) );
$tags['cometchat-footer-code-script'] = Html::element( 'script', array(
'type' => 'text/javascript',
'charset' => 'utf-8',
'src' => '/cometchat/cometchatjs.php',
) );
Embedded Layout
If you are using the Embedded Layout, you can copy/paste the HTML code into any site page.