Skip to main content

Drupal — Chat Code Installation

The online chat widget can be installed on a website running the Drupal content management system in two ways. Let’s take a closer look at each method.

Method 1. Installing the Code via a New Block

1. Copy the widget code from the Online Chat settings. 

Drupal — Chat Code Installation. Screenshot 1

2. Log in to your website’s admin panel. At the top, click on the “Structure” tab. Select the “Block Layout” section. 

Drupal — Chat Code Installation. Screenshot 2

3. Select the “Custom Block Library” tab. Click “Add Custom Block.”

Drupal — Chat Code Installation. Screenshot 3

4.  Enter the following details:
— Block description: Online Chat;

— Block content: paste the Online Chat widget code.

— Text format: Full HTML

Leave the other fields as they are. Click the “Save” button. 

Drupal — Chat Code Installation. Screenshot 4

5. Return to the “Block Layout” tab. Place the block in the site header:

Drupal — Chat Code Installation. Screenshot 5

6. Find the Online Chat block in the list and click “Place block.” Then click the “Save block” button.

Drupal — Chat Code Installation. Screenshot 6

7. As a result, the block will appear in the “Header” section block layout. Click the “Save blocks” button at the bottom of the page to save your changes.

Drupal — Chat Code Installation. Screenshot 7
Drupal — Chat Code Installation. Screenshot 8

Method 2. Installation via FTP

1. Copy the widget code from the Online Chat settings. 

2. To install Online Chat on Drupal, use FTP. Access your hosting directly or connect via an FTP client. Edit the file “html.tpl.php” located at: YourSite/modules/system/html.tpl.php.

3. Paste the Online Chat widget code before the </body> tag. Save the changes. 

Drupal — Chat Code Installation. Screenshot 9

Note: If you are using Drupal 6, insert the widget code into the page.tpl.php file. This file is located in the folder of the active theme. Be careful: the page.tpl.php file can also be found in other folders.

Была ли эта статья полезной?
0 из 5 звезд
5 Звезд 0%
4 Звезд 0%
3 Звезд 0%
2 Звезд 0%
1 Звезд 0%
Как мы можем улучшить эту статью?
Please submit the reason for your vote so that we can improve the article.
Оглавление