Chat bubble
The chat bubble is a round button in a bottom corner of your pages. A click opens a room in a popup, so visitors can chat without leaving the page they are on.
There are two ways to show it:
- the Easy Chat Room - Chat Bubble module, which you publish like any Joomla module, or
- a script tag that you paste into your template or a Custom HTML module.
Both use the global settings from the Chat Bubble screen. The module can override most of them.
Global settings
Click Chat Bubble in the sidebar.
| Setting | What it does |
|---|---|
| Enable Chat Bubble | Turns on the script tag. A published module shows its bubble even when this is off. |
| Chat Room | The room the popup opens. You can choose any active room. Without a room, the first active visible room is used. |
| Position | Bottom Right or Bottom Left |
| Bubble Color | The colour of the button and the popup header, #1da1f5 by default |
| Popup Width and Popup Height | The popup size in pixels, 400 by 600 by default |
| Bubble Icon | A Font Awesome class for the icon, for example fas fa-comments |
| Bubble Label | An optional text next to the icon, for example "Chat with us" |
| Popup Header | What the popup header says: Site Name, Room Title or Custom Text |
| Custom Header Text | The header text when Popup Header is Custom Text |
| Show on Mobile | Show the bubble on phones or not |
| Guest Behavior | What visitors who are not logged in see when the room does not let them in, see below |
Click Update.
If the room is not visible to everyone, only members who already have access can use the bubble. Others see the room's normal login or access screen inside the popup.
The module
- Go to Content > Site Modules and click New.
- Choose Easy Chat Room - Chat Bubble.
- Set its options, or leave them on Use Global or empty to take the values from the Chat Bubble screen: Chat Room, Guest Behavior, Bubble Position, Popup Width (px) (300 to 800), Popup Height (px) (300 to 900), Bubble Color, Bubble Icon, Bubble Label, Popup Header, Custom Header Text and Show on Mobile.
- Choose a module position that exists on every page you want, for example one in the footer. The bubble floats in the corner wherever the position is.
- Set Menu Assignment to the pages where the bubble should show, and save.
With several bubble modules you can open a different room on different pages. The Chat Bubble screen lists the bubble modules of your site with their position.
The script tag
The Script Tag box at the bottom of the Chat Bubble screen holds a line like this:
<script src="https://www.example.com/index.php?option=com_easychatroom&route=widget-chat-bubble"></script>
Copy it into your template, before </body>, or into a Custom HTML module. It shows the bubble only while Enable Chat Bubble is Yes.
Guests
Visitors who are not logged in can chat in the bubble when guest mode is on and the room has Allow Public View on. Otherwise Guest Behavior decides:
| Option | What visitors see |
|---|---|
| Hide Bubble | No bubble |
| Redirect to Login | The bubble opens the Joomla login page. After logging in they come back. |
| Show Login Form | The bubble opens the chat login form in the popup, with the member and guest tabs |
| Show Disabled Bubble | A greyed-out bubble |
Microphone and camera
The popup may use the microphone and the camera, so voice notes and video calls work inside it too.