Fairweb

Développement WordPress, WordPress Mu, BuddyPress

bp-chat

Install a chat for BuddyPress with BuddyPress-Ajax-Chat

| 1 Comment

bp-chatThe BuddyPress-Ajax-Chat plugin installs a chat on your BuddyPress social network. Setting it up is not as complicated as it looks like. Just follow the developer’s instructions.

  • Donwload the plugin. Do not try to install it automatically from the back-end as it will not be placed in the right directory.
  • Unzip the archive, you will get a buddypress-ajax-chat directory which contains :
    BP chat archive
  • Put the bp-chat dans wp-content/plugins. Do not activate it yet.
  • Open /wp-content/plugins/bp-chat/chat/lib/config.php and give the suitable values :
    // Database hostname, generally localhost but depends on your host :
    $config['dbConnection']['host'] = 'localhost';
    // Database username:
    $config['dbConnection']['user'] = 'database_user_name';
    // Database password:
    $config['dbConnection']['pass'] = 'database_password';
    // Database name:
    $config['dbConnection']['name'] = 'database_name';

    and if you want the chat in your language, let’s say german, go a little bit further down and :

    $config['langDefault'] = 'de';
  • Launch the following script in your browser to install database tables : http://my_site_name.com/wp-content/plugins/bp-chat/chat/install.php
  • Delete install.php file in folder /wp-content/plugins/bp-chat/chat/
  • Open /wp-content/plugins/bp-chat/chat/lib/class/CustomAJAXChat.php file and give suitable values (around line 45) :
    $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'] = "monsite.com"; // put your site domain name
  • Log-in to your back-end and activate the BuddyPress Chat component plugin sitewide.

The chat menu appears.

menu chat

Once in the chat, you can choose which channel you want to join in. The channels’ names will be the BuddyPress groups’ names.

Fenêtre de chat

Share

Author: Fairweb

Développement php/mysql, conception de sites internet

One Comment

Leave a Reply

Required fields are marked *.

*