Skip to content

Chat2 Plugin

Daniel Neto edited this page Oct 7, 2026 · 26 revisions

Chat2 plugin

The Chat2 plugin adds a chat to live streams, channel pages and video pages. Viewers can also send private messages to each other. Chat owners and moderators can run polls, ban users and allow or block image attachments.

Chat2 is a paid add-on, available from the AVideo plugin marketplace.

Before you start

  • Enable the YPTSocket plugin and make sure its server is running. With it, messages arrive instantly. Without it, the chat only checks for new messages from time to time and feels slow.
  • Voice and video calls between users also need YPTSocket, with calls enabled in both plugins.
  • The Ban From Site action in the chat needs the paid User_Controll plugin.

Enable it

  1. Go to Admin Panel → Plugins and find Chat2. If the row shows Install tables, click it first.
  2. Turn on the switch.
  3. Click Edit parameters to choose where the chat appears.
Option (label) Default What it does
Show on Live Streams on Chat on live pages
Show on Channel Pages on Chat on user channel pages
Show on Video Pages on Chat on video pages
Show on Embedded Videos off Chat when a video is embedded on another site
Show on Mobile Devices on Chat on phones and tablets
Start Minimized / Start Minimized on Mobile off The chat opens closed
Show Chat Only for Logged Users off Visitors who are not signed in do not see the chat
Separate Chat per Lives on Each live stream gets a new, empty chat. Turn off to keep one chat per channel.
Allow Direct Messages on Users can send private messages to each other
Enable Voice/Video Calls on Users can call each other (needs YPTSocket)
Disable Multiple Chat Rooms off Removes the More Chat Rooms option from the chat menu
Disable Chat Sounds off No sound for new messages

The Chat2 row in Admin Panel → Plugins also has these buttons: Chat Rooms (list of rooms), Manage Attachments and API.

Chat menu for owners and moderators

The channel owner, the chat moderators and administrators see extra actions in the chat menu (the ⋮ button at the top of the chat), under Channel Admin:

  • Show Super Chats Only
  • Poll Opinions (see below)
  • Moderators: choose users who can moderate your chat
  • Ban From Chat / Remove Ban From Chat, and Manage Bans
  • Clear Chat
  • Allow Attachments: allow or block images in your room
  • Embed Codes and Links: copy the code or link to show the chat on another page

Create a poll

  1. Open the chat menu (⋮) and select Poll Opinions.
  2. Fill in Poll Question and at least two Poll Options. Click Add Option for more answers. You can drag the answers to change their order.

Poll form

  1. Click Create Poll, then open the My Polls tab.
  2. Click the green Add to Chat Room button next to the poll. The poll appears in the chat and viewers vote in real time.

Poll in the chat

Add to Chat Room button

Ignore a user

Any signed-in viewer can hide the messages of another user:

  1. Move the mouse over one of that user's messages and click the Ignore User button.
  2. Their messages are hidden and replaced by "name ignored".
  3. To show them again, click Unignore User on one of the hidden messages.

This only affects your own view. Other people still see the messages.

Ignoring and unignoring a user

Donations in the chat

  • A green Donate button appears at the top of the chat when the channel owner has set a donation link. Donation links are turned on with the allowDonationLink option of the CustomizeUser plugin.
  • When a viewer donates from their wallet, Chat2 posts the donation in the chat. See Donation from wallet.

Image attachments

Users can send JPG, JPEG, GIF and PNG images in the chat.

Site settings

In Admin Panel → Plugins → Chat2 → Edit parameters:

  • Disable Attachments Globally: no attachments anywhere.
  • maxUploadFilesize: largest image allowed, in MB (default 2 MB).
  • Use User Groups for Attachments: when off (default), every signed-in user can attach images in rooms that allow it. When on, only user groups with the Can attach files permission can.
  • No Attachment Permission Message: the text shown to users who are not allowed.

Attachment settings

Allow a user group to attach images

This needs Use User Groups for Attachments on and the Permissions plugin enabled.

  1. Go to Admin Panel → Contents → Users Groups.
  2. Create or edit a group.
  3. Tick Can attach files (shown with a Chat2 button) and save.
  4. Add the users to that group.

Can attach files permission

Administrators and the owner of a room can always attach images in that room.

Allow or block images in your room

Room owners open the chat menu (⋮) and use the Allow Attachments checkbox.

Allow Attachments checkbox

Delete a user's images

  • In your room: move the mouse over a message from that user and click the paperclip button (Delete User Attachments in this Chat). This removes all of that user's images from your room.

Delete attachments in a room

  • Everywhere (administrators): in Admin Panel → Plugins, click Manage Attachments on the Chat2 row, choose the user and click Delete ALL Attachments. This removes all of that user's images from every chat and cannot be undone.

Delete all attachments of a user

Problems

Message or problem What to do
Messages appear late Enable YPTSocket and check that the socket server is running.
"You don't have permission to attach files" Add the user to a group with Can attach files, or turn off Use User Groups for Attachments.
"Attachments disabled for this chat room" The room owner must tick Allow Attachments.
"Attachment disabled globally" Turn off Disable Attachments Globally.
"File size exceeds the maximum allowed limit" Use a smaller image or raise maxUploadFilesize.
"File extension error" Only JPG, JPEG, GIF and PNG are accepted.

Clone this wiki locally