coder1.com

  • home
  • drupal articles
  • contact
Home

Drupal ParaChat Module

Mike Milano — September 9, 2008 - 4:04pm

:: 2008-09-25 update: i've fixed a lot of things since the .0 releases, so make sure you're using the nightly snapshots for the latest code ::

The ParaChat Drupal module embeds a ParaChat applet in your site and automatically logs in users with their Drupal username. There is access control so you can setup which roles you would like to be able to join the chat room. For added security, you can configure ParaChat to validate users from the ParaChat server before allowing them to join.

Parachat Applet

ParaChat is a great little managed chat solution with several different levels of service you can subscribe to, from free, to pretty expensive. Between free and $20+/mo you can get features from basic chat, to full audio/video streaming support.

Once you sign up for an account, you will be given access to the ParaChat control panel where you could probably spend more time than you want messing with configurations. ParaChat offers a way to validate users against an external database (Drupal) and this article will guide you through that setup.

There's 2 different control panels we will be dealing with here. The Drupal ParaChat Settings and the ParaChat Control Panel. The ParaChat Control Panel refers to the chat administration area sent to you by Parachat when you sign up.

ParaChat Control Panel

In your ParaChat Control Panel, the first thing you will want to do is go to Site Wide Limits and set Require Valid user name and Password to Enabled.

Site Wide Limits

The next thing to do is set the ParaChat applet to make a request to your Drupal site to verify the user is valid. Click Users and Databases -> External Database Connection

1. Set Use HTTP User Authentication to Enabled

2. URL of Web Authentication should be http://example.com/chat/auth if clean urls is enable. If not, it should look something like this: http://example.com/?q=chat/auth&

MAKE SURE YOU HAVE THE '&' AT THE END IF YOU'RE NOT USING CLEAN URLS!

When ParaChat sends the request to your server for authentication, it will just tack on ?user=foo&... That will screw up your URL, so you must put a & at the end of the query string if you are not using clean URLs.

External DB Connection

Drupal ParaChat Settings

Make sure the Parachat module is enabled, then navigate to Administer -> Site Configuration -> ParaChat Settings.

Drupal ParaChat Settings

The Site Administration Page parameter should be the full URL sent to you by Parachat. The module does not login for you, but uses this URL to find the Server ID. ParaChat doesn't send you this ID separately, so I thought I would just make it read it from the URL that they do send you.

The Site ID is another piece of info that ParaChat sends you.

Make sure your Default Room is valid. I believe the only room new ParaChat accounts come with is Lobby. If this room doesn't exist, your chat applet will generate an error.

Next, set External DB Authentication to enabled. This will embed a hash that represents the user. This is what ParaChat will use as the password to send back to Drupal when it validates the user. Only enable this if you are using External DB with ParaChat.

Please report any issues with the project over on the project page. If you have any comments, leave them here or there.

  • Drupal
  • Modules
  • Parachat

Hi Mike, I have integrated

Barry (not verified) — June 8, 2010 - 12:01pm

Hi Mike,

I have integrated ParaChat into my Drupal website and I really like the features it has and the experience that it creates for our users. I have run into a couple of limitations that I thought I might mention to you:

1) I have been unsuccessful in using the javascript preview pane on our home page. What I had hoped I would be able to do is simply paste the applet code into a Drupal block and place the block on the home page. However, no matter what I try this always produces a login error U825 (I'm trying to use auto login).

2) We are using the Drupal Module called RealName to display users' actual names rather than their UserName. I can't figure out how to get ParaChat to recognize these real names.

3) Rather than uploading an avatar library to ParaChat, I would prefer if ParaChat would simply pick-up the avatars that our users have already added to their Drupal User Profile.

Don't know if you have any solutions to these issues, but if you do I would be most appreciative!

Cheers,
Barry

  • reply

There's no free service now

Anonymous (not verified) — May 14, 2010 - 3:14am

There's no free service now

  • reply

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <img> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h3> <h4> <h5> <h6> <h7>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].

More information about formatting options

Poll

Have you checked out Drupal 7 yet? (still alpha):

User login

  • Request new password

Navigation

  • Recent posts
  • home
  • drupal articles
  • contact