Hey all.

I've got the excellent FlashChat from www.tufat.com but is there really no intergration with Drupal available? It comes with an integration installer but Drupal is not on the list. Joomla, Moodle, PHP-Nuke, GeekLog, etc. are on the list, though.

Best regards,
Rasmusam

Comments

rasmusam’s picture

I should say that FlashChat uses the same encrytption and user table structure. Can anyone help me or point me in the right direction, please?

sami_k’s picture

Sorry it's difficult for us to support non-opensource projects as we can't get our hands on the code without paying up. You should contact the developer who's charging money for it to go ahead and integrate it with drupal.

--
Please read the handbook, search the forums, then ask...
http://drupal.etopian.net (Drupal Support) | http://www.drupalshowcase.com

mm167’s picture

why use FlashChat?

video chat?
p2p?

there's already a simple chat module in Drupal.

russgri@civicspacelabs.org’s picture

Put in a request to Darren at Tufat and you can probably get him to integrate that with Drupal.
I am doing that for other software. If there are enough requests....and a $25 dollar donation will do wonders...or tell him you will buy some of his bundles...I have 3 bundles already...good scripts.

ajeancharles’s picture

User Table Integration

  • 1) The first step is to install FlashChat standalone, but in the same database as Drupal's
  • 2) Then when you get to make the choice of user table, use Drupal's "user" table
  • 3) Assign the field user."uid" to uid
  • 4) Assign user."name" to user name
  • 5) Assign user."password" to password
  • 6) Specify md5 as encryption method

That's it you shoud be able to login using the same user name and password as Drupal

the problem with autologin has to do with the MD5 encryption

If you can launch the following url from Drupal
"http://yourdomain/{chat path}/flashchat.php?username=&password=&lang=en"

Using your drupal username and password, you will be taken directly to inside the default chatting room_flashchat code will md5 encrypt the password and check against the encrypted password in the database

  • 1) one possible solution is to have a piece of code that in Drupal that decode the md5 encrypted password and pass that to flashchat url above
  • 2) Second possible solution is to have a drupal module that captured the non-encrypted password at login time and give the password in the url above
  • 3) Third possible solution is to change the code in the flash/swf file so that we can get Drupal to pass the uid and the valid session id to the swf file and get the swf to check database that uid and session id are valid. If the "session id" and "uid" match let the flash chat session begin!

I am still new to Drupal, if someone wants to help with this I will be glad to work with that person. I have also suggested this approach to Daren (Tufat) via email. If he is Ok with it, I would help make the changes with the help of someone with more experience in Drupal then I am!

budda’s picture

I've got integration of FlashChat and Drupal accounts here. It's a bit messy but if there's some interest in sponsoring it I can clean it up and release it?

--
Ixis (UK) providing Drupal consultancy and Drupal theme design.

originalucifer’s picture

I've been attempting to integrate flashchat into drupal using the drupal CMS addin for flashchat, http://www.tufat.com/resources/resource_779.zip , but I'm getting a realpath error on install (step2).

I'd like to take stab at using your code.

I'm running apache+php on win2kserver if anyone has any idea on how to fix the path issue, i think i've tried just about every pathing structure i can think of. At this point i'd settle for a flashchat that just uses the drupal user table.

jjlowe’s picture

What will it take to sponsor the FlashChat Integration with Drupal?
John

permutations’s picture

I have phpFreeChat running successfully inside Drupal (I'm a co-maintainer for that module), but I was curious about FlashChat and tried it recently. I had to heavily edit the DrupalCMS.php file for it to find everything, but once I did that it installed. It's using the Drupal users table - though it makes the user log in twice, which isn't so good (and which phpFreeChat does not).

But the showstopper for me is that it takes over the entire screen, instead of embedding inside the Drupal window, as phpFreeChat does. I tried creating a page that loads FreeChat, but it still took over the browser window.

Is there a way to embed it visually within Drupal? I was able to do this in SMF, but ont Drupal.

permutations’s picture

I figured out how to do it - load it in an iframe! Let's say you installed FlashChat in a subdirectory of your Drupal root called "flashchat". Create a new page in Drupal with this code:

<?php

echo '<iframe width="100%" height="450" src="flashchat/flashchat.php"></iframe>';
	
?>

Easy!

Now I just need to figure out how to get it to accept the existing Drupal login state, instead of making everybody log in twice.

mm167’s picture

haha ..learn a new word from u ...Easy!

permutations’s picture

There's an updated Drupal-FlashChat integration package that solves the autologin problem, and also adds a nice "who's chatting block". You can download it from here:

http://forum.tufat.com/showthread.php?p=222947&posted=1#post222947

I had to tweak it slightly. I added a comment to the thread that explains how.

Sophia’s picture

Another great discussion and a module: http://forum.tufat.com/showthread.php?t=50869
I hope Veronica will add the module to the Drupal projects page soon!