WP_w3all WordPress Ajax Chat

phpBB mChat wordpress integration is here:

https://www.axew3.com/w3/2019/01/wordpress-phpbb-mchat-integration/

WP_w3all Ajax Chat integration

Please, READ ALL this carefully, before to switch more below, and install WP_w3all Ajax Chat.

This install procedure, will bring you an integrated fully featured Ajax Chat into your WordPress. That do not go to overload your WordPress database.

BEFORE you install this plugin, READ almost ONE TIME ALL THIS PROCEDURE STEP BY STEP.

See an online example here: WP_w3all WordPress Ajax Chat example

It is easy and light: you can change features, permissions, default Chat template css/html, Channels, and more, really numerous, options.  It is necessary to install the WP_w3all Ajax Chat Standalone (w3all modified version) into your WordPress root, and setup the WP_w3all Ajax Chat plugin config page on WP admin.

Follow READ ALL and you’ll be up and running in few minutes.

It is required to know how to use an ftp and a text editor to install the Ajax Chat Standalone into your server. It is also STRONGLY recommended that you dedicate a separate database for this install. Read more below important note ‘why’ about this.

Why? To uninstall, and cleanup all, once you decide to do so, will be only necessary to Deactivate and Uninstall the WP_w3all Ajax Chat plugin in WP admin, delete the Chat folder from WP root (where you’ll install the Standalone Ajax Chat), and delete or empty the Database you had dedicate to it. Do not fill your WordPress database of not useful Chat datas, like many other plugin about like to do. Maintain it fresh and light!

BEWARE that when you’ll uninstall the Wp_w3all plugin, it will remove ONLY his unique (1 single) record into WP database.

So if you install the Ajax Chat using as database, the same database where WordPress is installed, you’ll need to remove manually (maybe via phpMyAdmin) the four (4) tables that the Ajax Chat Standalone installation will create, which are:
ajax_chat_bans,
ajax_chat_invitations,
ajax_chat_messages,
ajax_chat_online

NOTE IMPORTANT: if the Ajax Chat will be used intensively by many users, the server will be may overloaded with the traffic of both WordPress and Ajax Chat if DB tables of both resides on same database. Consider this important aspect, and choose to install into a separated database. If your site is a thousand users site with very high traffic, you’ll have to choose this option, and also maybe a dedicated/separated Database Server for the Ajax Chat Standalone database install.

HOW TO INSTALL

Install the WP_w3all Ajax Chat plugin, from WordPress admin searching for it on WordPress plugins repository, or downloading it from WordPress repository.

After the plugin installation, inside the plugin folder

wp-content/plugins/wp-w3all-ajax-chat

you’ll find a folder named chat:  move/paste it (the entire folder chat) into your WordPress root folder, so you’ll have:

http://yourwordpress/chat

Install Ajax Chat Standalone step:

With text editor open: wp-root/chat/lib/config.php
Search very near the top of file, for line about Database connection

// Database connection values:

setup Database connection values as needed, and if possible, as more above explained, it is recommended, that you choose to install it into a separated Database at minimum (different Server also is maybe needed if your site is very big, with thousand of users).
The install will create 4 tables into the database.

RENAME the file wp-root/chat/install.php.off into install.php.

Install the chat now. Point your browser to:
http://wp-root/chat/install.php
After the Ajax Chat install step has been executed, rename the install.php file into something else like install.php.off, to disable any possible further call to this file, or remove it. Beware this is a very important security point.

Ajax Chat Standalone modified version has been installed.

Now open file:

http://yoursite.com/chat/lib/class/AJAXChat.php

at very top start, you find this code, where is necessary to insert correct values to connect to the WordPress database:

Setup values as on your WorPress root wp-config.php and save file.

Open WP admin -> Settings -> WP w3all Ajax Chat

Activate Ajax Chat in WordPress, select which Groups are allowed to use it and Chat Popup dimension.

Done.

Guest Access Deny/Allow

To enable or disable Guest access to the Chat, activate the related option, to display the button. After this, you need to adjust a setting by opening yourWP/chat/lib/config.php file.

change into:

As default the setting is setup to true (allow Guest access to the chat).

So, if you want to completely Deny Guest access to Chat, you do not only need to deactivate the Button option for Guests on WP w3all Chat Ajax Settings, but also setup the above value into yourWP/chat/lib/config.php file to false, or Guests will have the ability by the way to access the Ajax Chat, by pointing to his absolute URL (where you can see the full chat) http://yourWP/chat/
see example here: https://www.originalgangster.eu/www/chat/

For any change done into the yourWP/chat/lib/config.php file, except the option above about Guests Chat login and the Database connection configuration values, you should know what you’re doing changing these settings. There are very simple and easy settings, but also more advanced. There are really many options that leads to different behaviors, so you’ll have different results if you enable/disable or change values into the yourWP/chat/lib/config.php file.

Advanced options are also available into the file yourWP/chat/js/config.js to adjust template interface, chat buttons, server settings, and more advanced settings.

For any question use the axew3.com WP_W3all Chat forum or the WordPress plugin forum.