Drupal

Our installation instructions are slightly different depending on the version of Drupal you are running. Please select:

  1. Drupal 8
  2. Drupal 6 or Drupal 7

Drupal 8

Installing CometChat as a Drupal plugin

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.

You do not need programming knowledge to install CometChat.

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 your client area.

The instructions will term the zip file you downloaded as cometchat_UNZIP_FIRST.zip. Extract this zip to a local folder.

Step 1
Login into your website as administrator.

Step 2
Click on ‘Extend’.

drupal1

Step 3
Click on ‘Install new module’.

drupal2

Step 4
Upload the drupal.tar.gz file. And click on ‘Install’.

drupal_tar

Step 5
‘Installation was completed successfully’ message will be appear. Click on ‘Administration pages’ and go to ‘Extend’ page.

drupal4

Step 6
Check the CometChat checkbox and click on ‘Install’ button.

drupal5

Step 7
CometChat has been enabled.

drupal6

Step 8
Go to Configuration > System > CometChat.

drupal7

Step 9
Upload the cometchat.zip file and click on ‘Save configuration’ .

drupal1

Step 10
CometChat has been successfully installed. Click on ‘CometChat Administration panel’.

drupal2

Step 11
You can access CometChat Administration panel.

drupal3

Step 12
Hide CometChat for.
– To disable CometChat for a particular user group, check that user group and click ‘Save configuration’ to save the settings.
After saving configuration flush all the cache of your website.

drupal4

Upgrading CometChat

To upgrade CometChat to its latest version on your site, download CometChat package from ‘https://my.cometchat.com/’. Unzip the cometchat_UNZIP_FIRST.zip and upload the new ‘cometchat.zip’ and click ‘Save configuration’.

drupal6

Drupal 6 or Drupal 7

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, some popular solutions include FileZilla (free) or CuteFTP (trial).

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 your 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 Drupal is installed.

If you access your Drupal 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 Drupal 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 to it into your browser 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, then two code snippets will be displayed on your screen. The first code is for docked themes like Glass, Hangout, Facebook etc. and the second is for embedded theme i.e. Synergy. Please copy the appropriate lines of code depending on whether you wish to use docked themes or embedded theme.

Step 2

To use docked theme:

Now edit your template header. Immediately after the opening head tag add the copied code:

<head>
<link type="text/css" href="/cometchat/cometchatcss.php" rel="stylesheet" charset="utf-8">
<script type="text/javascript" src="/cometchat/cometchatjs.php" charset="utf-8"></script>

This file is generally present at /themes/garland/page.tpl.php (where garland is your theme)

To embed CometChat in your site:

Add the code copied for embedded theme from step 1 in your site’s HTML code to embed the chat.

Now delete install.php file from the cometchat folder.

That’s all! Now log-in to your site and you will be able to see the CometChat bar. For customizing the text, icons, plugins, theme and modules, please refer to other documents.

Not finding what you need?

The CometChat team is here to help!