Get Live User Interaction on Your BuddyPress Site With Ajax Chat

January 18, 2010  | 
6 Comments

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.

screenshot-2

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!

screenshot-3

You can remove the adsense code by donating $5 to the plugin developer here: Buddypress Ajax Chat No Adsense

Featured Plugin - Turn any WordPress page into a fully featured wiki!

To get a wiki up and running you used to need to install Mediawiki and toil away for days configuring it... not any more! This plugin gives you *all* the functionality you want from a wiki, in WordPress!!!
Find out more

Featured Plugin - Start your own Quora / StackOverflow / Yahoo Q&A site

It's now incredibly easy to start your own Q&A site using nothing more than WordPress - The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.
Find out more

Featured Plugin - Every great SEO tweak you need, in one snazzy bundle

Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more

Featured Plugin - Host sites, get paid, just like WordPress.com

If you've ever wondered how you could offer a paid site management and hosting service, then this is the plugin for you. Offer a freemium or paid service, for any niche you like, it's powered Edublogs.org to success already!
Find out more

Featured Plugin - Open an Online Store with MarketPress

Out of all the WordPress ecommerce plugins available, this has got to be the winner - easy to configure, powerful functionality, multiple gateways and more. A simply brilliant plugin!
Find out more

Featured Plugin - Start Your Own Powerful Membership Site

If you're thinking about starting a paid, or just private, membership site then this is truly the plugin you've been looking for. Easy to use, massively configurable and ready to go out of the box!
Find out more

Featured Plugin - WordPress + Google Maps = Perfect

Simply insert google maps into posts, sidebars and pages - show directions, streetview, provide image overlays and do it all from a simple button and comprehensive widget.
Find out more

Featured Plugin - Add bottom corner (or anywhere else) chat to your site

No javascript required, no third part chat engine, just fully featured chat right in your own database on your own WP sites - couldn't be easier.
Find out more

Featured Plugin - Easily integrate your WordPress site with Facebook

Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!
Find out more

6 Responses to Get Live User Interaction on Your BuddyPress Site With Ajax Chat

  1. Are there any demo sites that have this up and running?

  2. 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!

  3. 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..?

  4. This plugin does not work with BP 1.2

  5. Give the developer time to get it updated ;) 1.2 just came out.

  6. Pingback: Segue os novos plugins que estamos testa… « Blog de Desenvolvimento

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting