Ajax chat is an impressive feature that will get your users interacting on a live basis and keep them coming back for more. Installing Ajax Chat for BuddyPress might be a bit intimidating since it involves several extra steps, unlike most BuddyPress plugins. I’m going to simplify the process for you so that you can get ajax chat up and running quickly and efficiently for your users.
1. Download the plugin from the repository.
Attempting to install through the dashboard will put the directory in the wrong place.
2. Unpack the plugin and upload the /bp-chat directory to your plugins folder.
Do not activate it yet. It must be configured before activation.
3. Configure the plugin by editing the config.php file.
Locate the file at wp-content/plugins/bp-chat/chat/lib/config.php and configure the following 4 variables:
$config['dbConnection']['host'] = 'your_chat_database_hostname'; $config['dbConnection']['user'] = 'your_chat_database_username'; $config['dbConnection']['pass'] = 'your_chat_database_password'; $config['dbConnection']['name'] = 'your_chat_database_name';
Additional Languages: If you want configure chat for languages other than English, scroll down further and update the default language section. This example is for French:
$config['langDefault'] = 'fr';
Note: Ordinarily you won’t have to do any more configurations beyond this point. However, if you get errors you will have to follow optional Step 3.
3. Optional: In the event that your host does not use mysqli you will need to change the connection type field:
$config['dbConnection']['type'] = null;
4. Create the database tables by executing the installation script:
Navigate to: http://yourdomain.com/path/to/chat/install.php
5. Delete the installation script.
Delete the file install.php from the /wp-content/plugins/bp-chat/chat/ directory on your server.
6. You will need to configure the following parameters for custom low level database access:
Locate: /wp-content/plugins/bp-chat/chat/lib/class/CustomAJAXChat.php
$this->bp_config['username'] = "database_user_name"; $this->bp_config['password'] = "database_password"; $this->bp_config['database'] = "database_name"; $this->bp_config['bp_group_table'] = "wp_bp_groups"; // normally do not change $this->bp_config['wp_users_table'] = "wp_users"; // normally do not change $this->bp_config['bp_groups_members'] = "wp_bp_groups_members"; // normally do not change $this->bp_config['db'] = "yourdomain.com"; // put your site domain name
7. Last step is to finally Activate the plugin.
Congratulations! You’ve successfully installed ajax chat for your users!
You can remove the adsense code by donating $5 to the plugin developer here: Buddypress Ajax Chat No Adsense






Are there any demo sites that have this up and running?
Has anyone tested the server load of this addon?
And what about privacy issues?
I would like to use something like this, but if it drags down my server it wouldn’t be worth it.
How is the information stored and deleted? User have a right to know.
I like the idea of it plugging into the bpress toolbar and telling you of a new message – that is awesome! I wish someone could integrate RealChat program like this!
Hey – thanks for trying to simplify it… although for step 3 I am confused as to whether I need to create a new database for the chat plug-in, or whether it can use the WP-MU & Buddypress DB..?
This plugin does not work with BP 1.2
Give the developer time to get it updated ;) 1.2 just came out.
Pingback: Segue os novos plugins que estamos testa… « Blog de Desenvolvimento