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.)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-04-2008, 05:17 AM
Veronica Veronica is offline
Moderator
 
Join Date: Jan 2004
Location: Sweden
Posts: 7,069
Default Update for MyBB 1.4 integrations

I have made a fix in the FlashChat integration script for the new MyBB version 1.4 released August 02, 2008

http://www.mybboard.net/features/feature-tour

Code fix has been tested for both old MyBB 1.2.14 and the new MyBB 1.4 and FlashChat 5.0.3
but should also work for the older and more reliable FlashChat version 4

I don't give you a downloadable file this time as there are some differences between FlashChat version 4 and 5 CMS scripts
I made a new thread about this fix at the MyBB Forum to: http://community.mybboard.net/thread...html#pid233154


Replace in /chat/inc/cmses/MyBBCMS.php this code

PHP Code:
$GLOBALS['fc_config']['db'] = array(
                 
'host' => $config['hostname'],
                 
'user' => $config['username'],
                 
'pass' => $config['password'],
                 
'base' => $config['database'],
                 
'pref' => $config['table_prefix'] . "fc_",
                 );
$GLOBALS['db_prefix'] = $config['table_prefix']; 
with this code

PHP Code:
if(is_array($config['database'])) $MyBB_config $config['database']; else $MyBB_config $config;
$GLOBALS['fc_config']['db'] = array(
                 
'host' => $MyBB_config['hostname'],
                 
'user' => $MyBB_config['username'],
                 
'pass' => $MyBB_config['password'],
                 
'base' => $MyBB_config['database'],
                 
'pref' => $MyBB_config['table_prefix'] . "fc_",
                 );
$GLOBALS['db_prefix'] = $MyBB_config['table_prefix']; 

Last edited by Veronica : 08-04-2008 at 05:40 AM.
Reply With Quote
 


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 09:15 AM.


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