Go Back   $5 Script Archive Community Forum > FlashChat > Integrating FlashChat
Register Try FlashChat Try FlashBB Search Today's Posts Mark Forums Read

Integrating FlashChat Integrating FlashChat with your bulletin board or portal (vBulletin, phpBB, phpNuke, Mambo, etc.)

Reply
 
Thread Tools Display Modes
  #1  
Old 08-16-2008, 05:23 AM
Veronica Veronica is offline
Moderator
 
Join Date: Jan 2004
Location: Sweden
Posts: 7,074
Default Drupal 5.15 & 6.10 Integration Kit Version 1.2

I have updated the old outdated drupalCMS.php integration script for support of Drupal 5.8-5.15 and Drupal 6.3-6.10

Integration script tested with FlashChat 4.7.12 and FlashChat 5.0.4 - 5.0.10

New functions are:

Additional Administrator and Moderator support by using Drupal rid numbers
Configuration in the chat/inc/cmses/drupalCMS.php script lines:
PHP Code:
            var $administrators = array();        // set the Drupal rid numbers that are Admins in FlashChat example (3);
            
var $moderators = array();            // set the Drupal rid numbers that are Moderators in FlashChat example (4,5); 
Clear browser cache or open a new browser window before logging in to see the roles update

Support for Drupal photos in FlashChat PM's

Who's in chat block with Chat and Admin Panel links

Update:
August 19, 2008: drupalCMS.php updated for non-printable characters in Drupal database password
September 01, 2008: Drupal 5/6 modules updated with base_path() in href statements
September 02, 2008: Fixed one bug in autologin
September 08, 2008: Fixed more bugs in autologin.
September 10, 2008: Fixed autologin for any directory name for the /chat directory
September 11, 2008: Fixed autologin when Drupal is installed in web server root
September 25, 2008: Fixed Admin/Moderator links in the FlashChat module.
September 26, 2008: Fixed Admin/Moderator links in the FlashChat module when Drupal is installed in web root. Install by replace drupalCMS.php
December 27 2008: Fixed the Host database parameter with "rawurldecode", Thanks Sheryl

Update of FlashChat Drupal Kit to Version 1.1 January 02, 2009

Updates/Fixes to /chat/inc/cmses/drupalCMS.php:Updates/Fixes to the FlashChat Module:
  • Error message when chat folder not found. Link to FlashChat Parameter Configuration Page
  • Drupal Theme Embedded or Standalone FlashChat Page
  • Embedded Page size configuration (Height & Width)
  • New Browser Page/Tab or open in current Browser Page/Tab
  • Note: Page or Tab must be configured by the user in the Browser
Update January 19, 2009:
Autologin fix when Drupal installed in web root

Update of FlashChat Drupal Kit to Version 1.2 January 22, 2009

Updates/Fixes to /chat/inc/cmses/drupalCMS.php:
  • Fixed a bug in the cookie code for display of Admin/Moderator Panel links in the FlashChat Block Module
  • Fixed autologin when Drupal settings use another cookie domain
Updates/Fixes to the FlashChat Module:
  • FlashChat open embedded into Drupal Theme pages now works for role=user
  • New FlashChat Page/Tab browser open by default reuses already open browser Page/Tab both for Admin Panel and Chat window
  • FlashChat Who's in Chat Block detects any chat folder configuration error and give hints to Admin about solutions
Installation:

Download and extract attached rar file FlashChatDrupalKit12.rar and replace current /chat/inc/cmses/drupalCMS.php before FlashChat installation, for updates only replace and no FlashChat reinstallation

Upload the files in the directory /modules/flashchat/ to either your Drupal 5 or Drupal 6 modules directory

Update your Drupal Module by the Administer function -> Site building -> Modules -> FlashChat -> disable/enable

Configuration of most of the FlashChat Module parameters within the Drupal Administer functions for Blocks and Modules

Note:

FlashChat Module will not verify latest version against the Drupal Module Site as the FlashChat Module is not registered with Drupal

The FlashChat Drupal integration does not support include/require statements in the /drupal/sites/default/settings.php
mainly because this will increase the server load as FlashChat integration is executed each 3rd second for all online users
Attached Files
File Type: rar FlashChatDrupalKit12.rar (13.2 KB, 0 views)

Last edited by Veronica : 02-27-2009 at 08:10 AM. Reason: Module version 1.2 and text updates
Reply With Quote
  #2  
Old 08-17-2008, 06:18 AM
tonino tonino is offline
Junior Member
 
Join Date: Aug 2008
Posts: 4
Default Thank you

Thank you, it works very nice with my Drupal 5.10
Reply With Quote
  #3  
Old 08-17-2008, 09:57 PM
islandoftoys islandoftoys is offline
Junior Member
 
Join Date: Aug 2008
Posts: 10
Unhappy

I added the Drupal CMS module. For some strange reason I'm getting this error on FlashChat install:

Could not connect to MySQL database - please check database settings
Access denied for user 'myusername'@'localhost' (using password: YES)


I substituted "myusername" for the real name, but other than that it's exactly the error I'm getting.

Any idea why? It looks like it pulls the relevant info from my Drupal install, but then it wont' read the DB... The module piece shows up in the Drupal mods listing though. Happy to see this work done. If only I could figure out why it's not connecting to the db...

Any clues?

EDIT: Using supported versions as stated by the OP

Last edited by islandoftoys : 08-17-2008 at 10:06 PM.
Reply With Quote
  #4  
Old 08-18-2008, 03:50 AM
Veronica Veronica is offline
Moderator
 
Join Date: Jan 2004
Location: Sweden
Posts: 7,074
Default

islandoftoys: Which version of Drupal and FlashChat ?

Last edited by Veronica : 08-18-2008 at 05:33 AM.
Reply With Quote
  #5  
Old 08-18-2008, 11:22 AM
islandoftoys islandoftoys is offline
Junior Member
 
Join Date: Aug 2008
Posts: 10
Default

Quote:
Originally Posted by Veronica View Post
islandoftoys: Which version of Drupal and FlashChat ?
5.9 and 5.0.4
__________________
ISLANDOFTOYS.COM
Reply With Quote
  #6  
Old 08-18-2008, 02:00 PM
tonino tonino is offline
Junior Member
 
Join Date: Aug 2008
Posts: 4
Default Problem with Drupal usernames

I had a problem with italian usernames (Drupal 5.10) for example : lillà
The à makes problems. On the Flashchat you see a mismatch of username without à, uid and other characters.
Reply With Quote
  #7  
Old 08-18-2008, 02:52 PM
Veronica Veronica is offline
Moderator
 
Join Date: Jan 2004
Location: Sweden
Posts: 7,074
Default

tonino:

Yes this is a very common problem in FlashChat for us from Europe and Asia
when the Forum users table is ISO-8859-x encoded
and FlashChat is operating in UTF-8 encodings
Reply With Quote
  #8  
Old 08-18-2008, 03:16 PM
Veronica Veronica is offline
Moderator
 
Join Date: Jan 2004
Location: Sweden
Posts: 7,074
Default

islandoftoys:

Have you made any changes to the Drupal configuration file?
/drupalForum/sites/default/settings.php

Either changing the contents/configuration setup
and/or using another directory location for your settings.php ?
Reply With Quote
  #9  
Old 08-18-2008, 07:04 PM
islandoftoys islandoftoys is offline
Junior Member
 
Join Date: Aug 2008
Posts: 10
Default

Quote:
Originally Posted by Veronica View Post
islandoftoys:

Have you made any changes to the Drupal configuration file?
/drupalForum/sites/default/settings.php

Either changing the contents/configuration setup
and/or using another directory location for your settings.php ?
No all is where it should be. No changes to settings.php. Drupal is working fine and I've not changed any file locations.

It's set up like: mysite/flashchat/ and mysite/sites/default/settings.php
__________________
ISLANDOFTOYS.COM

Last edited by islandoftoys : 08-18-2008 at 07:31 PM.
Reply With Quote
  #10  
Old 08-18-2008, 07:57 PM
islandoftoys islandoftoys is offline
Junior Member
 
Join Date: Aug 2008
Posts: 10
Default

Got it figured out. It's a problem with FlashChat not recognizing non-alphanumeric characters in the database password. Very strange. Anyway, it appears to work now. Thanks for the replies.
__________________
ISLANDOFTOYS.COM
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -7. The time now is 05:37 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) 1999-2007 TUFaT.com