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-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
  #2  
Old 11-05-2008, 08:04 AM
Veronica Veronica is offline
Moderator
 
Join Date: Jan 2004
Location: Sweden
Posts: 7,069
Default Chat Link in MyBB 1.4 Navigation Bar

To add a Chat Link in the MyBB 1.4 Header Navigation Bar
Works for both FlashChat 4.7.12 and FlashChat 5.0.8


1. Use MyBB Admin CP

Click Templates & Styles in the Navigation Bar
Click Templates
Click Default Templates
Click Header Templates
Click Header

Add the FlashChat link:
<li><a href="{$mybb->settings['bburl']}/chat/flashchat.php" target="_blank"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_chat}</a></li>

giving this content:
PHP Code:
<div id="container">
        <
a name="top" id="top"></a>
        <
div id="header">
            <
div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
            <
div class="menu">
                <
ul>
                    <
li><a href="{$mybb->settings['bburl']}/chat/flashchat.php" target="_blank"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_chat}</a></li>
                    <
li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
                    <
li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
                    <
li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li>
                    <
li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
                </
ul>
            </
div>
            <
hr class="hidden" />
            <
div id="panel">
                {
$welcomeblock}
            </
div>
        </
div>
        <
hr class="hidden" />
        <
br class="clear" />
        <
div id="content">
            {
$pm_notice}
            {
$bannedwarning}
            {
$bbclosedwarning}
            {
$unreadreports}
            <
navigation>
            <
br /> 
Click Save

2. Use your FTP client to edit /MyBBforum/inc/languages/english/global.lang.php

Add: $l['toplinks_chat'] = "Chat";
giving this content:
PHP Code:
$l['toplinks_memberlist'] = "Member List";
$l['toplinks_chat'] = "Chat";
$l['toplinks_search'] = "Search";
$l['toplinks_calendar'] = "Calendar";
$l['toplinks_help'] = "Help"

Last edited by Veronica : 11-05-2008 at 08:37 AM.
Reply With Quote
  #3  
Old 11-05-2008, 08:34 AM
Veronica Veronica is offline
Moderator
 
Join Date: Jan 2004
Location: Sweden
Posts: 7,069
Default Who's in Chat Block for MyBB 1.4

To add a Who's in Chat block in the MyBB 1.4 Board Statistics
Works for both FlashChat 4.7.12 and FlashChat 5.0.8


1. Upload the attached script after unzipping to /MyBBforum/chat/whosinchat_mybb.php

2. Use your FTP Client to edit /MyBBforum/inc/languages/english/index.lang.php

Add:
$l['whosinchat'] = "Who's in Chat";
$l['whosinchattext'] = "{1} {2} in {3} {4}";
$l['online_room_plural'] = "rooms";
$l['online_room_singular'] = "room";

giving the content:
PHP Code:
$l['stats_mostonline'] = "The most users online at one time was {1} on {2} at {3}";
$l['whos_online'] = "Who's Online";
$l['whosinchat'] = "Who's in Chat";
$l['whosinchattext'] = "{1} {2} in {3} {4}";
$l['online_room_plural'] = "rooms";
$l['online_room_singular'] = "room";
$l['complete_list'] = "Complete List"
3. Use the MyBB 1.4 Admin CP

Click Templates & Styles in the Navigation Bar
Click Templates
Click Default Templates
Click Index Page Templates
Click index_whosonline

Add:
<tr>
<td class="tcat"><span class="smalltext"><strong>{$lang->whosinchat}</strong></span></td>
</tr>
<tr>
<td class="trow1"><span class="smalltext">{$lang->whosinchattext}<br />{$onlinechatmembers}</span></td>
</tr>
giving the contents:
PHP Code:
<tr>
<
td class="tcat"><span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></td>
</
tr>
<
tr>
<
td class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>
</
tr>
 
<
tr>
<
td class="tcat"><span class="smalltext"><strong>{$lang->whosinchat}</strong></span></td>
</
tr>
<
tr>
<
td class="trow1"><span class="smalltext">{$lang->whosinchattext}<br />{$onlinechatmembers}</span></td>
</
tr
Click Save

4. Use your FTP Client to edit /MyBBforum/index.php

Add: include_once('./chat/whosinchat_mybb.php');
giving the content:
PHP Code:
        eval("\$whosonline = \"".$templates->get("index_whosonline")."\";");
 
        include_once(
'./chat/whosinchat_mybb.php');
 
}
// Build the birthdays for to show on the index page. 
Attached Files
File Type: rar whosinchat_mybb.rar (1.3 KB, 0 views)

Last edited by Veronica : 11-05-2008 at 09:08 AM.
Reply With Quote
  #4  
Old 11-05-2008, 10:51 AM
palkat palkat is offline
Junior Member
 
Join Date: Jan 2007
Posts: 5
Default

THANK YOU!!!! Way better than the php work around i wrote!!!!

Yours works great with all themes!!!! AWESOME!

Good fast response too! KEEP IT UP!
Reply With Quote
  #5  
Old 11-17-2008, 03:43 PM
laie_techie laie_techie is offline
Junior Member
 
Join Date: Apr 2005
Posts: 26
Default Plugin?

Veronica, as usual, you have done a great job. My one suggestion is to turn the "Who's in Chat" block into a plugin.
Reply With Quote
  #6  
Old 11-28-2008, 09:13 PM
texas_angel texas_angel is offline
Junior Member
 
Join Date: Nov 2008
Posts: 1
Default

Thank you so much for this Veronica!
Reply With Quote
  #7  
Old 01-30-2009, 12:56 PM
mcgyver210 mcgyver210 is offline
Junior Member
 
Join Date: Jan 2009
Posts: 9
Default

Veronicas first of all Thanks for this helpful post.

I have successfully used this on two forums one Live & one is a test forum.

I tried it on my main forum & all went well accept it doesn't automatically login the user when I click the chat button it just goes to a login screen where I can use my forums User Name & Password. I have uninstalled the FlashChat completely & tried reinstalling with same results.

Did I do something wrong & if so is this fixable I can't figure out why two went well & the third just doesn't auto login.

Thanks Again because either way it is working with intergration just wont auto login.
Reply With Quote
  #8  
Old 01-30-2009, 01:03 PM
Veronica Veronica is offline
Moderator
 
Join Date: Jan 2004
Location: Sweden
Posts: 7,069
Default

Autologin is based on the MyBB cookies
are there any cookie differences between your installations
Reply With Quote
  #9  
Old 01-30-2009, 02:00 PM
mcgyver210 mcgyver210 is offline
Junior Member
 
Join Date: Jan 2009
Posts: 9
Default

Quote:
Originally Posted by Veronica View Post
Autologin is based on the MyBB cookies
are there any cookie differences between your installations
Veronica Thanks I checked the settings & noticed the only thing that I had different from the other two installations was I had set a prefix for the cookies in the board not working correctly.

I deleted the prefix & all is fine now including the issue I was having with the admin panel not accepting my password.


I chose to use the stable 4.7.12 since everyone said it has less bugs. I will be paying for this if nothing else just to support its future development.

When I pay will I have access to a different 5.0 install since I have read that the one I have is Beta with lots of bugs?

Thanks Again for your help!!!
Reply With Quote
  #10  
Old 01-30-2009, 02:07 PM
Veronica Veronica is offline
Moderator
 
Join Date: Jan 2004
Location: Sweden
Posts: 7,069
Default

Thanks for the feedback

No paid and free FlashChat version 5 are the same beta
Paid version you also get Flash sources
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 09:15 AM.


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