=== Zetboo Chat ===
Contributors: thierrypetitain
Tags: chat, chat room, live chat, community, webcam
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed a Zetboo chat room in your site: your visitors chat together without leaving your pages.

== Description ==

Zetboo Chat shows a [Zetboo](https://zetboo.com) chat room inside your pages, with a block or a shortcode.

Your visitors create a free account (or log in) directly in the room, then chat without leaving your site. The room adapts itself to phones and computers.

**Features**

* "Zetboo Chat" block for the block editor, and a `[zetboo]` shortcode.
* Create your Zetboo account and your room from WordPress, in a small Zetboo window (your password stays with Zetboo).
* Checks that your room exists on Zetboo (and tells you if it is private).
* Five themes: automatic, light, dark, night blue, anthracite.
* Choose what is shown: room description, share icon, webcams, YouTube live, radio, profile and language buttons.
* Width in pixels or 100%, height of your choice.
* Private rooms: visitors are asked for the room password after logging in.
* Multilingual: the room uses your site's language when Zetboo supports it (14 languages).

**About Zetboo**

Zetboo is a free, multilingual chat service with public rooms, moderation and message reporting. To protect minors, the service is reserved for people aged 18 and over. Sexual content is not allowed.

== External services ==

This plugin connects to the Zetboo chat service (https://zetboo.com), which provides the chat room. The plugin itself stores no chat data.

* **The chat room (iframe):** on the pages where you place the block or the shortcode, your visitors' browsers load the room from `https://zetboo.com/integrer/<room>`. When a visitor creates an account or logs in, their username, e-mail address, messages and (only if they turn it on) webcam and microphone are handled by Zetboo, not by your site.
* **Account and room window:** the "Create my Zetboo room" button opens `https://zetboo.com/relier-wordpress` in a small window. Account creation, login and room settings happen on Zetboo; only the chosen room name and account name are sent back to your WordPress page.
* **Room check:** in the plugin settings page, your server asks `https://zetboo.com/fonctions/salon_info.php` whether the room exists. Only the room name is sent. The public answer (exists, private, description) is kept for 10 minutes.

Zetboo terms of service: https://zetboo.com/en/rules/
Zetboo privacy policy: https://zetboo.com/en/privacy/

== Installation ==

1. Install the plugin from the Plugins screen (or upload the `zetboo-chat` folder to `/wp-content/plugins/`), then activate it.
2. Go to **Settings → Zetboo Chat** and click **Create my Zetboo room**: create your account (or log in) and your room in the Zetboo window. You can also type the name of an existing room.
3. Add the **Zetboo Chat** block to a page, or paste `[zetboo]` in any page, post or widget.

You do not have a room yet? Create one for free on https://zetboo.com, then type its name in the settings.

== Frequently Asked Questions ==

= Do my visitors need an account? =

Yes, a free Zetboo account. They create it (or log in) directly in the room, without leaving your site. The first time on a new device, Zetboo may send them a code by e-mail.

= Can I show another room on one page? =

Yes: `[zetboo salon="other-room"]`. You can also set `theme`, `largeur` (width) and `hauteur` (height), for example `[zetboo salon="brasil" theme="nuit" hauteur="500"]`.

= The webcam does not start. =

The plugin already gives the room permission to use the camera. Some browsers still ask the visitor to allow it: they must click "Allow".

= Does the plugin slow down my site? =

No. The room loads only when the visitor reaches it (lazy loading), and all the chat runs on Zetboo's servers.

== Screenshots ==

1. The room in a page, computer layout.
2. The room on a phone.
3. The settings page with the room check.

== Changelog ==

= 1.1.4 =
* The room is centered by default; block alignment left / center / right / wide / full.
* Block: "Additional CSS class(es)" and "Additional CSS" now apply to the room.

= 1.1.3 =
* Block: width slider under the height, and a "Whole width" switch.

= 1.1.2 =
* Block: width setting.

= 1.1.1 =
* Block: "Wide width" and "Full width" buttons.

= 1.1.0 =
* Create your Zetboo account and room from the settings page (Zetboo window).

= 1.0.0 =
* First version: block, shortcode, settings page, room check, themes and display options.
