AddChat's one of the most awaited features. AddChat automatically detects the website's User-Groups. Admin can set permissions for the groups from AddChat Admin-panel. Like, which group can chat with which.
{success} AddChat supports multiple user groups e.g a user can belong to multiple groups.
User-groups option is by default disabled
. You can enable
it from AddChat config application/config/addchat.php
. And to enable User-groups option, the website must meet the following requirements.
Groups
or Roles
table.
Pivot table for Users
& Groups
or Roles
table, which contains sets of User Id
and Group Id
or Role Id
.
{primary} We've developed the Group system according to most common & standard User Groups/Roles functionality.
After completing the above requirements, the Groups can be enabled
by following steps-
application/config/addchat.php
and scroll to User Groups Table
section.groups/roles
and user_groups/user_roles
pivot table & their column names.{primary} Read the configurations for more info - User Groups Configurations
{danger} All the above form fields are required to
enable
Group functionality.
Once after setting up Groups configuration successfully, you'll see all your website Groups
in the Admin Panel -> Chat Groups
and there you can set the permissions that which groups can chat with which group.
Follow these baby steps to set group permissions
On the Admin Panel
, go to Chat Groups
Click on
A Popup will open, simply check the checkbox with which groups, the e.g Members group can chat.
Click on
{primary} Admin Group users can chat with everyone (zero restrictions).
Once everything is done, when the users click on the AddChat widget User Groups
tab, they'll see all the Groups
according to the Groups Permissions
.
And also when the user clicks on each Group
, they'll see all the Users
in the Group
and can chat with them.
{success} This is also useful when a new user joins your website and wants to chat with any other user.