Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Tyrsson on January 05, 2007, 03:44:53 AM

Title: FlashChat Integration
Post by: Tyrsson on January 05, 2007, 03:44:53 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=611) | Rate this Mod (http://custom.simplemachines.org/mods/index.php?action=review;sa=add;mod=611) | Puchase FlashChat (http://www.tufat.com/s_flash_chat_chatroom.htm)
FlashChat Integration

Version 1.0 released! Note that if you had version 0.1 installed, you will NEED to uninstall it before installing the new version!

This mod will seamlessly integrate FlashChat into your SMF installation. It adds a 'Chat' link to the top menu, and users that are logged in to the chat appear under Users Online as "Users currently in chat" (and optionally at the top of the forum). This mod also fixes a small bug in FlashChat :)

Screenshots of it in action
The main chat window (click for larger view):
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dansoftaustralia.net%2Fimages%2Fscreenshots%2Fsmfmods%2Fflashchat_main-thumb.jpg&hash=cd7ce5e776115bea578cdb23f5969fd299f95295) (http://www.dansoftaustralia.net/images/screenshots/smfmods/flashchat_main.jpg)


Settings:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dansoftaustralia.net%2Fimages%2Fscreenshots%2Fsmfmods%2Fflashchat_settings.png&hash=0ff020d3b36b373f4b1055bbf017173f6f35d121)


"Users Online" display:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dansoftaustralia.net%2Fimages%2Fscreenshots%2Fsmfmods%2Fflashchat_users-online.png&hash=e6fc2e5c99a4153e293ada7f17d4c58b3396b6d6)



Prerequisites
You must have already purchased and installed FlashChat into the chat directory (as per the instructions for integrating with SMF), and it must be working. Also note that you do not need to edit the Themes/default/index.template.php file to add a button (like the instructions say to), as this mod does that automatically.
FlashChat can be purchased from http://www.tufat.com/s_flash_chat_chatroom.htm

Support
Support for this mod is given in my forum, at http://www.daniel15.com/.
Note that I do not provide support for FlashChat, that is up to http://www.tufat.com/! I just provide support for this mod.

NOTE: For anyone with the 'Googlebot and Spiders' mod installed, you may install this mod, but two of the edits (SSI.php and BoardIndex.template.php) will fail (due to both the Googlebot and Spiders mod and this mod editing the same code). You may continue to install this mod (it will install successfully), but please see this post (http://www.simplemachines.org/community/index.php?topic=139769.msg895270#msg895270) for what to do after installation.
Edit: This is currently NOT up-to-date. Please check back later for updated instructions on installing this mod alongside the Googlebot mod!

Theme Changes
Please see http://www.daniel15.com/forum/index.php/topic,856.html for the theme changes required to support this mod.

Changelog
1.0 (Final)
-----------

0.1 Beta
--------
Initial release (beta!)
Title: Re: FlashChat Integration
Post by: limo2005 on January 05, 2007, 08:03:58 AM
Just what I was looking for. Only in my case I am getting :

4.     Execute Modification     ./SSI.php                                                  Test failed

6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed

SMF 1.1.1 
MkPortal 1.1
Various Mods Installed
CEREBUS SKIN

Any suggestions or workaround?
Title: Re: FlashChat Integration
Post by: Elegant John on January 05, 2007, 03:15:54 PM
I got the same errors but they were simple to fix by manually modding the effected files.

Look in install.xml to find the changes.

Works perfectly now though.

I would make the comment that more people should go the extra mile as Bloc does when he writes the manual mod instructions for his mods. Some of these here are complex and it makess it very easy to screw the pooch.

But, excellent mod
Title: Re: FlashChat Integration
Post by: Daniel15 on January 05, 2007, 09:22:56 PM
Sorry about the errors, the package seems to work fine on a fresh SMF installation... Do any of you have the 'Googlebot and Spiders' mod? Since both that mod and my mod edit the "Users Online" section, that's what could be causing the conflict.

QuoteI would make the comment that more people should go the extra mile as Bloc does when he writes the manual mod instructions for his mods.
In that case, I'd point you to http://server.daniel15.com/smf/package.php :D
Title: Re: FlashChat Integration
Post by: macfionn on January 05, 2007, 11:05:06 PM
Quote from: Daniel15 on January 05, 2007, 09:22:56 PM
In that case, I'd point you to http://server.daniel15.com/smf/package.php :D
LOL.. yeah.. I'd call that a DAMNED good tutorial. ;)  WAS very cut and dry!

Now then..ass kissing aside.. I have an issue pls. ;)

Im using a v.1.1.1 template called "Spikey" found here:  http://custom.simplemachines.org/themes/index.php?lemma=81

When you said this:
"Theme Changes
To install this on your custom theme (so it shows the users in the chat under Users Online), open Themes/[theme name]/BoardIndex.template.php"

The problem is.. on "Spikey", there isn't a BoardIndex.template.php.
Yet, even though I AM able to see who is in chat at bottom, there is no link found anywhere at the top to get to chat. 

Have any thoughts here?

Title: Re: FlashChat Integration
Post by: Daniel15 on January 05, 2007, 11:48:23 PM
QuoteThe problem is.. on "Spikey", there isn't a BoardIndex.template.php.
Yet, even though I AM able to see who is in chat at bottom, there is no link found anywhere at the top to get to chat.
Since it doesn't have a BoardIndex.template.php, it is using the one from the default (that's why you're seeing who's in the chat)
The link for accessing the chat needs to be added to index.template.php. I'll take a look at Spikey later, and see the exact code you need.
Title: Re: FlashChat Integration
Post by: texterted on January 06, 2007, 06:03:27 AM
Hi Daniel

Cool looking mod! I've a few problems with it tho... It installs fine on my default template 1.1.1 but I don't get any chat options in Admin. Also if I leave the chat by pressing one of my forum links I get a pop up with a 404 not found in it. Seems to be looking below the chat directory on my server.
Cheers for any input...
Eddy
Title: Re: FlashChat Integration
Post by: Daniel15 on January 06, 2007, 06:10:05 AM
Quote...but I don't get any chat options in Admin...
The admin panel is currently not integrated (and I'm not really sure if it can be or not, I haven't taken a look

QuoteAlso if I leave the chat by pressing one of my forum links I get a pop up with a 404 not found in it. Seems to be looking below the chat directory on my server.
I just noticed this now (it's the logout popup). I think it may be a bug in FlashChat, as I'm using the correct URL  for calling FlashChat.
Title: Re: FlashChat Integration
Post by: texterted on January 06, 2007, 06:52:23 AM
Hi Daniel
Cheers for your reply.
That's a problem with the admin then! If you integrate it into SMF then you cannot alter the chat settings from its own admin panel?? It tells you ...
"This option is not available when FlashChat is integrated with a custom CMS (content management system).
Please use the user administration tools which come with your system to add, edit, or remove users."


The 404 pop up is looking for "dologout.php" in the SMF directory not the CHAT directory... should be an easy fix? "edit... fixed this by copying the file to the parent SMF directory and editing the file to include the correct path to 'inc/common.php'.

Thanks for taking the time to do these mods on top of trying to have a life! I'm sorry to sound negative about these "bugs" but I'm needing a lot of "hand holding" here.
Cheers
Eddy
Title: Re: FlashChat Integration
Post by: PacMan on January 06, 2007, 07:46:25 AM
Hello Daniel15,

I just installed the flashChat mod and everything seemed to go just fine but I have one kind of weird problem.
When I exit the mod or if I chose any other menu item I get disconnected from the chat and the closing window says OBJECT NOT FOUND in it.  Then I have to relog onto the board or the chat if I wish.

I thiink I may have a path problem but not sure, if you have any ideas I'd sure appreciate it.

My config is WindowsXp, Apache2, PHP5, Mysql5 and SMF 1.1.  I do not run IIS at all in this config.

Thanks for your efforts.  I like the mod a lot.
Mark
Title: Re: FlashChat Integration
Post by: Daniel15 on January 06, 2007, 08:36:46 AM
QuoteThat's a problem with the admin then! If you integrate it into SMF then you cannot alter the chat settings from its own admin panel?? It tells you ...
"This option is not available when FlashChat is integrated with a custom CMS (content management system).
Please use the user administration tools which come with your system to add, edit, or remove users."
That message is only for user administration in FlashChat. As all the user administration is done via SMF, you can't do it in the FlashChat admin panel. To add, remove or ban users, you use the SMF members administration.
All of the other FlashChat settings are still accessible via the FlashChat admin panel.

QuoteThe 404 pop up is looking for "dologout.php" in the SMF directory not the CHAT directory... should be an easy fix? "edit... fixed this by copying the file to the parent SMF directory and editing the file to include the correct path to 'inc/common.php'.
It may be an easy fix (I'll look in to it tommorow). The problem is that even though I'm passing the correct path to FlashChat ($boardurl/chat/), it's not respecting it for the popup. I believe I would need to either edit some of the FlashChat source (I already do a tiny bit, to fix a bug), or make it create a seperate copy of the file (like you've done).

QuoteI'm sorry to sound negative about these "bugs" but I'm needing a lot of "hand holding" here.
Nah, that's fine :D. The whole point of a beta version is to find and remove bugs ;)

QuoteWhen I exit the mod or if I chose any other menu item I get disconnected from the chat and the closing window says OBJECT NOT FOUND in it.
Yes, that's the same problem that texterted was talking about. I'll see if I can fix it soon :)

QuoteThanks for your efforts.
No problem! :D
Title: Re: FlashChat Integration
Post by: texterted on January 06, 2007, 09:01:31 AM
Cheers for that Daniel :)

The quick fix I outlined above seems to work ok for the pop-up.
Cheers for the clarification on the Admin settings... I've got my head around it now!
I't be good if it could be integrated into SMF "Permissions" tho... so I can set which groups of forum users can access the chat.
I'd also like the chat to open in a new window. Any idea how I can accomplish this?

Thanks again for your time! :)
Title: Re: FlashChat Integration
Post by: Daniel15 on January 06, 2007, 09:30:58 AM
QuoteI't be good if it could be integrated into SMF "Permissions" tho... so I can set which groups of forum users can access the chat.
Ideally, that's something for the developer of FlashChat to do, as he works on the core functionality (I'd consider user access as core functionality) ;)

QuoteI'd also like the chat to open in a new window. Any idea how I can accomplish this?
In Themes/default/index.template.php, find:

// FlashChat!
if ($context['user']['is_logged'])
echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=chat">' , $txt['fc_chat'] , '</a>
</td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Replace with:

// FlashChat!
if ($context['user']['is_logged'])
echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=chat" target="_blank">' , $txt['fc_chat'] , '</a>
</td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


I'll probably add an option for this (choosing to open the chat in a new window) in the next release
Title: Re: FlashChat Integration
Post by: texterted on January 06, 2007, 09:48:11 AM
Top geezer! Cheers for that  :D
Title: Re: FlashChat Integration
Post by: texterted on January 06, 2007, 10:30:56 AM
In fact it'd be a good move if we could lose that log-out pop up altogether!

I really like this mod Daniel, keep up the good work!
Title: Re: FlashChat Integration
Post by: limo2005 on January 06, 2007, 01:01:42 PM
Quote from: Daniel15 on January 05, 2007, 09:22:56 PM
Sorry about the errors, the package seems to work fine on a fresh SMF installation... Do any of you have the 'Googlebot and Spiders' mod? Since both that mod and my mod edit the "Users Online" section, that's what could be causing the conflict.

Yes I do!  I'll do as suggested by Elegant John and see how I get on!  Best of luck with this mod and Thank You!

Limo2005
Title: Re: FlashChat Integration
Post by: PacMan on January 06, 2007, 02:26:00 PM
Quote from: PacMan on January 06, 2007, 07:46:25 AM
Hello Daniel15,

I just installed the flashChat mod and everything seemed to go just fine but I have one kind of weird problem.
When I exit the mod or if I chose any other menu item I get disconnected from the chat and the closing window says OBJECT NOT FOUND in it.  Then I have to relog onto the board or the chat if I wish.

I thiink I may have a path problem but not sure, if you have any ideas I'd sure appreciate it.

My config is WindowsXp, Apache2, PHP5, Mysql5 and SMF 1.1.  I do not run IIS at all in this config.

Thanks for your efforts.  I like the mod a lot.
Mark

hmmmmm looks like my message (quoted here) somehow got mixed up with texterted's message above???

I'm not sure if you think you've answered it or not. lol 
Sorry but I was really lookin forward to some suggestions with this.

Thanks Daniel
Mark (Pacman) 
Title: Re: FlashChat Integration
Post by: rainman on January 06, 2007, 05:08:55 PM
Quote from: limo2005 on January 05, 2007, 08:03:58 AM
Just what I was looking for. Only in my case I am getting :

4.     Execute Modification     ./SSI.php                                                  Test failed

6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed

SMF 1.1.1 
MkPortal 1.1
Various Mods Installed
CEREBUS SKIN

Any suggestions or workaround?

I am getting the same error messages as above.
Elegant John said it was a simple fix, but I need some specific instructions on how to make this fix please.

Thanks

Edit: And yes, I have the Googlebot and Spiders installed and working.
Title: Re: FlashChat Integration
Post by: Daniel15 on January 06, 2007, 09:32:13 PM
QuoteIn fact it'd be a good move if we could lose that log-out pop up altogether!
Well, I should really get it working, as not using it would have one problem: If you're the last person in the chat, and you logout, you will show up on the "Users Online" as being in the chat, until someone else joins it :P

Quotehmmmmm looks like my message (quoted here) somehow got mixed up with texterted's message above???

I'm not sure if you think you've answered it or not. lol
I did answer it (I think). Your problem was the same as texterted's problem. It's a problem with FlashChat which I'll have to try and solve.

QuoteEdit: And yes, I have the Googlebot and Spiders installed and working.
I'll write how to solve this in a reply.
Title: Re: FlashChat Integration
Post by: Daniel15 on January 06, 2007, 09:37:58 PM
For everyone with the Googlebot and Spiders mod, you can install this mod, but you'll need to edit two files (SSI.php and BoardIndex.template.php) manually, as both the Googlebot and Spiders mod, as well as this mod, edit the file. Here's how to edit the files:
Open SSI.php, and find:

$return['num_users'] = count($return['users']) + $return['hidden'];
$return['total_users'] = $return['num_users'] + $return['guests'] + ($modSettings['ob_googlebot_count_most_online'] ? $return['num_spiders'] : 0);

Add after:

// --- Begin FlashChat integration ---
global $boarddir, $db_name;
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
// Get the proper database prefix (including database name)
$fc_prefix = is_numeric(substr($GLOBALS['fc_config']['db']['pref'], 0, 1)) ? $db_name . '.' . $GLOBALS['fc_config']['db']['pref'] : '`' . $db_name . '`.' . $GLOBALS['fc_config']['db']['pref'];
// Load all the users currently in the chat
$result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$fc_prefix}connections AS fc
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$fc_prefix}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
ORDER BY mem.realName ASC", __FILE__, __LINE__);

$return['users_chat'] = array();
$return['list_users_chat'] = array();
$return['num_chat'] = mysql_num_rows($result);

// Loop through all users in chat
while ($row = mysql_fetch_assoc($result))
{
// Does their membergroup have a colour?
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '">' . $row['realName'] . '</a>';

// Add them to the 'Users Online' list
$return['users_chat'][$row['memberName']] = array(
'id' => $row['userid'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['userid'],
'link' => $link,
'chat' => array(
'color' => $row['color'],
'lang' => $row['lang'],
'room' => array(
'id' => $row['roomid'],
'name' => $row['roomName'],
'public' => ($row['ispublic'] == 'y' ? true : false),
),
),
);
}
mysql_free_result($result);
// --- End FlashChat integration ---

Also, find:

echo '
', (empty($return['spiders']) ? '' : $return['num_spiders'] . ' ' . ($return['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $return['guests'], ' ', $return['guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $return['num_users'], ' ', $return['num_users'] == 1 ? $txt['user'] : $txt['users'];

Replace with:

echo '
', (empty($return['spiders']) ? '' : $return['num_spiders'] . ' ' . ($return['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $return['guests'], ' ', $return['guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $return['num_users'], ' ', $return['num_users'] == 1 ? $txt['user'] : $txt['users'], ', ', $return['num_chat'], ' ', $return['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];


In Themes/default/BoardIndex.template.php, find:

echo (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

Replace with:

echo (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];


Also, find:

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);


Add after:

// --- Begin FlashChat integration ---
// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<br />
', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---


Note that if you're using a custom theme, you'll need to edit that theme's BoardIndex.template.php file (eg. I applied the BoardIndex.template.php changes to my modified 'Apollo' [by Bloc] theme).
Title: Re: FlashChat Integration
Post by: PacMan on January 06, 2007, 10:51:23 PM
Quote from: Daniel15 on January 06, 2007, 09:32:13 PM

I did answer it (I think). Your problem was the same as texterted's problem. It's a problem with FlashChat which I'll have to try and solve.


Ok Daniel, I read you loud and clear this time.

Thanks!

Title: Re: FlashChat Integration
Post by: rainman on January 07, 2007, 07:30:00 AM
Daniel,

I tried your edits shown above, but still am getting the same error - quite possibly something that I am doing wrong of course.

Attached are my 2 files - could you check to see if I have edited them correctly?

Thanks!

Edit - I have now put my original files back in place without either mod, and now have the flashchat mod working without the Googlebot mod.
Title: Re: FlashChat Integration
Post by: mrix on January 07, 2007, 07:53:44 AM
Hello all I have installed this mod but dont seem to get a chat button on any theme apart from the default theme I use?
Cheers
mrix
Title: Re: FlashChat Integration
Post by: Daniel15 on January 07, 2007, 08:12:06 AM
QuoteI tried your edits shown above, but still am getting the same error - quite possibly something that I am doing wrong of course.
You'll get the same error, but you can ignore it. The error means that it can't edit that segment of code, but since you'll manually edit it, it doesn't matter.

QuoteHello all I have installed this mod but dont seem to get a chat button on any theme apart from the default theme I use?
Cheers
mrix
This mod only edits the default theme.
What theme are you using?
Title: Re: FlashChat Integration
Post by: spoontosser on January 07, 2007, 12:16:44 PM
I've got this mod added and it seems to be working well with the exception that I have a couple of members  of my SMF forum that cannot enter the chatroom. They get a message saying they are banned, yet they are not banned from my forum. I cannot find anything on this topic. Any advice?
Title: Re: FlashChat Integration
Post by: Daniel15 on January 07, 2007, 09:33:15 PM
QuoteI've got this mod added and it seems to be working well with the exception that I have a couple of members  of my SMF forum that cannot enter the chatroom. They get a message saying they are banned, yet they are not banned from my forum. I cannot find anything on this topic. Any advice?
That's not my area for support - Since this is a problem with FlashChat itself, you'll need to ask the author of FlashChat for support.

This topic only covers issues with the FlashChat integration (Users Online list, and the FlashChat embedded into SMF). Issues with FlashChat itself (user issues, etc.) aren't covered by me ;)
Title: Re: FlashChat Integration
Post by: TheMagickKnight on January 08, 2007, 09:00:11 PM
Quick question, is there a way I use this mod with my chat folder on another server different than the forum? I'm sure it's a simple edit of the URLs to point to, but I'm unsure which files need to have these changes.

Thanks!
Title: Re: FlashChat Integration
Post by: Daniel15 on January 08, 2007, 09:17:27 PM
Hello, and welcome to the forums! :D

QuoteQuick question, is there a way I use this mod with my chat folder on another server different than the forum?
Since it needs to connect to your SMF database (it does so by reading the Settings.php file), FlashChat needs to reside on the same server. If you put it on a different server, you can't integrate it.
My integration requires the FlashChat PHP files to be present on the server, and hence it can't be on a different server ;)
Title: Re: FlashChat Integration
Post by: TheMagickKnight on January 09, 2007, 02:01:17 AM
Ah ok. Thanks for the welcome and awesome mod! :)
Title: Re: FlashChat Integration
Post by: mrix on January 09, 2007, 07:33:50 AM
Hi I have two members say they try to connect to the chat room and get a message saying they are blocked????
any idea`s
Cheers
mrix
Title: Re: FlashChat Integration
Post by: Molokaibill on January 09, 2007, 10:21:56 AM
Gees, sure wish I had this a month ago when I integrated Flashchat (but not as cleanly).

I've set up your mod for testing and I'm seeing the same problems with dologout.php. Here's one more thing I noticed: when I logout the other chat users do not see it until exactly one minute later. Something is timing out rather than logging out.
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on January 09, 2007, 02:00:05 PM
Quote from: mrix on January 09, 2007, 07:33:50 AM
Hi I have two members say they try to connect to the chat room and get a message saying they are blocked????
any idea`s
Cheers
mrix
Flashchat issue with you group memberships.
Go to the flashchat forum & they have a fix.
Title: Re: FlashChat Integration
Post by: SMURF6060 on January 09, 2007, 08:58:09 PM
running 1.1.1 smf
theme: " AMBER" theme tinyportal for 1.1.1

flash chat successfuly configured and added

mod successfully added

1.checked the board index file, the code isnt the same  so im not going to mess with it.
2. the mod doesnt show up in the menu bar and doesnt show up in the admin settings to activate/deactivate.


it works awesome when i use the default smf template, but for the amber theme, doesnt show up at all
i basically have to hardlink it from the "news" section

any help for the amber theme tiny portal 1.1.1?
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on January 09, 2007, 09:26:41 PM
The mod is designed to use the default theme. Most are, unless it specifically says for a different theme.

Go back to the first post. Follow the instructions after this:

QuoteTheme Changes
To install this on your custom theme (so it shows the users in the chat under Users Online), open Themes/[theme name]/BoardIndex.template.php, and find:
Title: Re: FlashChat Integration
Post by: azajet on January 10, 2007, 10:37:29 AM
Hello:
Simple questions:
it is necessary install the chat into the same folder that SMF?
and in the same DB with different suffix?
or can i install the Chat in root (here i have Joomla an SMF with separated DB), and in this case i need to make a new DB? or i mus use that the joomla or SMF.

Congratulations for this great work.
azajet
Title: Re: FlashChat Integration
Post by: sciurus on January 10, 2007, 11:31:11 AM
Great mod, no probems to install, simple instructions to follow to edit custom template.

While in chat the members Username is displayed, is it possible to change this so it shows their Displayed Name, and if so what do I need to change?
Title: Re: FlashChat Integration
Post by: SMURF6060 on January 10, 2007, 12:21:56 PM
thanks , that worked! users show up "whos online" listing.

But how would i get it to show in the menu task bar?

would i have to add my own button + link to the chat..or is their some script fix that would work with the amber tinyportal theme?



Quote from: Simplemachines Cowboy on January 09, 2007, 09:26:41 PM
The mod is designed to use the default theme. Most are, unless it specifically says for a different theme.

Go back to the first post. Follow the instructions after this:

QuoteTheme Changes
To install this on your custom theme (so it shows the users in the chat under Users Online), open Themes/[theme name]/BoardIndex.template.php, and find:

Title: Re: FlashChat Integration
Post by: Daniel15 on January 10, 2007, 07:40:56 PM
Quoteit is necessary install the chat into the same folder that SMF?
and in the same DB with different suffix?
or can i install the Chat in root
As per the FlashChat instructions, it needs to be in your forum's directory. The installer will automatically detect your SMF database, so you won't need to type anything in. Please see the FlashChat instructions on tufat.com for more details.

QuoteWhile in chat the members Username is displayed, is it possible to change this so it shows their Displayed Name, and if so what do I need to change?
That's a FlashChat question, you'd need to ask over at tufat.com

QuoteBut how would i get it to show in the menu task bar?
You'd need to ask the author of the theme how to add a new button.
If you provide a link to the theme download, I'll take a look at it ;)

Title: Re: FlashChat Integration
Post by: wickedstangs on January 10, 2007, 08:10:08 PM
Quote from: texterted on January 06, 2007, 06:52:23 AM
The 404 pop up is looking for "dologout.php" in the SMF directory not the CHAT directory... should be an easy fix? "edit... fixed this by copying the file to the parent SMF directory and editing the file to include the correct path to 'inc/common.php'.

Thanks for taking the time to do these mods on top of trying to have a life! I'm sorry to sound negative about these "bugs" but I'm needing a lot of "hand holding" here.
Cheers
Eddy

Can you hold my hand now  ;)  and explain how you fixed the pop up issue?

Hey j/k about that last line some may take it the wrong way...lol

SMF 1.1.1 and MKPortal
www.wickedstangs.com
Title: Re: FlashChat Integration
Post by: Molokaibill on January 10, 2007, 08:55:53 PM
Quote from: sciurus on January 10, 2007, 11:31:11 AM
While in chat the members Username is displayed, is it possible to change this so it shows their Displayed Name, and if so what do I need to change?

In  /bridges/smf10.inc.php
search for "MemberName"  (2x)
replace with "RealName"
Title: Re: FlashChat Integration
Post by: SMURF6060 on January 10, 2007, 09:45:50 PM

QuoteBut how would i get it to show in the menu task bar?
QuoteYou'd need to ask the author of the theme how to add a new button.
If you provide a link to the theme download, I'll take a look at it ;)

http://www.tinyportal.net/index.php?action=tpmod;dl=item506
is the download link for BLOC'S  amber theme for smf 1.1 final
Title: Re: FlashChat Integration
Post by: Coronas on January 10, 2007, 11:04:52 PM
http://custom.simplemachines.org/mods/index.php?mod=611

read the integration..
Title: Re: FlashChat Integration
Post by: PacMan on January 11, 2007, 03:18:36 AM
Hi,

I've decided I'd like to keep all the functions of the mod but I would like to have the chat window seperated again from the forum page.  Is this possible to do without too much trouble?  Reason being for our forums purposes the page it taking up too much monitor space that our users need for for working with other windows workspace.

Thanks and appreicate it.
Mark (pacman)

Title: Re: FlashChat Integration
Post by: Daniel15 on January 11, 2007, 05:32:21 AM
Quote from: SMURF6060 on January 10, 2007, 09:45:50 PM

QuoteBut how would i get it to show in the menu task bar?
QuoteYou'd need to ask the author of the theme how to add a new button.
If you provide a link to the theme download, I'll take a look at it ;)

http://www.tinyportal.net/index.php?action=tpmod;dl=item506
is the download link for BLOC'S  amber theme for smf 1.1 final
OK, in Themes/amber11final/index.template.php, find:

if (in_array($_GET['action'],array('search','admin','calendar','profile','mlist','register','login','pm','help')))

Replace with:

if (in_array($_GET['action'],array('search','admin','calendar','profile','mlist','register','login','pm','help','chat')))


Also, find:

// The [calendar]!
if ($context['allow_calendar'])
echo $tab1, $ca== 'calendar' ? '1' : '2' , '"><a href="', $scripturl, '?action=calendar">'.$txt['calendar24']. '</a></td>';

Add after:

// FlashChat!
if ($context['user']['is_logged'])
echo $tab1, $ca== 'chat' ? '1' : '2' , '"><a href="', $scripturl, '?action=chat">'.$txt['fc_chat']. '</a></td>';


QuoteI've decided I'd like to keep all the functions of the mod but I would like to have the chat window seperated again from the forum page.  Is this possible to do without too much trouble?
Nope, no trouble at all :). Simply changing the link to the default FlashChat one will do this.
In Themes/default/index.template.php, find:

<a href="', $scripturl, '?action=chat">' , $txt['fc_chat'] , '</a>

Replace with:

<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php">' , $txt['fc_chat'] , '</a>


In the future, there may be an option to enable or disable this in the admin panel :)
Title: Re: FlashChat Integration
Post by: SMURF6060 on January 11, 2007, 10:42:36 AM
daniel , you ROCK!!!!!!!!!!!!!!!!

thanks man!
Title: Re: FlashChat Integration
Post by: Svatov on January 11, 2007, 06:17:17 PM
i could't find files
./chat/inc/flashChatTag.php
./chat/inc/cmses/smfCMS2.php

pls help me
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on January 11, 2007, 06:30:37 PM
If you mean that the mod failed on those files it means that you have an older version of flashchat.
ver 4.7.7 is different and has new stuff in it that has a couple of small errors.
Title: Re: FlashChat Integration
Post by: PacMan on January 11, 2007, 07:34:28 PM
Quote from: Daniel15 on January 11, 2007, 05:32:21 AM

Nope, no trouble at all :). Simply changing the link to the default FlashChat one will do this.
In Themes/default/index.template.php, find:

<a href="', $scripturl, '?action=chat">' , $txt['fc_chat'] , '</a>

Replace with:

<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php">' , $txt['fc_chat'] , '</a>


In the future, there may be an option to enable or disable this in the admin panel :)

Thanks a bunch Daniel15.

Mark
Title: Re: FlashChat Integration
Post by: bobw on January 11, 2007, 09:15:00 PM
When I install the mod, I get this error:

Table 'smf3.flashchat_connections' doesn't exist
File: /usr/local/psa/home/vhosts/russian-mosin-nagant-forums.com/httpdocs/smf/Sources/BoardIndex.php
Line: 359
Title: Re: FlashChat Integration
Post by: Daniel15 on January 11, 2007, 10:17:53 PM
Quote from: bobw on January 11, 2007, 09:15:00 PM
When I install the mod, I get this error:

Table 'smf3.flashchat_connections' doesn't exist
File: /usr/local/psa/home/vhosts/russian-mosin-nagant-forums.com/httpdocs/smf/Sources/BoardIndex.php
Line: 359
When you installed FlashChat, did you choose the option to integrate it with SMF?
Title: Re: FlashChat Integration
Post by: Bubba on January 11, 2007, 10:19:37 PM
Thanks for this mod... I love it. I have one minor problem... It is not using the forum login for me. I installed the database as a table in my SMF database. I'm not sure how I screwed it up. When you click on chat in the menu bar, it comes to the login page. There is not a place for a new user to register, and I thought it would use the forum memberlist. Should I have installed to the main forum table with the same prefix?
Title: Re: FlashChat Integration
Post by: wickedstangs on January 11, 2007, 10:36:01 PM
Daniel15
How hard is it to add mods to flashchat like the MP3 player and Components? Or even the Desktop Skin. Also this is an awesome Mod Thanks...
Title: Re: FlashChat Integration
Post by: Daniel15 on January 12, 2007, 05:10:45 AM
QuoteThanks for this mod... I love it. I have one minor problem... It is not using the forum login for me. I installed the database as a table in my SMF database. I'm not sure how I screwed it up. When you click on chat in the menu bar, it comes to the login page. There is not a place for a new user to register, and I thought it would use the forum memberlist. Should I have installed to the main forum table with the same prefix?
When you install FlashChat, make sure you choose the option to Integrate it into a seperate system. Then, when it asks you what system you're using, choose SMF 1.1. Full instructions are available at http://www.tufat.com/docs/flashchat/integration.html (note that you don't need to edit the index.template.php file, this mod does that automatically)

QuoteHow hard is it to add mods to flashchat like the MP3 player and Components? Or even the Desktop Skin
If you want to add the MP3 player and other modules, you'll need to obtain them from http://tufat.com/s_flashchat_module_pack.htm (they also cost US$5). Once you download them, you follow the instructions in the ZIP file to install them (this is not related to this modification, it's a FlashChat thing).

QuoteAlso this is an awesome Mod Thanks...
No problem :D
Title: Re: FlashChat Integration
Post by: Bubba on January 12, 2007, 08:08:03 AM
Thanks.. I missed the checkbox.. I figured it was something stupid...
Title: Re: FlashChat Integration
Post by: danielle12776 on January 12, 2007, 03:54:56 PM
Would anyone happen to know if there is any way to add more smileys to this chat program?   ???  I have the program installed on my SMF forum, but would like more customizations.  I know this isn't the place to ask this question, but I was just wondering if anyone here would know.  :)

I know there is a drop-down list on the flashchat site, that allows you to add a customization for $5 each, but I don't see one for smileys. :(
Title: Re: FlashChat Integration
Post by: chantao on January 12, 2007, 05:42:52 PM
Just a quick question, hope someone can give me an answer:

When installing Flashchat onto server, is it necessary to install the chat directory inside the forum directory to make the integration work?
Title: Re: FlashChat Integration
Post by: Daniel15 on January 12, 2007, 08:42:56 PM
QuoteWould anyone happen to know if there is any way to add more smileys to this chat program?
You need to have Macromedia Flash to add new smileys, as it involves editing the Flash file. Take a look at http://forum.tufat.com/showthread.php?t=7473 for more information ;)

QuoteWhen installing Flashchat onto server, is it necessary to install the chat directory inside the forum directory to make the integration work?
Yes, it is.
Title: Re: FlashChat Integration
Post by: bobw on January 12, 2007, 09:32:14 PM
I have FlashChat integrated with my current SMF 1.1.1 theme and when I log out, I get the following error:

Internal Server Error
File not found.

Any idea what is causing it? I'm using the Dilber MC Theme by HarzeM. Also how do I properly create a button for that theme? I have one sort of cobbed up but I would like to have it look right.

// FlashChat!
   if ($context['user']['is_logged'])
      echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="menubg' . $first . '">&nbsp;</td>' : '' , '
            <td valign="center" class="menubg' , $current_action == 'chat' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=chat">' , $txt['fc_chat'] , '</a>
            </td>' , $current_action == 'chat' ? '<td class="menubg' . $last . '">&nbsp;</td>' : '';

The other buttons like like this:

// The [Gallery]!

   if ($context['allow_smfgallery_view'])           

   echo'

            <td align="center" class="menubg' , $current_action == 'gallery' ? '2' : '' , '">

               <a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu'] , '</a>               

            </td>';           

Here's my forum url: http://www.russian-mosin-nagant-forums.com/smf

Thanks!



Title: Re: FlashChat Integration
Post by: Daniel15 on January 12, 2007, 10:22:02 PM
QuoteI have FlashChat integrated with my current SMF 1.1.1 theme and when I log out, I get the following error:

Internal Server Error
File not found.

Any idea what is causing it?
It's a bug, I still haven't fixed it ;)

Quotetheme? I have one sort of cobbed up but I would like to have it look right.

// FlashChat!
   if ($context['user']['is_logged'])
      echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="menubg' . $first . '">&nbsp;</td>' : '' , '
            <td valign="center" class="menubg' , $current_action == 'chat' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=chat">' , $txt['fc_chat'] , '</a>
            </td>' , $current_action == 'chat' ? '<td class="menubg' . $last . '">&nbsp;</td>' : '';

The other buttons like like this:

// The [Gallery]!

   if ($context['allow_smfgallery_view'])           

   echo'

            <td align="center" class="menubg' , $current_action == 'gallery' ? '2' : '' , '">

               <a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu'] , '</a>               

            </td>';           
Your button should look like:

// FlashChat!
   if ($context['user']['is_logged'])           
   echo '
            <td align="center" class="menubg' , $current_action == 'chat' ? '2' : '' , '">
               <a href="', $scripturl, '?action=chat">' , $txt['fc_chat'] , '</a>               
            </td>';     
Title: Re: FlashChat Integration
Post by: PacMan on January 13, 2007, 02:51:37 AM
Just a heads up... I was having a wierd problem with a NO OBJECT FOUND in the logout window and so I was looking into all the files and saw the file named "config.srv.php".  In there along with my mysql password was the line: " 'host' => 'localhost' ".  Well I am redirecting port 81 so I tried adding the :81 to the end of it making, it "'host' => 'localhost:81' and wallah!  I get a nice looking logout screen now.  Although I'm still having trouble passing session info back and forth this seemed to fix that little critter for now. :)  Hope this may help someone out there.

cheers mate
Mark
Title: Re: FlashChat Integration
Post by: PacMan on January 14, 2007, 02:29:37 AM
Quote from: Daniel15 on January 11, 2007, 05:32:21 AM


QuoteI've decided I'd like to keep all the functions of the mod but I would like to have the chat window seperated again from the forum page.  Is this possible to do without too much trouble?
Nope, no trouble at all :). Simply changing the link to the default FlashChat one will do this.
In Themes/default/index.template.php, find:

<a href="', $scripturl, '?action=chat">' , $txt['fc_chat'] , '</a>

Replace with:

<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php">' , $txt['fc_chat'] , '</a>


In the future, there may be an option to enable or disable this in the admin panel :)


Hi Daniel15,
I tried the above to seperate the chat page from the forum and even though it is reduce the size of the forum page (top) area, it is still clearly attached to a part of the forum.  What would be nice (don't know if it's feasable) would be to have the chat page seperate from the forum and end up with FlashChat all by itself in one window and SMF in a seperate window all by itself so a person could simutainisly chat and browse forum as needed.  Any possibilities?

cheers my friend.
Mark
Title: Re: FlashChat Integration
Post by: Daniel15 on January 14, 2007, 02:38:55 AM
QuoteWhat would be nice (don't know if it's feasable) would be to have the chat page seperate from the forum and end up with FlashChat all by itself in one window and SMF in a seperate window all by itself so a person could simutainisly chat and browse forum as needed.  Any possibilities?
That's what my code should have done. If you browse to /chat/flashchat.php, it should take up the full screen, with no forum header or footer. The code just changes the link from my ?action=chat link to the /chat/flashchat.php one.
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on January 14, 2007, 05:28:16 PM
Daniel, this mod works like a dream.
However, I would like to have a horizontal line separating the list of users, the users in chat, and the spiders.

Like this:
Users active in past 180 minutes:
Mark, Spanish Rob
---------------------------------------------------------------
Users currently in chat:
Fred (Chat Room 1)
----------------------------------------------------------------
Spiders active in past 180 minutes:
Yahoo spider (81), Google spider, MSN spider (4)
----------------------------------------------------------------

I tried using <hr width="100%"> in a couple of places but I just don't know php well enough to get it in in the code shown below:

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

// --- Begin FlashChat integration ---
// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<br />
', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---

if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}

echo implode(', ', $context['spiders']);


TIA,

Jay
Title: Re: FlashChat Integration
Post by: Daniel15 on January 14, 2007, 11:59:53 PM
Try this:

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

// --- Begin FlashChat integration ---
// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<hr width="100%" /><br />
', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---

if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<hr width="100%" /><br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}

echo implode(', ', $context['spiders']);

I simply added <hr width="100%" /> before the <br /> (line breaks). I didn't test this, but it should work.
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on January 15, 2007, 01:13:45 AM
Once again, it proves that knowing the information is one thing, but knowing what to do with it is what makes you get the big bucks.  :D

I thought I tried <hr width="100%" /> in every possible place, but obviously not.

Works perfectly.

Cheers mate!
Title: Re: FlashChat Integration
Post by: wickedstangs on January 15, 2007, 01:56:06 AM
Man the above fix is awesome thanks also..
QuoteAnd Daniel15 by any chance do you know what happened to cwhnetworks?
Title: Re: FlashChat Integration
Post by: wickedstangs on January 15, 2007, 02:44:39 AM
Daniel15 not sure if it has been brought up yet but in the Users currently in chat:
wickedstangs (The Lounge) the last person in the forum stays there until someoneelse logs in. Do you have fix for this?
Title: Re: FlashChat Integration
Post by: Daniel15 on January 15, 2007, 04:14:26 AM
Quote from: wickedstangs on January 15, 2007, 01:56:06 AM
QuoteAnd Daniel15 by any chance do you know what happened to cwhnetworks?
Sorry, there was a hard drive problem, and a lot of the data became corrupted. The data centre is currently setting up a new server for us (and restoring our weekly backup [January 13th] onto it), so we should be up again soon ;)

Quote from: wickedstangs on January 15, 2007, 02:44:39 AM
Daniel15 not sure if it has been brought up yet but in the Users currently in chat:
wickedstangs (The Lounge) the last person in the forum stays there until someoneelse logs in. Do you have fix for this?
I'll try to fix it soon. Basically, the popup that comes up is meant to log the user out, except the popup isn't working in this case. I'll have a closer look at it soon.
Title: Re: FlashChat Integration
Post by: Froggy on January 16, 2007, 03:16:32 AM
I really liked the flashchat when i found it

but have always been afraid i could not 'tweak' it properly to install it

-----------

Is this still a 'tweaky' install (flashchat) and what does this MOD (SMF) add

Does it just add a 'button' to the menu or more

where would i 'tweak' the settings - in SMF or in Flashchat

What about 'bandwidth issues' or even forum degradation (slow)

from using flashchat

Can someone help me out here -

i have a very small board - 100 users or less

Did anyone install it and find that they had to remove it (flashchat)
because it messed up their forum?

Does this MOD integrate the forum users names into flashchat
or is that a setting in flashchat itself

As you can see - I have lots of questions and am not a big 'chatter'

so even the terms are a bit foreign


Title: Re: FlashChat Integration
Post by: Daniel15 on January 16, 2007, 04:26:50 AM
QuoteIs this still a 'tweaky' install (flashchat) and what does this MOD (SMF) add
What do you mean by a 'tweaky' install?

QuoteDoes it just add a 'button' to the menu or more
Basically, this mod adds a button on the menu for FlashChat, and also shows the users in the chat at the bottom of the board index (under Users Online). Additionally, it makes the chat appear 'inside' the forum, rather than seperated.

Quotewhere would i 'tweak' the settings - in SMF or in Flashchat
The settings are all changed in FlashChat itself, SMF has no settings for it (this mod doesn't add any additional settings)

QuoteWhat about 'bandwidth issues' or even forum degradation (slow)
I'm not quite sure, but I believe it's relatively low bandwidth. It will not slow down your forum, though.

Quotei have a very small board - 100 users or less
It should work perfectly, then :)

QuoteDid anyone install it and find that they had to remove it (flashchat)
because it messed up their forum?
It should not mess up your forum at all, as it doesn't change much.

QuoteDoes this MOD integrate the forum users names into flashchat
or is that a setting in flashchat itself
FlashChat itself does this. When you install it, you can tell it to use SMF's userbase (choose the "integrate" option during installation

I hope I answered all your questions :)
Title: Re: FlashChat Integration
Post by: Froggy on January 16, 2007, 04:37:45 AM

you did - thanks very much

I believe I'm gonna buy it and try it

Dont you go anywhere   :)

Title: Re: FlashChat Integration
Post by: Daniel15 on January 16, 2007, 08:35:06 PM
QuoteDont you go anywhere   
It's alright - I'll be right here :D
Title: Re: FlashChat Integration
Post by: PacMan on January 16, 2007, 09:32:41 PM
Quote from: Daniel15 on January 14, 2007, 02:38:55 AM
QuoteWhat would be nice (don't know if it's feasable) would be to have the chat page seperate from the forum and end up with FlashChat all by itself in one window and SMF in a seperate window all by itself so a person could simutainisly chat and browse forum as needed.  Any possibilities?
That's what my code should have done. If you browse to /chat/flashchat.php, it should take up the full screen, with no forum header or footer. The code just changes the link from my ?action=chat link to the /chat/flashchat.php one.

Why does it look this way?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Flocalhost%3A81%2FThemes%2Fdefault%2Fimages%2Fflags%2Fchatwindow.jpg&hash=09b55f0b51b33a99a19022f207fb644f2ead9fdc)

Cheers!
Title: Re: FlashChat Integration
Post by: hollowGod on January 17, 2007, 04:45:53 AM
hello,

I have installed a new skin for FlashChat called FlashChat Desktop Skin.
How do I change the code so I can use it, instead of the default skin?


hollowGod
Title: Re: FlashChat Integration
Post by: [Chris] on January 17, 2007, 06:13:24 PM
Any chance of getting a basic permissions check added? Like allowing only certain membergroups access to flashchat? That would be awesome :)
Title: Re: FlashChat Integration
Post by: Daniel15 on January 17, 2007, 10:25:58 PM
QuoteWhy does it look this way?
You mean the flashchat.php page? It's just the standard page that comes with FlashChat, which is just the standalone chat (it isn't "integrated" into anything else, even though the memberlist is)

QuoteI have installed a new skin for FlashChat called FlashChat Desktop Skin.
How do I change the code so I can use it, instead of the default skin?
I'm not sure, but I think it's a setting in FlashChat itself. Have you looked in the FlashChat admin panel (chat/admin.php, I think)?

QuoteAny chance of getting a basic permissions check added? Like allowing only certain membergroups access to flashchat? That would be awesome
You'll need to ask the author of FlashChat to do this, over at www.tufat.com ;)
Title: Re: FlashChat Integration
Post by: paster_cobra on January 18, 2007, 03:45:44 AM
how can i fix this? admin is listed as still being in chat even when i leave. i like th fact that it shows what chat room i'm in but i dont need it there 2x how can i get rid of the second?

If you dont know the answer let me know

0 Guests, 1 User, 1 User in Chat
Users active in past 15 minutes:
Admin
Users currently in chat:
Admin (The Lounge)
Users currently in chat:
Admin (The Lounge)
Title: Re: FlashChat Integration
Post by: PacMan on January 18, 2007, 03:50:20 AM
Quote from: Daniel15 on January 17, 2007, 10:25:58 PM
QuoteWhy does it look this way?
You mean the flashchat.php page? It's just the standard page that comes with FlashChat, which is just the standalone chat (it isn't "integrated" into anything else, even though the memberlist is)



I'm pretty sure before I installed the mod, the flashchat screen was all by its self without any SMF showing at all.  No???  Maybe not but I sure thought I remembered it that way where it took up much less space.

cheers!


EDIT:
No, you're right.  It's exactly the way it's supposed to be... sorry bout that..  Thanks Daniel

cheers!
Title: Re: FlashChat Integration
Post by: Jaina on January 19, 2007, 07:40:48 PM
Very helpful mod! Thanks a lot!
Title: Re: FlashChat Integration
Post by: ibexy on January 20, 2007, 09:09:17 AM
flashchat is loading fine but completely covers the screen (obscuring the forum). Is there a way to make it load in a smaller window within my forum. Also there is no way to exit flashchat and return to smf forum without use of the 'back' button on explorer.
Title: Re: FlashChat Integration
Post by: wickedstangs on January 20, 2007, 01:01:34 PM
Quote from: ibexy on January 20, 2007, 09:09:17 AM
flashchat is loading fine but completely covers the screen (obscuring the forum). Is there a way to make it load in a smaller window within my forum. Also there is no way to exit flashchat and return to smf forum without use of the 'back' button on explorer.
Read around page 1 or 2 you will find your answer..
Title: Re: FlashChat Integration
Post by: motuoverseer on January 27, 2007, 08:30:10 PM
I'm having the same issue as paster_cobra.  The display of those in the chat comes up multiple times.  In my case it isn't two though, it shows up three times.  I've already tried to manually fix it myself, but to no avail.   I think it was in the SSI.php file that I found three instances of the same code in reference to "Users in chat".  I removed the duplicates, but three still show up.
Title: Re: FlashChat Integration
Post by: Daniel15 on January 27, 2007, 09:11:51 PM
Quote from: motuoverseer on January 27, 2007, 08:30:10 PM
I'm having the same issue as paster_cobra.  The display of those in the chat comes up multiple times.  In my case it isn't two though, it shows up three times.  I've already tried to manually fix it myself, but to no avail.   I think it was in the SSI.php file that I found three instances of the same code in reference to "Users in chat".  I removed the duplicates, but three still show up.
Look in Themes/default/BoardIndex.template.php. If there's duplicate code, remove it.
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on January 27, 2007, 10:03:21 PM
Quote from: ibexy on January 20, 2007, 09:09:17 AM
flashchat is loading fine but completely covers the screen (obscuring the forum). Is there a way to make it load in a smaller window within my forum.

In the folder chat.template.php, which should be in the Themes/default folder, look for this:

// The actual page
echo '
<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">


replace with:

// The actual page
echo '
<table width="1000" height="600" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">


and change width="1000" height="600" to whatever you'd like. 1000x600 works for my forum.
Title: Re: FlashChat Integration
Post by: rad1701 on January 29, 2007, 06:59:43 PM
I've got FlashChat installed and this integration module but have a couple questions.

First - is there a way to make the default to popup instant login (using the normal flashchat.php)?  I tried to modify the chat.template.php to a smaller size but that didn't seem to work.  It always comes up full screen.

I also only seem to be getting a little colon followed by the names of the users in the chat on my site.

Yes, I'm not using the default theme.  Just wanted to know what files I need to modify. 

Here's what I use:
SMF 1.1.1
TinyPortal
Enterprise Theme (by Bloc) - which seems to use the default BoardIndex.template.php
FlashChat 4.7.8


Thanks for any help!
Title: Re: FlashChat Integration
Post by: fasterthanyours on January 30, 2007, 03:51:03 PM
What I have:
MKportal 1.1.1
SMF 1.1.1
FlashChat 4.7.8

Is there someway to make so I can assign Administrators in Flash Chat.

The only group that can currently ban Users is anyone in the Administrators Group.

I'd like to be able to add a group that could ban Users or set it so the Global Moderators group could.
Title: Re: FlashChat Integration
Post by: fasterthanyours on January 30, 2007, 09:48:30 PM
Does anyone know how to make a php block for MKPORTAL to show Number of Users in Chat?
Title: Re: FlashChat Integration
Post by: xtremecruiser on January 30, 2007, 09:59:24 PM
Quote from: fasterthanyours on January 30, 2007, 09:48:30 PM
Does anyone know how to make a php block for MKPORTAL to show Number of Users in Chat?
Do I have to do everything for you.
MUMBLER  8)
Title: Re: FlashChat Integration
Post by: Daniel15 on January 30, 2007, 10:05:38 PM
QuoteI also only seem to be getting a little colon followed by the names of the users in the chat on my site.
Check that Modifications.english.php got modified correctly. Are you using a different language, or English only?

QuoteIs there someway to make so I can assign Administrators in Flash Chat.

The only group that can currently ban Users is anyone in the Administrators Group.

I'd like to be able to add a group that could ban Users or set it so the Global Moderators group could.
Ask that over at tufat.com's forum ;)

QuoteDoes anyone know how to make a php block for MKPORTAL to show Number of Users in Chat?
Try this:

<?php
// Get the FlashChat database config (for the prefix)
global $boarddir;
include($boarddir '/chat/inc/config.srv.php');
// Load all the users currently in the chat
$result db_query("
SELECT COUNT(*) AS count
FROM 
{$GLOBALS['fc_config']['db']['pref']}connections AS fc
WHERE fc.userid IS NOT NULL"
__FILE____LINE__);
$row mysql_fetch_assoc($result);
mysql_free_result($result);

// Output the number
echo '
'
$row['count'], ' '$row['count'] == $txt['user'] : $txt['users'], ' '$txt['fc_in_chat'];

?>


It's not tested by me (I don't use MKPortal anymore), but it should work :)  
Title: Re: FlashChat Integration
Post by: wickedstangs on January 30, 2007, 10:15:50 PM
Daniel when I create a php block with MKportal this is in there?
<?php 
/*
Write code inserting output inside
variable $content as in following example.
You have DB connection, all global vars
and all MKPortal and Forum functions at your availability
*/

$nome $mkportals->member['name'];
$content="Hi $nome";
?>


Where do I install the upper code you wrote?
Title: Re: FlashChat Integration
Post by: SWTrisha on January 30, 2007, 10:24:49 PM
Hi Daniel,

I bought and installed flash chat works great, I went to download your mod and got this:
QuoteInstalling this package will perform the following actions:  Type Action Description
1. Extract File ./Sources/Chat.php 
2. Extract File ./Themes/default/Chat.template.php 
3. Execute Modification ./index.php Test successful
4. Execute Modification ./SSI.php Test successful
5. Execute Modification ./Sources/BoardIndex.php Test successful
6. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification ./Themes/default/index.template.php Test successful
9. Execute Modification ./chat/inc/flashChatTag.php Test failed
10. Execute Modification ./chat/inc/cmses/smfCMS2.php Test failed  

I would love some help, thank you
Title: Re: FlashChat Integration
Post by: Daniel15 on January 30, 2007, 10:30:43 PM
FlashChat must be installed in the chat directory inside your forum's directory, as shown in the FlashChat instructions. So, if your forum is at /forum/, FlashChat needs to be at /forum/chat/. Additionally, when installing FlashChat, you need to ensure you choose the option to integrate it into SMF.
Title: Re: FlashChat Integration
Post by: Daniel15 on January 30, 2007, 10:31:47 PM
QuoteWhere do I install the upper code you wrote?
Replace that code (the bit you posted) with the bit I posted. I'm not sure if it will work or not, please try it and tell me

I would have edited my previous reply, but editing currently isn't working on this site.
Title: Re: FlashChat Integration
Post by: SWTrisha on January 30, 2007, 11:02:27 PM
QuoteFlashChat must be installed in the chat directory inside your forum's directory, as shown in the FlashChat instructions. So, if your forum is at /forum/, FlashChat needs to be at /forum/chat/. Additionally, when installing FlashChat, you need to ensure you choose the option to integrate it into SMF.

It is.
Title: Re: FlashChat Integration
Post by: Daniel15 on January 30, 2007, 11:20:24 PM
OK, in that case, could you please attach the chat/inc/flashChatTag.php and chat/inc/cmses/smfCMS2.php files here? The developer of FlashChat may have incorporated my fixes into these files. I've got FlashChat 4.7.7 (and that's what I tested on), and the files may have changed in FlashChat 4.7.8 (I can't download that at the moment because I'm on a slow connection, but I will download it as soon as possible).
Title: Re: FlashChat Integration
Post by: SWTrisha on January 30, 2007, 11:24:04 PM
like in a zip
Title: Re: FlashChat Integration
Post by: SWTrisha on January 30, 2007, 11:38:46 PM

<a href="http://alittlebitofmagick.com/Mythica/smfCMS2.zip" target="_blank"></a>
Title: Re: FlashChat Integration
Post by: wickedstangs on January 30, 2007, 11:45:02 PM
Quote from: Daniel15 on January 30, 2007, 10:31:47 PM
QuoteWhere do I install the upper code you wrote?
Replace that code (the bit you posted) with the bit I posted. I'm not sure if it will work or not, please try it and tell me

I would have edited my previous reply, but editing currently isn't working on this site.

That Code didnt work for me...
Title: Re: FlashChat Integration
Post by: Daniel15 on January 31, 2007, 03:15:16 AM
Quote from: SWTrisha on January 30, 2007, 11:38:46 PM

<a href="http://alittlebitofmagick.com/Mythica/smfCMS2.zip" target="_blank"></a>
It looks like the files have already been edited by the mod. Try reinstalling it, it should work fine.

Quote from: wickedstangs on January 30, 2007, 11:45:02 PM
Quote from: Daniel15 on January 30, 2007, 10:31:47 PM
QuoteWhere do I install the upper code you wrote?
Replace that code (the bit you posted) with the bit I posted. I'm not sure if it will work or not, please try it and tell me

I would have edited my previous reply, but editing currently isn't working on this site.

That Code didnt work for me...
Did you get any errors in the error log?
I'll have a look into it when I have more time (I don't have much free time at the moment).
Title: Re: FlashChat Integration
Post by: SWTrisha on January 31, 2007, 12:31:44 PM
OK I reinstalled it but when I went to leave chat the logout window came up with this: 

Quote
http://alittlebitofmagick.com/Mythica/dologout.php?id=9f7d68da399c90e5b194742db7a4acc5
File Not Found
The requested URL was not found on this server.
Title: Re: FlashChat Integration
Post by: Daniel15 on February 01, 2007, 12:51:02 AM
The logout bug is a known bug... I'll try to fix it in a future release.
Title: Re: FlashChat Integration
Post by: SWTrisha on February 01, 2007, 12:56:35 AM
ok
Title: Re: FlashChat Integration
Post by: rad1701 on February 03, 2007, 05:18:18 PM
Quote from: rad1701 on January 29, 2007, 06:59:43 PM
I've got FlashChat installed and this integration module but have a couple questions.

First - is there a way to make the default to popup instant login (using the normal flashchat.php)?  I tried to modify the chat.template.php to a smaller size but that didn't seem to work.  It always comes up full screen.

I also only seem to be getting a little colon followed by the names of the users in the chat on my site.

Yes, I'm not using the default theme.  Just wanted to know what files I need to modify. 

Here's what I use:
SMF 1.1.1
TinyPortal
Enterprise Theme (by Bloc) - which seems to use the default BoardIndex.template.php
FlashChat 4.7.8


Thanks for any help!

The problem I listed above I'm still having on my Enterprise theme.  The main trouble is the theme does not have a BoardIndex.template.php file, it just has a index.template.php file.  The default BoardIndex.template.php file seems to of been changed automatically when I installed Flashchat with my SMF 1.1.1 forum.

Is there an area of code I can change in my theme specific index.template.php file to get it to show users in the chat properly?  I still only get a little colon at the bottom followed by users in the chat.

Oh, yes I am only using the English language on this board.  Thanks. 

(This is what I mean....)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.treksf.com%2Fimages%2Fuserschat.jpg&hash=ae4739a99dc77d62a51c145d9138113969206a35)
Title: Re: FlashChat Integration
Post by: computel on February 03, 2007, 11:27:26 PM
Has anyone fixed the pop window on exit and it says I'm still in chat when I log out. I looked at 7 pages here and I didn't see the answer or did I miss it.

Thanks
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on February 03, 2007, 11:41:32 PM
To solve the log out pop-up problem:

Find the dologout.php file in your chat folder.
Make a copy, and place the copy in your main SMF root folder.
Edit the 2nd line of the file to reflect the proper path.
This is mine; FlashChat is in the /chat folder.
require_once('chat/inc/common.php');
Title: Re: FlashChat Integration
Post by: wickedstangs on February 04, 2007, 10:13:09 AM
Simplemachines Cowboy Nice it worked for me....
Title: Re: FlashChat Integration
Post by: diva_uno on February 04, 2007, 10:57:35 PM
Quote from: rad1701 on February 03, 2007, 05:18:18 PM
Quote from: rad1701 on January 29, 2007, 06:59:43 PM
I've got FlashChat installed and this integration module but have a couple questions.

First - is there a way to make the default to popup instant login (using the normal flashchat.php)?  I tried to modify the chat.template.php to a smaller size but that didn't seem to work.  It always comes up full screen.

I also only seem to be getting a little colon followed by the names of the users in the chat on my site.

Yes, I'm not using the default theme.  Just wanted to know what files I need to modify. 

Here's what I use:
SMF 1.1.1
TinyPortal
Enterprise Theme (by Bloc) - which seems to use the default BoardIndex.template.php
FlashChat 4.7.8


Thanks for any help!

The problem I listed above I'm still having on my Enterprise theme.  The main trouble is the theme does not have a BoardIndex.template.php file, it just has a index.template.php file.  The default BoardIndex.template.php file seems to of been changed automatically when I installed Flashchat with my SMF 1.1.1 forum.

Is there an area of code I can change in my theme specific index.template.php file to get it to show users in the chat properly?  I still only get a little colon at the bottom followed by users in the chat.

Oh, yes I am only using the English language on this board.  Thanks. 

(This is what I mean....)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.treksf.com%2Fimages%2Fuserschat.jpg&hash=ae4739a99dc77d62a51c145d9138113969206a35)

Your problem is that you are adding the code into you design specific index.template.php file. You need to put it in your default theme index.template.php file. If you put the code in your default file it doesn't matter what template you add - everything should work.

I have a question?

This is the code they have to put the button in the index.template.php:
else {
     echo '<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php">',
     ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url']
     . '/chat_icon.gif" alt="FlashChat" style="margin: 2px 0;"
     border="0" />' : "FlashChat"),'</a>';


This is not a reflection of SMF 1.1.1 - This coding is really old.
Does anyone have any new code?
Title: Re: FlashChat Integration
Post by: diva_uno on February 05, 2007, 12:10:24 AM
Ok - I have a reading problem as I always like to dive into things... it says in your readme.txt

QuoteAlso note that you do not need to edit index.template.php to add a button (like the instructions say to), as this mod does that automatically.

But you actually do have to edit the index.template.php to add the button to each one of your templates. Or at least that is the only way I see it.
Title: Re: FlashChat Integration
Post by: Daniel15 on February 05, 2007, 01:09:20 AM
Quote
Quote from: rad1701 on February 03, 2007, 05:18:18 PM
Quote from: rad1701 on January 29, 2007, 06:59:43 PM
I've got FlashChat installed and this integration module but have a couple questions.

First - is there a way to make the default to popup instant login (using the normal flashchat.php)?  I tried to modify the chat.template.php to a smaller size but that didn't seem to work.  It always comes up full screen.

I also only seem to be getting a little colon followed by the names of the users in the chat on my site.

Yes, I'm not using the default theme.  Just wanted to know what files I need to modify. 

Here's what I use:
SMF 1.1.1
TinyPortal
Enterprise Theme (by Bloc) - which seems to use the default BoardIndex.template.php
FlashChat 4.7.8


Thanks for any help!

The problem I listed above I'm still having on my Enterprise theme.  The main trouble is the theme does not have a BoardIndex.template.php file, it just has a index.template.php file.  The default BoardIndex.template.php file seems to of been changed automatically when I installed Flashchat with my SMF 1.1.1 forum.

Is there an area of code I can change in my theme specific index.template.php file to get it to show users in the chat properly?  I still only get a little colon at the bottom followed by users in the chat.

Oh, yes I am only using the English language on this board.  Thanks. 

(This is what I mean....)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.treksf.com%2Fimages%2Fuserschat.jpg&hash=ae4739a99dc77d62a51c145d9138113969206a35)
Hmm... It seems like Modifications.english.php is not loading properly. Copy all the FlashChat stuff from Themes/default/languages/Modifications.english.php, and place it in Themes/default/index.template.php (above the ?>), and it should start working :)

Quote from: diva_uno on February 05, 2007, 12:10:24 AM
Ok - I have a reading problem as I always like to dive into things... it says in your readme.txt

QuoteAlso note that you do not need to edit index.template.php to add a button (like the instructions say to), as this mod does that automatically.

But you actually do have to edit the index.template.php to add the button to each one of your templates. Or at least that is the only way I see it.
Sorry, that's my fault, I didn't make it clear...
The FlashChat instructions say to edit the default theme to add the button. For this mod, you do not need to edit the default theme, as it's edited automatically. You will still need to edit a custom theme if you have one (usually, the theme author will be able to tell you how to add another button to their theme :))

QuoteThis is the code they have to put the button in the index.template.php:

else {
     echo '<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php">',
     ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url']
     . '/chat_icon.gif" alt="FlashChat" style="margin: 2px 0;"
     border="0" />' : "FlashChat"),'</a>';


This is not a reflection of SMF 1.1.1 - This coding is really old.
Does anyone have any new code?
Yeah, this code is from SMF 1.0. The SMF 1.1.1 code is already added to Themes/default/index.template.php when you install this mod.
Title: Re: FlashChat Integration
Post by: rad1701 on February 05, 2007, 06:38:09 PM
Ok - I fixed my trouble with the details showing of who is in chat.  I had to add this:

// --- Begin FlashChat integration ---
$txt['fc_chat'] = 'Chat';
$txt['fc_in_chat'] = 'in Chat';
$txt['fc_not_found'] = 'FlashChat does not appear to be installed!';
$txt['fc_no_guests'] = 'Sorry, guests aren\'t allowed to use the chat!';
$txt['fc_private_room'] = '<i>private room</i>';
$txt['fc_users_online'] = 'Users currently in chat';
// For 'Who's Online' page
$txt['whoall_chat'] = 'In the <a href=' . $boardurl . '?action=chat">Chatroom</a>';
// --- End FlashChat integration ---


To my index.template.php file in my specific Enterprise theme.  That took care of it.

Now, one last tiny trouble.  Why does it seem even if I leave chat, I still show as a user in chat for a period of time later?  Sometimes along time.  Anyway to fix this logout bug?  Is there a time delay??
Title: Re: FlashChat Integration
Post by: wickedstangs on February 05, 2007, 06:41:21 PM
LOG OUT BUG...
Simplemachir Cowboy posted this
To solve the log out pop-up problem:

Find the dologout.php file in your chat folder.
Make a copy, and place the copy in your main SMF root folder.
Edit the 2nd line of the file to reflect the proper path.
This is mine; FlashChat is in the /chat folder.

Code:
require_once('chat/inc/common.php');

It worked for me...
Title: Re: FlashChat Integration
Post by: Daniel15 on February 06, 2007, 04:33:25 AM
Simplemachines Cowboy, thanks for that fix ;). If the developer of FlashChat doesn't mind, I may automatically do this (create a copy of dologout.php on installation) in a future release of the mod
Title: Re: FlashChat Integration
Post by: perplexed on February 07, 2007, 11:22:31 AM
hi Daniel

I'm currently using the integrated chat mod but there are a couple of problems for us - other external rooms are accessible and cant be switched off, and some members have problems with java, so they dont use it at all.

So, this flashchat thing, this is a chat program/window that is running on your own server and only your chat rooms can be viewable/accessible?  No other chatrooms unrelated to your own site can be seen?  Is that right?

With the current chat everything is set by permissions in admin, but with this one, is it for logged in members only, or can guests get access too?  I dont want guests to have access.

You mentioned above that it will not slow your forum down.  Is that definite as sometimes we have issues with speed?

Lastly, the other chat mod doesnt use up my bandwidth, but this one presumably will since its hosted on my server.  Any idea on how much?

~thanks
Title: Re: FlashChat Integration
Post by: SWTrisha on February 07, 2007, 08:14:08 PM
Hi Daniel.

I installed your package no problems arrived until I clicked the home button to go back into the forum and I don't get access, I get this:

QuoteDatabase Error
Table 'alittle_smf1.flashchat_connections' doesn't exist
File: /home/alittle/public_html/Mythica/Sources/BoardIndex.php
Line: 387 

help please
Title: Re: FlashChat Integration
Post by: Daniel15 on February 08, 2007, 12:36:56 AM
QuoteSo, this flashchat thing, this is a chat program/window that is running on your own server and only your chat rooms can be viewable/accessible?  No other chatrooms unrelated to your own site can be seen?  Is that right?
Yeah, it's on your own server. Only admins can create the chat rooms, and no unrelated rooms will be seen.

QuoteWith the current chat everything is set by permissions in admin, but with this one, is it for logged in members only, or can guests get access too?  I dont want guests to have access.
Only registered members can access the chat.

QuoteYou mentioned above that it will not slow your forum down.  Is that definite as sometimes we have issues with speed?

Lastly, the other chat mod doesnt use up my bandwidth, but this one presumably will since its hosted on my server.  Any idea on how much?
You're best off posting this on the tufat.com forum. I'm not a developer of FlashChat (I just do this integration), and as such I don't have definate answers to these questions.
Title: Re: FlashChat Integration
Post by: wickedstangs on February 08, 2007, 12:53:16 AM
Daniel can you pm me
Title: Re: FlashChat Integration
Post by: perplexed on February 08, 2007, 07:19:47 AM
thanks Daniel, that's a great help, cheers
Title: Re: FlashChat Integration
Post by: perplexed on February 11, 2007, 03:38:45 PM
apart from what's already mentioned on the previous 8 pages, does anyone know of any conflict this mod may have with other mods?   
Title: Re: FlashChat Integration
Post by: Endless Flight on February 11, 2007, 06:30:53 PM
I've integrated FlashChat into my SMF 1.1.1 forum, but I have a problem with the User Online section. I have the googlebot mod on my site. I've snapped a picture and placed it below.

Can anybody help me with this?
Title: Re: FlashChat Integration
Post by: Daniel15 on February 12, 2007, 04:17:27 AM
Quote from: perplexed on February 11, 2007, 03:38:45 PM
apart from what's already mentioned on the previous 8 pages, does anyone know of any conflict this mod may have with other mods?  

It only edits:
1) The board index (Users Online list)
2) The SSI.php file (Users Online)
3) index.php (to add the chat action)

The only mods it could interfere with are mods that edit the users online list (Googlebot and Spiders is the only one I know of, but there may be more).

Quote from: Endless Flight on February 11, 2007, 06:30:53 PM
I've integrated FlashChat into my SMF 1.1.1 forum, but I have a problem with the User Online section. I have the googlebot mod on my site. I've snapped a picture and placed it below.

Can anybody help me with this?
Check the Themes/default/BoardIndex.template.php file to see if it was edited properly. The edits to do when the Googlebot and Spiders mod is installed may be found at http://www.simplemachines.org/community/index.php?topic=139769.msg895270#msg895270.
If you don't know how to do this, attach your BoardIndex.template.php file here and I'll see if I can do this for you :)

Quote from: wickedstangs on February 08, 2007, 12:53:16 AM
Daniel can you pm me
PM you? You mean on this forum?
Title: Re: FlashChat Integration
Post by: perplexed on February 12, 2007, 06:59:38 AM
Quote from: Daniel15 on February 12, 2007, 04:17:27 AM
Quote from: perplexed on February 11, 2007, 03:38:45 PM
apart from what's already mentioned on the previous 8 pages, does anyone know of any conflict this mod may have with other mods?   

It only edits:
1) The board index (Users Online list)
2) The SSI.php file (Users Online)
3) index.php (to add the chat action)

The only mods it could interfere with are mods that edit the users online list (Googlebot and Spiders is the only one I know of, but there may be more).

Thanks Daniel, is it best to install flashchat mod before googlebots or doesnt it make any difference?

Also, what about the users online today mod, can you foresee any problems with that?

~thanks
Title: Re: FlashChat Integration
Post by: Pacov on February 12, 2007, 06:32:27 PM
hELP ME PLEASE

When i'm trying to install flash chat mod 1.1.1 I am getting a message

./chat/inc/flashChatTag.php   test faild

Why and what can i make to repare this ???
Title: Re: FlashChat Integration
Post by: Pacov on February 12, 2007, 06:32:48 PM
hELP ME PLEASE

When i'm trying to install flash chat mod 1.1.1 I am getting a message

./chat/inc/flashChatTag.php   test faild

Why and what can i make to repare this ???
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on February 12, 2007, 09:50:34 PM
tschieb1,
In the file /inc/flashChatTag.php, find:
$tag .= "'width','".$height."',\n";
$tag .= "'height','".$height."',\n";


Replace with:
// Bug fix by Daniel15 for SMF FlashChat Integration
//$tag .= "'width','".$height."',\n";
$tag .= "'width','".$width."',\n";
$tag .= "'height','".$height."',\n";
Title: Re: FlashChat Integration
Post by: Pacov on February 13, 2007, 11:35:53 AM
Quote from: Simplemachines Cowboy on February 12, 2007, 09:50:34 PM
tschieb1,
In the file /inc/flashChatTag.php, find:
$tag .= "'width','".$height."',\n";
$tag .= "'height','".$height."',\n";


Replace with:
// Bug fix by Daniel15 for SMF FlashChat Integration
//$tag .= "'width','".$height."',\n";
$tag .= "'width','".$width."',\n";
$tag .= "'height','".$height."',\n";


I can't find it. This is what I have !!

<?php
   function flashTag($id, $movie, $width = '100%', $height = '100%', $params = array(), $base = '') {
      $flashVars = array();

      foreach($params as $name => $value) {
         if($value) $flashVars[] = "$name=" . urlencode($value);
      }
      
      $fv = join('&', $flashVars);
      $tag = '';
      //for file sharing      
      //$tag .= '<div style="position:absolute;left:0px;top:0px;visibility:hidden;" id="datadiv"><iframe src="about:blank" height="0" width="0" name="dataframe"></iframe></div>';
      
      $tag .= "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" WIDTH=\"$width\" HEIGHT=\"$height\"  id=\"$id\" ALIGN=\"\">";
      $tag .= "<PARAM NAME=\"FlashVars\" VALUE=\"$fv\">";
      $tag .= "<PARAM NAME=\"movie\" VALUE=\"$movie\">";
      $tag .= "<PARAM NAME=\"quality\" VALUE=\"high\">";
      $tag .= "<PARAM NAME=\"menu\" VALUE=\"true\">";
      $tag .= "<PARAM NAME=\"scale\" VALUE=\"noscale\">";
      $tag .= "<PARAM NAME=\"salign\" VALUE=\"LT\">";
      $tag .= "<PARAM NAME=\"BASE\" VALUE=\"$base\">";
      $tag .= "<EMBED src=\"$movie\" FlashVars=\"$fv\" menu=\"false\" quality=\"high\" scale=\"noscale\" salign=\"LT\" WIDTH=\"$width\" HEIGHT=\"$height\" NAME=\"$id\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\" BASE=\"$base\"></EMBED>";
      $tag .= "</OBJECT>";

      return $tag;
   }

   function flashChatTag($width, $height, $params = array(), $base = '') {
      $tag  = flashTag('flashchat', $base . 'preloader.swf', $width, $height, $params, $base);
      $tag .= '<script type="text/javascript" src="' . $base . 'js.php"></script>';

      return $tag;
   }
?>
Title: Re: FlashChat Integration
Post by: Alejandro1 on February 13, 2007, 12:16:18 PM
Daniel,

I bought the FlashChat script, no problem.
I installed it, no problem.
I tested the chat, no problem.

I downloaded your FlashChat Integration, no problem.
I installed your modification, no problem.

BUT..... ;) .....no button, no users online :(

Probably because I run my board in dutch-utf8.

Could you please tell me what I should change in my /theme/language, so it will work?

Thanx!

Title: Re: FlashChat Integration
Post by: IKShadow on February 13, 2007, 02:46:41 PM
Why do i always need to log in ?

Is there a way to autologin with already loged user in smf ?

Any settings for flash chat in admin area ?
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on February 13, 2007, 05:39:13 PM
tschieb1,
Refer to my pm.
You have an older version of flashchat. Install the latest and the mod will work.

IKShadow,
Did you install flashchat as a standalone or in SMF CMS mode?
If you installed as a standalone, you will have to log in each time because flashchat cannot read from the smf database. CMS will integrate with the database and if you are logged into your smf forum, it will auto log you into flashchat.

Flashchat does not provide any controls in the smf admin area.
All flashchat admin is done thru its own control panel at chat/admin/index.php.
Title: Re: FlashChat Integration
Post by: perplexed on February 13, 2007, 07:42:00 PM
Quote from: Simplemachines Cowboy on February 03, 2007, 11:41:32 PM
To solve the log out pop-up problem:

Find the dologout.php file in your chat folder.
Make a copy, and place the copy in your main SMF root folder.
Edit the 2nd line of the file to reflect the proper path.
This is mine; FlashChat is in the /chat folder.
require_once('chat/inc/common.php');


whereabouts in the file do you put that line of code?
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on February 13, 2007, 09:27:27 PM
That line of code represents what I had to edit to make it work under my file system.

If you read it closely, it says:
Edit the 2nd line of the file to reflect the proper path.

So, my flashchat is in the chat folder, so I had to change the second line from inc/common.php to chat/inc/common.php in my system. Yours may be different.
Title: Re: FlashChat Integration
Post by: Alejandro1 on February 14, 2007, 04:06:57 AM
Quote from: Alejandro1 on February 13, 2007, 12:16:18 PM
Daniel,

I bought the FlashChat script, no problem.
I installed it, no problem.
I tested the chat, no problem.

I downloaded your FlashChat Integration, no problem.
I installed your modification, no problem.

BUT..... ;) .....no button, no users online :(

Probably because I run my board in dutch-utf8.

Could you please tell me what I should change in my /theme/language, so it will work?

Thanx!



Or is it possible that it is due to the fact that Flashchat is now version 4.7.9? I tried changing BoardIndex.template by adding the flashchatintegration, the index.template and even the index.english and english.dutch-utf8, but nothing seems to help.

I fixed my chatbutton-challenge, but I am still stuck with the fact that the online users do not show up anywhere.

Some assistance would be greatly appreciated.

I am running:
SMF 1.1.2
TP 0.9.7
FlashChat 4.7.9
Title: Re: FlashChat Integration
Post by: IKShadow on February 14, 2007, 05:56:13 AM
Quote from: Simplemachines Cowboy on February 13, 2007, 05:39:13 PM
IKShadow,
Did you install flashchat as a standalone or in SMF CMS mode?
If you installed as a standalone, you will have to log in each time because flashchat cannot read from the smf database. CMS will integrate with the database and if you are logged into your smf forum, it will auto log you into flashchat.

Flashchat does not provide any controls in the smf admin area.
All flashchat admin is done thru its own control panel at chat/admin/index.php.

Thanks it worked. I reinstalled in CMS mode and now Iam auto logged.


Just to test it I made new test user and try to use chat, after I clicked on link index.php?action=chat flash load and I get msg You have been baned

I checked admin area of flash chat:
Bans
No bans found

And also dont have any bans in SMF forums

Any idea whats wrong ?
Title: Re: FlashChat Integration
Post by: perplexed on February 14, 2007, 07:16:11 AM
Quote from: Simplemachines Cowboy on February 13, 2007, 09:27:27 PM
That line of code represents what I had to edit to make it work under my file system.

If you read it closely, it says:
Edit the 2nd line of the file to reflect the proper path.

So, my flashchat is in the chat folder, so I had to change the second line from inc/common.php to chat/inc/common.php in my system. Yours may be different.

*makes appointment with the optician*   sorry about that, it was after midnight when I read it.  I'll try it now.

Quote from: Alejandro1 on February 14, 2007, 04:06:57 AM
Or is it possible that it is due to the fact that Flashchat is now version 4.7.9?

Some assistance would be greatly appreciated.

I am running:
SMF 1.1.2
TP 0.9.7
FlashChat 4.7.9

I installed flashchat 4.7.9 yesterday and it's ok for me.  I have smf1.1.1, and tinyportal 0.9.7.1 installed and its all good on the default theme.
Title: Re: FlashChat Integration
Post by: perplexed on February 14, 2007, 07:17:44 AM
Quote from: IKShadow on February 14, 2007, 05:56:13 AM
Quote from: Simplemachines Cowboy on February 13, 2007, 05:39:13 PM
IKShadow,
Did you install flashchat as a standalone or in SMF CMS mode?
If you installed as a standalone, you will have to log in each time because flashchat cannot read from the smf database. CMS will integrate with the database and if you are logged into your smf forum, it will auto log you into flashchat.

Flashchat does not provide any controls in the smf admin area.
All flashchat admin is done thru its own control panel at chat/admin/index.php.

Thanks it worked. I reinstalled in CMS mode and now Iam auto logged.


Just to test it I made new test user and try to use chat, after I clicked on link index.php?action=chat flash load and I get msg You have been baned

I checked admin area of flash chat:
Bans
No bans found

And also dont have any bans in SMF forums

Any idea whats wrong ?
previously in this thread, Daniel said to contact tufat.com about these kind of problems as its flashchat and not the mod.
Title: Re: FlashChat Integration
Post by: IKShadow on February 14, 2007, 07:35:04 AM
Quote from: perplexed on February 14, 2007, 07:17:44 AM
previously in this thread, Daniel said to contact tufat.com about these kind of problems as its flashchat and not the mod.

If its working for others on same system, somehow I doubt that tufat will help me.

I notice that Administrators and Super Mods can normaly log in.

There is also a trick if I give some user Super Moderator permission and he log ins to flashchat once then I remove him Super Mod permission and he still can log in to flash chat normaly.

It looks like "normal" users are not synced.

I notice some if tables are empty, like config.

Tried to reinstall it, use it without FlashChat Integration mod and always have same problem.


Here is my /chat/inc/config.php

<?php
//error_reporting(E_ALL ^ E_NOTICE);

$GLOBALS['fc_config'] = array(
'backtimeOnLogin' => 0//set to non-zero value to force loading previous messages since XXX minutes ago, upon login
'backtimeMax'     => 5//sets the maximum number of minutes the backtime command will serve up, use 0 to have no max.
'backMax'    => 30//sets the maximum number of lines the back command will serve up, use 0 to have no max.
'timeOffset'    => 0,     //sets server time offset (needed only to correct server timezone problem), minutes
'debug'           => true//set to true to run in debug mode
'version'         => '4.7.9'//architecture release . feature release . patch release
'enableSocketServer' => false//set to true to enable socket server - see online PDF docs for more details
'javaSocketServer' => false// leave this as false unless using the java socket server
'liveSupportMode' => false,//set to true to use chat in "Live Support" mode
'errorReports'    => false,//set to true to enable error reports
'enableBots'      => false//set to true to enable Bots
'bot_ip'          => '0.0.0.0'//virtual ip of bot

'hideSelfPopup'   => false,//set to false to allow self popup menu
'showConfirmation'=> true//set to true to allow confirmation popup window for admin (moderator)
'labelFormat'     => "AVATAR[USER] TIMESTAMP: "//possible values are any combinations of AVATAR, USER and TIMESTAMP
'timeStampFormat' => 'g:i a'//pattern for PHP date function

'loginsPerIP' => 10// number of logins allowed per IP address
'disabledIRC' => '',// you can put list of IRC commands to disable here, like 'back,backtime'
'mods' => 'addbot,removebot,startbot,killbot'//Moderators Restrictions (which IRC commands are disabled for Moderators)
'modsAdminRestrictions'=> 'bots,uninstall,connections,users'//Moderators Restrictions in admin section (admin.php), like 'bots,uninstall,connections,users'

'maxMessageSize'  => 500,  //maximum input text size, # characters
'maxMessageCount' => 100,  //maximum number of the messages stored in the chat log

'userListAutoExpand' => false,   //if true user list opens all the rooms with users in them

'showLogoutWindow'   => true,     // if false, then use only the ....src=logout.php method, but do not use the popup method at all
'logoutWindowDisplayTime' => 3// in seconds
'floodInterval' => 1// in seconds, the amount of time that must pass before the user posts another message
'inactivityInterval' => 24*60*60// in seconds, if a user has FlashChat open for 'inactivityInterval' seconds, but they
      // do not type anything, then the user should be automatically logged-out of the chat
      // Note 60*60 - one hour

'splashWindow' => false//splash non active chat window when new message is received

//Rooms config
'defaultRoom'     => 1,      //primary key of room where all users go after login
'autoremoveAfter' => 30,    //number of seconds before room is removed
'roomTitleFormat' => 'ROOM_LABEL - USER_COUNT'//format string for room title in userlist
'maxUsersPerRoom' => 50,
'listOrder'       => 'MOD_THEN_AZ', // options: AZ, ENTRY, MOD_THEN_AZ, MOD_THEN_ENTRY, STATUS, MOD_STATUS
// AZ = alphabetical order, A to Z
// ENTRY = by order of entry only
// MOD_THEN_AZ = same as AZ, but moderators at top
// MOD_THEN_ENTRY = same as ENTRY, but moderators at top
// STATUS = by order of 'status' (Here / Busy / Away / BRB)
// MOD_STATUS = same as STATUS, but moderators at top

//your CMS system
'CMSsystem' => 'smfCMS2',// defaultCMS - default CMS, blank - stateless CMS

//Some systems use UTF-8 encoding for user names. If you are using some CMS systems with non-English character sets, you may need to enable UTF-8 decoding for user names.
'loginUTF8decode' => false,// possible values - true, false

//option
'encryptPass' => 1,//option to encrypt user password for defaultCMS, can be 1 - encrypt and 0 - no encrypt

 //motd & welcome message flags
'auto_motd'  => 0,          // 1 for on, 0 for off (on means it is displayed upon chat entry)
'auto_topic' => 0,   // 1 for on, 0 for off (on means it is displayed upon room entry)

// Roles config
'adminPassword' => 'adminpass',   //allows any user to login as a administrator - stateless CMS mode only
'moderatorPassword' => 'modpass'//allows any user to login as a moderator - stateless CMS mode only
'spyPassword'   => 'spypass',     //allows any user to login as a spy - stateless CMS mode only

'layouts' => array(), // do not change this

//Sound config
'sound' => array(
'pan'     => 0, // range from -100 to 100 (left ... right)
'volume'  => 75 // default sound volume, in percent
'muteAll' => false, // true = checked by default, false = unchecked
'muteSubmitMessage'   => false,
'muteReceiveMessage'   => false,
'muteOtherUserEnters'   => false,
'muteLeaveRoom'   => false,
'muteRoomOpenClose'  => false,
'muteInitialLogin'  => false,
'muteLogout'  => false,
'muteComboListOpenClose'  => false,
'muteUserBannedBooted'  => true,
'muteInvitationReceived'  => false,
'mutePrivateMessageReceived' => false,
'muteUserMenuMouseOver'  => false,
'mutePopupWindowOpen'  => false,
'mutePopupWindowCloseMin'  => false,
'muteEnterRoom'         => true,
'mutePressButton'      => true
),

//Themes config
'themes' => array(),
'defaultTheme' => 'macintosh',

//Skins config (available skins in /inc/skins; example: 'defaultSkin' => <swf_name>)
'skin' => array(),
'defaultSkin' => 'aqua_skin',

//Text config
'text' => array(
//defaults (presence : is that option visible or hiden)
'itemToChange' => array(
'myTextColor' => false,
'mainChat'  => array( 'presence' => true'fontSize' => 13'fontFamily' => 'Arial'),
'interfaceElements' => array( 'presence' => true'fontSize' => 13'fontFamily' => 'Arial'),
'title'  => array( 'presence' => true'fontSize' => 13'fontFamily' => 'Arial')
),
//posible values (to add new value just type something like this : 'itm10' => 25)
'fontSize' => array(
'itm0' => 8,
'itm1' => 9,
'itm2' => 10,
'itm3' => 11,
'itm4' => 12,
'itm5' => 13,
'itm6' => 14,
'itm7' => 16,
'itm8' => 18,
'itm9' => 20
),
'fontFamily' => array(
'itm0' => 'Arial',
'itm1' => 'Times',
'itm2' => 'Courier',
'itm3' => 'Verdana',
'itm4' => 'Georgia'
),
),

//Preloader config
'preloader' => array(
'text' => array(
'settings' => 'Loading settings...',
'smilies'  => 'Loading smiles....',
'mainchat' => 'Loading main chat window...',
'starting' => 'Starting chat system...',
'okText'   => 'OK'
),
'fontFamily' => 'Verdana',
'fontSize'   => '11',
'fontColor'  => 0x000000,
'BGColor'    => 0xFFFFFF,
'barColor'   => 0x000000
),

//Login config
'login' => array(
'btn' => 'true'// if false, "Login" button is hidden
'title_bar' => 'true'// if false, title bar is hidden
'theme' => 'macintosh',
'width' => '',//400,
'height' => '',//300,
'username' => array(
'req' => 'false',// if true, message appears if not inputted
'align' => 'right',// 'left' or 'right'
'x_label' => '',
'y_label' => '',
'x_field'   => '',
'y_field'   => '',
'type' => 'text',//'text' or 'password' (if password, **** appears)
'width' => 150
),
'password' => array(
'req' => 'false',
'align' => 'right',
'x_label' => '',
'y_label' => '',
'x_field'   => '',
'y_field'   => '',
'type' => 'password',
'width' => 150
),
'lang' => array(
'align' => 'right',
'x_label' => "",
'y_label' => "",
'x_field'   => "",
'y_field'   => "",
),
'title' => array(
'align' => 'center',
'x_label' => '',
'y_label' => '',
'x_field'   => '',
'y_field'   => '',
),
),

//Language config. For some languages like Japanese or Chinese.
//This option allows ctrl+enter vs enter and always enables the send button.
'special_language' => array(
'itm0' => 'jp',
'itm1' => 'cn'
),

//Smile settings
//To disable any smilie, comment or delete the appropriate line.
'smiles' => array(
'smi_smile' => ':) :-)',
'smi_sad' => ':( :-(',
'smi_wink' => ';) ;-)',
'smi_laugh' => ':D :-D',
'smi_red' => ':red:',
'smi_tongue' => ':p :-p',
'smi_ask' => ':? :-?',
'smi_awe' => ':awe:',
'smi_baby' => ':baby:',
'smi_cool' => '8) 8-)',
'smi_evil' => ':evil:',
//'smi_finger' => ':finger:',
'smi_grin' => ':grin:',
'smi_heart' => ':heart:',
'smi_kiss' => ':kiss:',
'smi_newline' => ':break:',
'smi_ninja' => ':ninja:',
'smi_roll' => ':roll:',
'smi_roll_eyes' => ':rolleyes:',

'smi_slash' => ':! :-!',
'smi_sleep' => ':zzz:',

'smi_weird' => ':weird:',
'smi_whistle' => ':whistle:',

'smi_wonder' => '8s',

//addon 1
'smi_call' => ':call:',
'smi_cash' => ':cash:',
'smi_shock' => ':shock:',
'smi_check' => ':check:',

//addon 2
'smi_ball' => ':ball:',
'smi_clap' => ':clap:',
'smi_cry' => ':cry:',
'smi_luck' => ':luck:',
'smi_nono' => ':nono:',
'smi_punch' => ':Punch:',
'smi_skull' => ':skull:',
'smi_yeah' => ':yeah:',
'smi_yinyang' => ':69:',

//addon 3
'smi_earth' => ':earth:',
'smi_huh' => ':huh:',
'smi_hypno' => ':hypno:',
'smi_java' => ':java:',
'smi_no' => ':no:',
'smi_rain' => ':rain:',
'smi_rose' => ':rose:',
'smi_usa' => ':usa:',

//addon 4
'smi_big_grin' => ':biggrin:',
'smi_faint' => ':faint:',
'smi_ill_content' => ':mean:',
'smi_meow' => ':cat:',
'smi_thumbs_down' => ':down:',
'smi_thumbs_up' => ':up:',
'smi_woof' => ':dog:',

'smi_beer' => ':beer:',
'smi_music' => ':music:',
'smi_reading' => ':read:',
'smi_word_bubble' => ':speak:',

'smi_female' => ':female:',
'smi_female2' => ':ms:',
'smi_male' => ':male:',
'smi_male2' => ':mr:',
'smi_admin' => ':admin:',
'smi_moderator' => ':mod:',

'smi_basketball' => ':bball:',
'smi_bowling' => ':bowl:',
'smi_cricket' => ':cricket:',
'smi_football' => ':fball:',
'smi_golf' => ':golf:',
'smi_hockey' => ':hockey:',
'smi_sailing' => ':sail:',
'smi_soccer' => ':soccer:',
'smi_tennis' => ':tennis:',

'smi_AustraliaFlag' => ':au:',
'smi_Brazil' => ':br:',
'smi_CanadaFlag' => ':ca:',
'smi_China' => ':cn:',
'smi_Spain' => ':es:',
'smi_European_Union' => ':eu:',
'smi_France' => ':fr:',
'smi_Germany' => ':de:',
'smi_Greece' => ':gr:',
'smi_IndianFlag' => ':in:',
'smi_Italy' => ':it:',
'smi_Japan' => ':jp:',
'smi_MexicoFlag' => ':mx:',
'smi_PolandFlag' => ':pl:',
'smi_PortugalFlag' => ':pt:',
'smi_Russia' => ':ru:',
'smi_Sweeden' => ':se:',
'smi_UkraineFlag' => ':ua:',
'smi_UK' => ':uk:',
'smi_US_Map' => ':us:',
),

//Avatar settings
'avatars' => array(
'mod_only' => 'smi_admin,smi_moderator',

// for standard users (& customers, if using support mode)
'user' => array(
'male' => array(
'mainchat' => array(
'default_value' => 'smi_male'// a smilie code
'default_state' => false// true = unchecked/off by default
'allow_override' => true// if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_male'// a smilie code
'default_state' => true// true = unchecked/off by default
'allow_override' => true// if false, cannot be changed (combo box is disabled)
),
),
'female' => array(
'mainchat' => array(
'default_value' => 'smi_female'// a smilie code
'default_state' => false// true = unchecked/off by default
'allow_override' => true// if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_female'// a smilie code
'default_state' => true// true = unchecked/off by default
'allow_override' => true// if false, cannot be changed (combo box is disabled)
),
),
),
// for administrators
'admin' => array(
'male' => array(
'mainchat' => array(
'default_value' => 'smi_admin'// a smilie code
'default_state' => false// true = unchecked/off by default
'allow_override' => true// if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_admin'// a smilie code
'default_state' => true// true = unchecked/off by default
'allow_override' => true// if false, cannot be changed (combo box is disabled)
),
),
'female' => array(
'mainchat' => array(
'default_value' => 'smi_admin'// a smilie code
'default_state' => false// true = unchecked/off by default
'allow_override' => true// if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_admin'// a smilie code
'default_state' => true// true = unchecked/off by default
'allow_override' => true// if false, cannot be changed (combo box is disabled)
),
),
),
// for moderators
'moderator' => array(
'male' => array(
'mainchat' => array(
'default_value' => 'smi_moderator'// a smilie code
'default_state' => false// true = unchecked/off by default
'allow_override' => true// if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_moderator'// a smilie code
'default_state' => true// true = unchecked/off by default
'allow_override' => true// if false, cannot be changed (combo box is disabled)
),
),
'female' => array(
'mainchat' => array(
'default_value' => 'smi_moderator'// a smilie code
'default_state' => false// true = unchecked/off by default
'allow_override' => true// if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_moderator'// a smilie code
'default_state' => true// true = unchecked/off by default
'allow_override' => true// if false, cannot be changed (combo box is disabled)
),
),
),
),

//Message processing
'msgRequestInterval' => 3, //chat refresh time, seconds
'msgRequestIntervalAway' => 15//chat refresh time in away state, seconds
                                //NOTE: it should not be bigger than a half of autologoutAfter
                                //otherwise your users risk being disconnected in away mode

'msgRemoveAfter'  => 24*3600     //messages removed after this time, seconds

//Connection processing
'autologoutAfter' => 60,  //time of pooling inactivity after which user is considered logged off, seconds
'autocloseAfter'  => 3600,//time of pooling inactivity after which connection is removed from database, seconds
'helpUrl'         => 'http://tufat.com/docs/flashchat/index.html'//you can use also help.php

//Ban processing
'autounbanAfter' => 36000,  //time after user is un-banned, seconds

//Language options
'languages' => array(), //do not change this
'defaultLanguage' => 'en', //two-letter code of the default language (see below)
'allowLanguage' => true,    //allow user to choose another language

'base' => '',

//Chat server options
'ChatOwner' => array(
1, // replace with your own values for user names
//2, // look in users table for these values
//3, // add extra lines if required, delete if you need less than 3 users in table
),

'commands' => array(
'showIP'   => true, // show user IP and host at /who if set to true
'userPM'   => true, // set to true to output list of user commands to a PM window, false to chat window
'adminPM'  => true, // set to true to output list of moderator commands to a PM window, false to chat window
'maxRooms' => 8, // max number of Public Rooms
),

//external sound options
'sound_options' => array(
'RingBell'         => 'sounds/tin_can.mp3',
'LeaveRoom'        => 'sounds/door_shut.mp3',
'OtherUserEnters'   => 'sounds/jetsons.mp3',
'ReceiveMessage'    => 'sounds/aol_receive_message.mp3',
'SubmitMessage'     => 'sounds/aol_send_message.mp3',
'RoomOpenClose'  => 'sounds/_default.mp3',
'InitialLogin'  => 'sounds/harp_cord.mp3',
'Logout'  => 'sounds/high_low_chord.mp3',
'ComboListOpenClose'  => 'sounds/mouse_over_6.mp3',
'UserBannedBooted'  => 'sounds/chime.mp3',
'InvitationReceived'  => 'sounds/three_notes.mp3',
'PrivateMessageReceived' => 'sounds/aol_receive_message.mp3',
'UserMenuMouseOver'  => 'sounds/mouse_over_1.mp3',
'PopupWindowOpen'  => 'sounds/air_swoosh_2.mp3',
'PopupWindowCloseMin'  => 'sounds/mouse_over_2.mp3',
'EnterRoom'         => 'sounds/ta_da.mp3',
'PressButton'      => 'sounds/activate_button.mp3'
),
//---
//File sharing options
// to disable file sharing, go to /inc/layouts/user.php and set allowFileShare to 'false'
'filesharing' => array(
'allowShareRoom'   => false,//moderators can always share with all users in a room - this option is only for non-moderators
'allowShareChat'   => false,//moderators can always share with all users in a chat - this option is only for non-moderators
'allowFileExt'     => 'zip,rar,jpg,gif,sit,pdf',// allowed file extensions, comma separated (to allow all extensions set to '')
'maxFileSize'      => 0.5*1024*1024,//max file size in bytes (2*1024*1024 equals 2 Mb)
'maxFileHoursLife' => 0.5// time in hours to store the file on the server (file will be deleted after this time)
),

'avatarbgloading' => array(
'allowFileExt'     => 'jpg',// allowed file extensions, comma separated (to allow all extensions set to '')
'maxFileSize'      => 0.5*1024*1024,//max file size in bytes (1024*1024 equals 1 Mb)
'maxFileHoursLife' => 24*31// time in hours to store the file on the server (file will be deleted after this time)
),

'photoloading' => array(
'allowFileExt'     => 'jpg,gif,png',// allowed file extensions, comma separated (to allow all extensions set to '')
'maxFileSize'      => 0.1*1024*1024,//max file size in bytes (1024*1024 equals 1 Mb)
'maxFileHoursLife' => 24*31// time in hours to store the file on the server (file will be deleted after this time)
),

//---
//Logout behavior
'logout' => array(
    
'close'    => false// if true, then FlashChat window is closed upon logout
    
'redirect' => false// redirectURL must be a valid URL
    
'url'     => 'http://www.tufat.com/chat.php'// 'redirect' must be set to true for this to work
    
'window'   => '_blank'// the window to open into. possible values: _blank, _self, _parent, or a named window
),
//---
//module settings (anchored SWF/JPG file)
//banner.swf is a simple Flash banner ad, moduleText.swf is an advanced module with bi-directional communication between FlashChat and the module

'module' => array(
  'anchor'  => '0',//the anchor point: -1,0,1,2,3 or 4 (0=centered,1-4=corners of space below roomlist) + 5-14 points
  //anchor of -1 means that module will occupy a floating window (not anchored with flashchat template)
'path'    => '',//set to '' to disable. To see how this works, use 'banner.swf' or 'moduleTest.swf'
  'stretch' => 'true',// if true, anchored SWF is stretched horizontally & vertically to fill all available space
'float_x' => '300'// the default "x" position of the floating window (when anchor = -1)
 
'float_y' => '200'// the default "y" position of the floating window (when anchor = -1)
 
'float_w' => '200'// the default width of the floating window (when anchor = -1)
 
'float_h' => '300'// the default height of the floating window (when anchor = -1)
 ),

 // This 'module' block demonstrates how to load the banner ad module (if present in the /modules/ folder)
/*
'module' => array(
  'anchor'  => '0',//the anchor point: -1,0,1,2,3 or 4 (0=centered,1-4=corners of space below roomlist) + 5-14 points
  //anchor of -1 means that module will occupy a floating window (not anchored with flashchat template)
'path'    => 'modules/banner/banner_ad.swf',//set to '' to disable. To see how this works, use 'banner.swf' or 'moduleTest.swf'
  'stretch' => 'true',// if true, anchored SWF is stretched horizontally & vertically to fill all available space
'float_x' => '300', // the default "x" position of the floating window (when anchor = -1)
  'float_y' => '200', // the default "y" position of the floating window (when anchor = -1)
  'float_w' => '200', // the default width of the floating window (when anchor = -1)
  'float_h' => '300', // the default height of the floating window (when anchor = -1)
 ),
 */

 // This 'module' block demonstrates how to load two modules simultaneously
 /*
'module' => array(
  'anchor'  => '0,-1',//the anchor point: -1,0,1,2,3 or 4 (0=centered,1-4=corners of space below roomlist) + 5-14 points
  //anchor of -1 means that module will occupy a floating window (not anchored with flashchat template)
'path'    => 'modules/mp3_player/mp3player.swf,modules/mp3_player/mp3player.swf',//set to '' to disable. To see how this works, use 'banner.swf' or 'moduleTest.swf'
  'stretch' => 'true,true',// if true, anchored SWF is stretched horizontally & vertically to fill all available space
'float_x' => '300,300', // the default "x" position of the floating window (when anchor = -1)
  'float_y' => '200,200', // the default "y" position of the floating window (when anchor = -1)
  'float_w' => '300,300', // the default width of the floating window (when anchor = -1)
  'float_h' => '300,300', // the default height of the floating window (when anchor = -1)
 ),
 */
);

if(!
$GLOBALS['fc_config_stop'])
{
require_once(INC_DIR 'flashChatTag.php');

require_once(INC_DIR 'layouts/admin.php');
require_once(INC_DIR 'layouts/moderator.php');
require_once(INC_DIR 'layouts/spy.php');
require_once(INC_DIR 'layouts/user.php');
require_once(INC_DIR 'layouts/customer.php');

//SKINS: To disable a skin, comment or delete the appropriate line

require_once(INC_DIR 'skins/default_skin.php');
require_once(INC_DIR 'skins/xp_skin.php');
require_once(INC_DIR 'skins/aqua_skin.php');
require_once(INC_DIR 'skins/gradient_skin.php');

//THEMES: To disable a color theme, comment or delete the appropriate line

require_once(INC_DIR 'themes/xp.php');
require_once(INC_DIR 'themes/macintosh.php');
require_once(INC_DIR 'themes/gradient.php');
require_once(INC_DIR 'themes/navy.php');
require_once(INC_DIR 'themes/metallic.php');
require_once(INC_DIR 'themes/tropical.php');
require_once(INC_DIR 'themes/aqua.php');
require_once(INC_DIR 'themes/olive.php');
require_once(INC_DIR 'themes/pink.php');
require_once(INC_DIR 'themes/oak.php');
require_once(INC_DIR 'themes/black.php');

//LANGUAGES: To disable a language, comment or delete the appropriate line
require_once(INC_DIR 'langs/en.php'); //English
require_once(INC_DIR 'langs/gm.php'); //German
require_once(INC_DIR 'langs/si.php'); //Spanish - Informal
require_once(INC_DIR 'langs/sf.php'); //Spanish - Formal
require_once(INC_DIR 'langs/du.php'); //Dutch
require_once(INC_DIR 'langs/it.php'); //Italian
require_once(INC_DIR 'langs/sv.php'); //Sweedish
require_once(INC_DIR 'langs/gr.php'); //Greek
require_once(INC_DIR 'langs/ru.php'); //Russian
require_once(INC_DIR 'langs/ua.php'); //Ukrainian
require_once(INC_DIR 'langs/he.php'); //Hebrew
require_once(INC_DIR 'langs/ar.php'); //Arabic
require_once(INC_DIR 'langs/tr.php'); //Turkish
require_once(INC_DIR 'langs/ro.php'); //Romanian
//require_once(INC_DIR . 'langs/bg.php'); //Bulgarian
require_once(INC_DIR 'langs/pt.php'); //Portugal Portuguese
require_once(INC_DIR 'langs/br.php'); //Brazilian Portuguese

require_once(INC_DIR 'langs/fr.php'); //French
require_once(INC_DIR 'langs/lt.php'); //Lithuanian
require_once(INC_DIR 'langs/pl.php'); //Polish
require_once(INC_DIR 'langs/no.php'); //Norweigan
require_once(INC_DIR 'langs/da.php'); //Danish
require_once(INC_DIR 'langs/hu.php'); //Hungarian
require_once(INC_DIR 'langs/fi.php'); //Finnish
require_once(INC_DIR 'langs/sk.php'); //Slovak
require_once(INC_DIR 'langs/cz.php'); //Czech
require_once(INC_DIR 'langs/hr.php'); //Croatian

require_once(INC_DIR 'langs/th.php'); //Thai
require_once(INC_DIR 'langs/jp.php'); //Japanese
require_once(INC_DIR 'langs/tw.php'); //Chinese (BIG-5)
require_once(INC_DIR 'langs/cn.php'); //Chinese (GB)
require_once(INC_DIR 'langs/hi.php'); //Hindi

require_once(INC_DIR 'langs/kl.php'); //Klingon (fictional language)
require_once(INC_DIR 'langs/pg.php'); //Pig Latin (fictional language)
}
?>


smfCMS2.php

<?php

if ( !
defined'INC_DIR' ) ) {
die( 'hacking attempt' );
}

// integration class for Simple Machines Forum (www.simplemachines.org)
// written by Manuel Aristarán <[email protected]>
// updated with usergruops, gender and photo support Feb28, 2006 by Veronica

error_reporting(E_ALL E_NOTICE);
$smf_root_path realpath(dirname(__FILE__) . '/../../../') . '/';

if (!
defined("SMF")) define("SMF""1");

require_once(
$smf_root_path 'Settings.php');
require_once(
$smf_root_path 'Sources/Load.php');
require_once(
$smf_root_path 'Sources/Subs-Auth.php');
require_once(
$smf_root_path 'Sources/LogInOut.php');

class 
SMFCMS {

  var 
$userid;
  var 
$loginStmt;
  var 
$getUserStmt;
  var 
$getPhotoStmt;
  var 
$getUsersStmt;

  function 
SMFCMS() {

    
$this->loginStmt     = new Statement("SELECT ID_MEMBER as id, memberName AS login, passwd, is_activated from {$GLOBALS['db_prefix']}members WHERE memberName=? AND (passwd=? OR passwd=?) LIMIT 1");
    
$this->getUserStmt   = new Statement("SELECT ID_MEMBER AS id, memberName AS login, ID_GROUP as status, gender, additionalGroups FROM {$GLOBALS['db_prefix']}members WHERE ID_MEMBER=? LIMIT 1");
    
$this->getPhotoStmt  = new Statement("SELECT filename FROM {$GLOBALS['db_prefix']}attachments WHERE ID_ATTACH=? LIMIT 1");
    
$this->getUsersStmt  = new Statement("SELECT ID_MEMBER as id, memberName as login FROM {$GLOBALS['db_prefix']}members");

    
$this->userid NULL;

    if (isset(
$_COOKIE[$GLOBALS['cookiename']]))
        {
            
$cookieData unserialize((get_magic_quotes_gpc() ? stripslashes($_COOKIE[$GLOBALS['cookiename']]) : $_COOKIE[$GLOBALS['cookiename']])) ;
            
$this->userid $cookieData[0];
    }

  }


  function 
isLoggedIn() {
    return 
$this->userid;
  }

function 
getRoles($status$additionalGroups) {

  if(
$status == || in_array(1$additionalGroups)) return ROLE_ADMIN;

  if(
$status == || in_array(2$additionalGroups)) return ROLE_MODERATOR;
  if(
$status == || in_array(3$additionalGroups)) return ROLE_MODERATOR;

  if(
$status == || ($status && $status )) return ROLE_USER;
  if(
in_array(0$additionalGroups)) return ROLE_USER;

  return 
null;
  }

  function 
getUserProfile($userid) {

    if (
$userid == SPY_USERID$rv NULL;

    elseif (
$user $this->getUser($userid)) {
      
$rv  $GLOBALS['boardurl'] . "/index.php?action=profile;u=".$userid;
    }

    return 
$rv;
  }


 function 
getUser($userid) {

    
$rv NULL;

    if((
$rs $this->getUserStmt->process($userid)) && ($rec $rs->next())) {

      
$rec['roles'] = $this->getRoles($rec['status'], explode(','$rec['additionalGroups']));
      
$rv $rec;
    }

    return 
$rv;
  }

  function 
login($login$password) {

    
$md5_password md5_hmac($passwordstrtolower($login));
        
$sha1_passwordsha1(strtolower($login) . $password );

    
$rs $this->loginStmt->process($login,$md5_password$sha1_password);

    
$rec $rs->next();

    if (
$rec) {

      
// is the user activated?
      
if (empty($rec['is_activated'])) return NULL;

      
$this->userid $rec['id'];

      
setLoginCookie(60 $GLOBALS['modSettings']['cookieTime'], $rec['id'], $sha1_password);

      return 
$rec['id'];

    }
  }

        function 
userInRole($userid$role) {
                if(
$user $this->getUser($userid)) {
                        return (
$user['roles'] == $role);
                }
                return 
false;
        }

  function 
logout() {

  }

  function 
getUsers() {
   return 
$this->getUsersStmt->process();
  }

  function 
getGender($userid) {
        
// 'M' for Male, 'F' for Female, NULL for undefined

$sex $this->getUserStmt->process($userid);
if($gender $sex->next()) {
if($gender['gender'] == '2') return 'F';
if($gender['gender'] == '1') return 'M';
}
        return 
NULL;
  }


  function 
getPhoto($userid) {


$fileExt explode(','$GLOBALS['fc_config']['photoloading']['allowFileExt']);

$oldFile './nick_image/' $userid '.';
$fs reset($fileExt);
while($fs) {
if(file_exists($oldFile $fs)) return $oldFile $fs;
$fs next($fileExt);
}

$rs $this->getPhotoStmt->process($userid);
if($rec $rs->next()) {

if(!empty($rec['filename']))  return '../attachments/' $rec['filename'];
}
return '';
  }

}


$GLOBALS['fc_config']['db'] = array(
                 
'host' => $db_server,
                 
'user' => $db_user,
                 
'pass' => $db_passwd,
                 
'base' => $db_name,
                 
'pref' => $db_prefix "fc_",
                 );

$GLOBALS['fc_config']['cms'] = new SMFCMS();



foreach(
$GLOBALS['fc_config']['languages'] as $k => $v) {
  
$GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';
}

?>



Title: Re: FlashChat Integration
Post by: perplexed on February 14, 2007, 08:04:07 AM
Quote from: IKShadow on February 14, 2007, 05:56:13 AM
Just to test it I made new test user and try to use chat, after I clicked on link index.php?action=chat flash load and I get msg You have been baned

I checked admin area of flash chat:
Bans
No bans found

And also dont have any bans in SMF forums

Any idea whats wrong ?

Quote from: IKShadow on February 14, 2007, 07:35:04 AM
Quote from: perplexed on February 14, 2007, 07:17:44 AM
previously in this thread, Daniel said to contact tufat.com about these kind of problems as its flashchat and not the mod.

If its working for others on same system, somehow I doubt that tufat will help me.


ok then *shrug*

Just trying to help because on previous pages there is this:

Quote from: Daniel15 on January 07, 2007, 09:33:15 PM
QuoteI've got this mod added and it seems to be working well with the exception that I have a couple of members  of my SMF forum that cannot enter the chatroom. They get a message saying they are banned, yet they are not banned from my forum. I cannot find anything on this topic. Any advice?
That's not my area for support - Since this is a problem with FlashChat itself, you'll need to ask the author of FlashChat for support.

This topic only covers issues with the FlashChat integration (Users Online list, and the FlashChat embedded into SMF). Issues with FlashChat itself (user issues, etc.) aren't covered by me ;)
Title: Re: FlashChat Integration
Post by: Alejandro1 on February 14, 2007, 08:06:00 AM
Quote from: perplexed on February 14, 2007, 07:16:11 AM


Quote from: Alejandro1 on February 14, 2007, 04:06:57 AM
Or is it possible that it is due to the fact that Flashchat is now version 4.7.9?

Some assistance would be greatly appreciated.

I am running:
SMF 1.1.2
TP 0.9.7
FlashChat 4.7.9

I installed flashchat 4.7.9 yesterday and it's ok for me.  I have smf1.1.1, and tinyportal 0.9.7.1 installed and its all good on the default theme.


I am happy for you. My SMF is a different version and I use the default too.
What part of your remarks  "....and it's ok for me...." and "...and it's all good..." should I consider as a form of advice, like I asked for???
Excuse me for sounding cranky, but when I ask for advice, I'm not asking for a reply of someone who tells me: "I don't have a problem...". Does that sound like a solution to you?

I read other forum-posts, I know how to use google and I finished my education. If I know the answer to someone's question, I help them, if I don't I keep my mouth shut and wait for someone more knowledgeable to answer that question.

Don't take this too personal, you have every right to be posting on this forum, just as much as me, but please do consider this as a lesson in forum-etiquette; Never tell someone who has a challenge that it doesn't affect you, that's not helping the first person in any way, just making them more frustrated.
Title: Re: FlashChat Integration
Post by: IKShadow on February 14, 2007, 08:49:07 AM
Just to let you know I solved it.

Change file /chat/inc/cmses/smfCMS2.php

The remarked line is original and the line bellow it fix.

function getRoles($status, $additionalGroups) {

  if($status == 1 || in_array(1, $additionalGroups)) return ROLE_ADMIN;

  if($status == 2 || in_array(2, $additionalGroups)) return ROLE_MODERATOR;
  if($status == 3 || in_array(3, $additionalGroups)) return ROLE_MODERATOR;

// if($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;
  if($status >3) return ROLE_USER;
if(in_array(0, $additionalGroups)) return ROLE_USER;

  return null;
  }
Title: Re: FlashChat Integration
Post by: perplexed on February 14, 2007, 08:51:54 AM
Quote from: Alejandro1 on February 14, 2007, 08:06:00 AM
Quote from: perplexed on February 14, 2007, 07:16:11 AM


Quote from: Alejandro1 on February 14, 2007, 04:06:57 AM
Or is it possible that it is due to the fact that Flashchat is now version 4.7.9?

Some assistance would be greatly appreciated.

I am running:
SMF 1.1.2
TP 0.9.7
FlashChat 4.7.9

I installed flashchat 4.7.9 yesterday and it's ok for me.  I have smf1.1.1, and tinyportal 0.9.7.1 installed and its all good on the default theme.


I am happy for you. My SMF is a different version and I use the default too.
What part of your remarks  "....and it's ok for me...." and "...and it's all good..." should I consider as a form of advice, like I asked for???
Excuse me for sounding cranky, but when I ask for advice, I'm not asking for a reply of someone who tells me: "I don't have a problem...". Does that sound like a solution to you?

I read other forum-posts, I know how to use google and I finished my education. If I know the answer to someone's question, I help them, if I don't I keep my mouth shut and wait for someone more knowledgeable to answer that question.

Don't take this too personal, you have every right to be posting on this forum, just as much as me, but please do consider this as a lesson in forum-etiquette; Never tell someone who has a challenge that it doesn't affect you, that's not helping the first person in any way, just making them more frustrated.

You suggested it might be because you were using 4.7.9 and I said I was using 4.7.9, that's all.  My post regarding 4.7.9 was not me giving advice I was pointing out that it might not be that version as you suggested since I am using the same one.  Read the post or don't read it, choice is up to you.

My second post about this problem (users banned) coming up on a previous page and what the previous answer had been was advice and an attempt to perhaps save you some time.  The Mod author is in Australia and is likely asleep due to time differences. 

Quote from: Daniel15 on January 07, 2007, 09:33:15 PM
QuoteI've got this mod added and it seems to be working well with the exception that I have a couple of members  of my SMF forum that cannot enter the chatroom. They get a message saying they are banned, yet they are not banned from my forum. I cannot find anything on this topic. Any advice?
That's not my area for support - Since this is a problem with FlashChat itself, you'll need to ask the author of FlashChat for support.

This topic only covers issues with the FlashChat integration (Users Online list, and the FlashChat embedded into SMF). Issues with FlashChat itself (user issues, etc.) aren't covered by me ;)
[/quote]

I'm sorry you are having a 'challenge', most of us are or we wouldn't be on a support forum. I'm not taking it personally but I don't appreciate your tone and I don't need a lesson in forum etiquette.  You have every right to disregard my posts if they are not helpful to you but not to attack me in a derogatory manner, if I am trying to help.

I hope you get your problems resolved with this mod.  Someone may have posted a solution to you 'challenge'
Title: Re: FlashChat Integration
Post by: Alejandro1 on February 14, 2007, 09:09:20 AM
I wasn't referring at all to your post regarding the "user banned", don't know where you got that from, I'm only referring to my own post and your reaction.
And it certainly is nice of you to try and help people because someone else is asleep down under ;)

But, I still think that your reaction to my post belongs in the category "I don't have a problem..." and I have been around too long on forums to read a post like that and think to myself':"Ow, how nice, at least someone is paying attention to my post...".
I am looking for solutions, not chitchat, and if that sounds derogatory to you, that's your perception.

Enough said about all this, I applaud you for the answers and solutions that you have given other members of this board and the effort that you take in doing that.
So let's get back to business and on-topic, there's a lot of work to be done in this community and you and I are both part of it.
Title: Re: FlashChat Integration
Post by: Pacov on February 14, 2007, 09:23:38 AM
Quote from: Simplemachines Cowboy on February 13, 2007, 05:39:13 PM
tschieb1,
Refer to my pm.
You have an older version of flashchat. Install the latest and the mod will work.

IKShadow,
Did you install flashchat as a standalone or in SMF CMS mode?
If you installed as a standalone, you will have to log in each time because flashchat cannot read from the smf database. CMS will integrate with the database and if you are logged into your smf forum, it will auto log you into flashchat.

Flashchat does not provide any controls in the smf admin area.
All flashchat admin is done thru its own control panel at chat/admin/index.php.
I installed it in SMF CMS mode !!
It functions normally---it uses all the forum sql users data just fine---when usurs are registered/ logged in to a forum it recognize that and functions  normally. Isn't there anything I can do...Must I buy a new version ?

If it's so tell me than PLEASE, I know how to make a new button in a maim forum menu, but HOW can I make a new button (I'm still thinking on the chat) so that chat opens in a new window (not just_blank) but custom window size 700px, 500px. It must be some javascript that I need to enter i one of forum scripts, probable index.template.php of my own theme (I'm using BlackTed theme).
I tryed whit the following. I made new <html> <head></html></head> tags just before the beginning of php coding (file index.template.php___if I put java script in <html> <head></html></head> of php code it brings me nothing but errors) and entered javascript:


<SCRIPT language="JavaScript">
<!--
function newwindow()
{
window.open('http://www.pacovi.org/fORUM/chat/flashchat.php','jav','width=500,height=400,resizable=yes');
}
//-->
</SCRIPT>

and the other part...

<A HREF="javascript:newwindow()" >Chat</A>

....I put in the Chat button part of the php code.

OK, in firefox it works well (it opens chat in a new window, as I wrote 700px, 500px) but in IE my forum theme (blackTed) extends across the whole monitor window, for example, like default smf theme...

Thank you so much...
Title: Re: FlashChat Integration
Post by: atlantisrising on February 14, 2007, 01:11:59 PM
I'm using smf 1.1.1 and the latest version of flashchat.

I manually installed the the integration into my current theme but even with the default, this is all I get when I click the chat button, see image attached.

I'm not sure what to do, I know the chat is there but I can't make it show up.
Title: Re: FlashChat Integration
Post by: atlantisrising on February 14, 2007, 01:33:53 PM
Disregard, a friend helped me out  :D
Title: Re: FlashChat Integration
Post by: atlantisrising on February 14, 2007, 01:45:50 PM
Actually, I still need help, lol.  This is the url that the chat button pulls up. 

http://www.happycurls.com/v2/joomla/index.php?option=com_smf&Itemid=26&action=chat

My friend told me it needs to be:

http://www.happycurls.com/v2/smf/index.php?action=chat

so I changed my code to:

// FlashChat!
if ($context['user']['is_logged'])
echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
<a href="http://www.happycurls.com/v2/smf/index.php?action=chat">CHAT</a>
</td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


but it still pulls the original url.  How do I fix this?
Title: Re: FlashChat Integration
Post by: xfollowthereaperx on February 14, 2007, 08:14:59 PM
Where should I install the chat?

in the forums folder?
Should I run the thing to connect it to SMF that comes with the chat when you install it?
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on February 14, 2007, 10:04:45 PM
OK, let knock off a bunch of questions:

xfollowthereaperx:
Yes, the chat folder should be in the same folder as the forum files.
Example: http://www.yourdomain.com/forum/chat/xxx.zzz

And when you install flashchat, set it up was a cms install with smf 1.1 and it will work with this mod and you user database.
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on February 14, 2007, 10:15:21 PM
Next,

tschieb1,
Once you buy flashchat, all newer versions are free.
Go to the flashchat downloads site and enter the purchae number you rec'd from the original transaction and you can download and install the latest version.
BE SURE you follow the directions on removing your flashchat mysql tables. Search the tufat site for directions.
Then install the new version as a cms and then do Daniel's mod.

To make flashchat open to a specific size here is what I did:
In Theme/default/chat.template.php folder:

Find:
<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">

And change to this (or whatever size you'd like):
<table width="1000" height="600" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">

This will open the actual window that the chat is displayed in at 1000x600 (or whatever you want). It will still  have your normal smf header and footer.
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on February 14, 2007, 10:21:56 PM

And last,

atlantisrising,
OK, I may be way off base here, but this is what I have for the fifth line in the code you posted.
<a href="', $scripturl, '?action=chat" target="_blank">' , $txt['fc_chat'] , '</a>

I do not wrap my forum, so maybe you need a defined url there to make it work with joomla?

Try the above and see what happens.
If you don't want chat to open in a different window, remove the target="_blank" part.
Title: Re: FlashChat Integration
Post by: Pacov on February 15, 2007, 07:00:21 AM
Quote from: Simplemachines Cowboy on February 14, 2007, 10:15:21 PM
Next,
To make flashchat open to a specific size here is what I did:
In Theme/default/chat.template.php folder:

Find:
<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">

And change to this (or whatever size you'd like):
<table width="1000" height="600" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">

This will open the actual window that the chat is displayed in at 1000x600 (or whatever you want). It will still  have your normal smf header and footer.
sorry but i tried that and still the same..
This is my Chat.template.php

<?php

function template_main()
{
   global $context, $settings, $options, $modSettings;


$chatAppend = $modSettings['chatAppend'];
$chatWidth = $modSettings['chatWidth'];
$chatHeight = $modSettings['chatHeight'];
$chatRoomsTab = $modSettings['chatRoomsTab'];
$chatPassword = $modSettings['chatPassword'];
$chatAds = $modSettings['chatAds'];

// Makes sure names are irc compliant
$chatName = str_replace(" ","_",$context['user']['name']);
$chatName = str_replace(".","_",$chatName);
$initialchar = substr($chatName,0,1);
if ( ($initialchar >= "0")  &&  ($initialchar <= "9") ) {
   $chatName = "_" . $chatName;
   }

if($chatAds == "0"){
   $chatAds = "false";
}

if($chatRoomsTab == "0"){
   $chatRoomsTab = "false";
}

// Appends the abreviation to the end of the username to prevent duplicate names on the server
$chatName = $chatName . $chatAppend;

$chatLanguage = $modSettings['chatLanguage'] . ".prm";
$chatRoomName = $modSettings['chatRoomName'];

if($chatAds==0){
   $chatAds="false";
}
else{
   $chatAds="true";
}

if($chatRoomsTab==0){
   $chaRoomsTab="false";
}
else{
   $chatRoomsTab="true";
}

// Html code for the room.
echo'

<center>
<table class="windowbg" border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="520" id="AutoNumber1">
  <tr>
     <td width="100%"><center><script language="JavaScript" src="http://irc.everywherechat.com:8000/Java/e.js?room=' . $chatRoomName . '&roomstab=' . $chatRoomsTab . '&width=' . $chatWidth . '&height=' . $chatHeight . '&nick=' . $chatName . '&keypass=&paramfilename=' . $chatLanguage . '&ads=' . $chatAds .'"></script></center></td>
  </tr>
</table>
<form>
     <input type=button value="Float" onClick="document.cs.doFloat()">
</form>
</center>

';
}

?>

I replace the code as you wrote but still the same..can you write for me once again in this code

Thank you verry much

Tomislav
Title: Re: FlashChat Integration
Post by: perplexed on February 15, 2007, 07:17:03 AM
Quote from: tschieb1 on February 15, 2007, 07:00:21 AM
Quote from: Simplemachines Cowboy on February 14, 2007, 10:15:21 PM
Next,
To make flashchat open to a specific size here is what I did:
In Theme/default/chat.template.php folder:

Find:
<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">

And change to this (or whatever size you'd like):
<table width="1000" height="600" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">

This will open the actual window that the chat is displayed in at 1000x600 (or whatever you want). It will still  have your normal smf header and footer.
sorry but i tried that and still the same..
This is my Chat.template.php

<?php

function template_main()
{
global $context$settings$options$modSettings;


$chatAppend $modSettings['chatAppend'];
$chatWidth $modSettings['chatWidth'];
$chatHeight $modSettings['chatHeight'];
$chatRoomsTab $modSettings['chatRoomsTab'];
$chatPassword $modSettings['chatPassword'];
$chatAds $modSettings['chatAds'];

// Makes sure names are irc compliant
$chatName str_replace(" ","_",$context['user']['name']);
$chatName str_replace(".","_",$chatName);
$initialchar substr($chatName,0,1);
if ( (
$initialchar >= "0")  &&  ($initialchar <= "9") ) {
   
$chatName "_" $chatName;
   }

if(
$chatAds == "0"){
$chatAds "false";
}

if(
$chatRoomsTab == "0"){
$chatRoomsTab "false";
}

// Appends the abreviation to the end of the username to prevent duplicate names on the server
$chatName $chatName $chatAppend;

$chatLanguage $modSettings['chatLanguage'] . ".prm";
$chatRoomName $modSettings['chatRoomName'];

if(
$chatAds==0){
$chatAds="false";
}
else{
$chatAds="true";
}

if(
$chatRoomsTab==0){
$chaRoomsTab="false";
}
else{
$chatRoomsTab="true";
}

// Html code for the room.
echo'

<center>
<table class="windowbg" border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="520" id="AutoNumber1">
  <tr>
     <td width="100%"><center><script language="JavaScript" src="http://irc.everywherechat.com:8000/Java/e.js?room=' 
$chatRoomName '&roomstab=' $chatRoomsTab '&width=' $chatWidth '&height=' $chatHeight '&nick=' $chatName '&keypass=&paramfilename=' $chatLanguage '&ads=' $chatAds .'"></script></center></td>
  </tr>
</table>
<form>
   <input type=button value="Float" onClick="document.cs.doFloat()">
</form>
</center>

'
;
}

?>


I replace the code as you wrote but still the same..can you write for me once again in this code

Thank you verry much

Tomislav

that code you posted above is from the chat.template for the Integrated Chat Mod, not the flashchat mod 
Title: Re: FlashChat Integration
Post by: Pacov on February 15, 2007, 07:56:42 AM
Quote from: perplexed on February 15, 2007, 07:17:03 AM
that code you posted above is from the chat.template for the Integrated Chat Mod, not the flashchat mod 
Sorry I don' get it...Yo said In "forum/Theme/default/chat.template.php folder"...and I don't have installed any mode for the FlashChat. I use it standalone..no integration....just put a button for chat in index.template.php
Title: Re: FlashChat Integration
Post by: perplexed on February 15, 2007, 08:23:38 AM
Quote from: tschieb1 on February 15, 2007, 07:56:42 AM
Quote from: perplexed on February 15, 2007, 07:17:03 AM
that code you posted above is from the chat.template for the Integrated Chat Mod, not the flashchat mod 
Sorry I don' get it...Yo said In "forum/Theme/default/chat.template.php folder"...and I don't have installed any mode for the FlashChat. I use it standalone..no integration....just put a button for chat in index.template.php

I personally didnt say anything about "forum/Theme/default/chat.template.php folder" that was another member.

I am just pointing out that the code you posted in your previous message is the chat.template.php code from the Integrated Chat Mod which is different chat mod for smf.  If you have flashchat installed then your chat.template.php file  in forum/theme/default should look like this:

<?php
// Version: 0.1 Beta; FlashChat Integration
// By Daniel15

function template_main()
{
global $boardurl$context;

// The actual page
echo '
<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">
<tr class="titlebg">
<td>Chat</td>
</tr>
<tr>
<td class="windowbg">
<script language="JavaScript" type="text/javascript" src="chat/javascript/ActivateFlash.js"></script>
'
flashChatTag('100%'$context['chat_height'], array(), $boardurl '/chat/'), '
</td>
</tr>
</table>'
;
}

?>


If you do not have the Flashchat Integration mod installed then perhaps you should do that first?
Title: Re: FlashChat Integration
Post by: perplexed on February 15, 2007, 06:51:35 PM
Daniel I know this isnt your problem but I did ask on the tufat site and they dont know either.

I only want people to use the chat via the forum but obviously if they work out the address they can link directly to the chat without being on the forum.

eg  http://www.mysite.com/forum/chat/flashchat.php  displays the chat on its own page

Do you know of a redirection that would work so that it redirects them back to the forum?
I have tried a couple of examples but they don't work.
Title: Re: FlashChat Integration
Post by: Pacov on February 15, 2007, 07:38:16 PM
Do you know why inIE (not firefox)  user can't log out from the chat. I mean..they can but on the forum it says thet they are still loged on ??? and they are not, they'r logged off...what can I do ??

I have FlashChat 4.7.7 and, of course, flashchat mod is installed !!

Thank you very !!
Tomislav
Title: Re: FlashChat Integration
Post by: Pacov on February 15, 2007, 08:59:31 PM
Quote from: perplexed on February 15, 2007, 08:23:38 AM
Quote from: tschieb1 on February 15, 2007, 07:56:42 AM
Quote from: perplexed on February 15, 2007, 07:17:03 AM
that code you posted above is from the chat.template for the Integrated Chat Mod, not the flashchat mod 
Sorry I don' get it...Yo said In "forum/Theme/default/chat.template.php folder"...and I don't have installed any mode for the FlashChat. I use it standalone..no integration....just put a button for chat in index.template.php

I personally didnt say anything about "forum/Theme/default/chat.template.php folder" that was another member.

I am just pointing out that the code you posted in your previous message is the chat.template.php code from the Integrated Chat Mod which is different chat mod for smf.  If you have flashchat installed then your chat.template.php file  in forum/theme/default should look like this:

<?php
// Version: 0.1 Beta; FlashChat Integration
// By Daniel15

function template_main()
{
global $boardurl$context;

// The actual page
echo '
<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">
<tr class="titlebg">
<td>Chat</td>
</tr>
<tr>
<td class="windowbg">
<script language="JavaScript" type="text/javascript" src="chat/javascript/ActivateFlash.js"></script>
'
flashChatTag('100%'$context['chat_height'], array(), $boardurl '/chat/'), '
</td>
</tr>
</table>'
;
}

?>


If you do not have the Flashchat Integration mod installed then perhaps you should do that first?
OKK I made all what you say. Have new FlashChat and have installed flashcat mod..but how to make open CHAT, from the forum menu, in pop-up window, let's say 700px, 500px. It must be some java script...but to work in both.Firefox & IE

TNX  
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on February 15, 2007, 10:04:06 PM
tschieb1, what I showed you before:

To make flashchat open to a specific size here is what I did:
In Theme/default/chat.template.php folder:

Find:
<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">

And change to this (or whatever size you'd like):
<table width="1000" height="600" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">

This will open the actual window that the chat is displayed in at 1000x600 (or whatever you want). It will still  have your normal smf header and footer.
Title: Re: FlashChat Integration
Post by: clarkkent93 on February 16, 2007, 12:49:24 AM
Is this mod ready for 1.1.2?  I plan on purchasing the software tomorrow.
Title: Re: FlashChat Integration
Post by: wickedstangs on February 16, 2007, 01:07:43 AM
How do I install the upgrade chat? 4.7.9 my 4.7.7 is working fine but, they have fixed alot of bugs with flash chat
Title: Re: FlashChat Integration
Post by: Pacov on February 16, 2007, 09:49:21 AM
If anybody know why in IE (not firefox)  user can't log out from the chat. I mean..they can but on the forum it says thet they are still logged on ??? They're logged off...what can I do ?? ???

I have FlashChat 4.7.7 and, of course, flashchat mod is installed !!
If this problem is allready solved please redirect me!!

Thank you very !! :)
Tomislav
Title: Re: FlashChat Integration
Post by: wickedstangs on February 16, 2007, 03:39:09 PM
Quote from: tschieb1 on February 16, 2007, 09:49:21 AM
If anybody know why in IE (not firefox)  user can't log out from the chat. I mean..they can but on the forum it says thet they are still logged on ??? They're logged off...what can I do ?? ???

I have FlashChat 4.7.7 and, of course, flashchat mod is installed !!
If this problem is allready solved please redirect me!!

Thank you very !! :)
Tomislav

GO TO PAGE 7 last post from Simplemachines Cowboy  
Title: Re: FlashChat Integration
Post by: Drunken Clam on February 17, 2007, 07:37:06 PM
Quote from: Daniel15 on January 05, 2007, 09:22:56 PM
Sorry about the errors, the package seems to work fine on a fresh SMF installation... Do any of you have the 'Googlebot and Spiders' mod? Since both that mod and my mod edit the "Users Online" section, that's what could be causing the conflict.

QuoteI would make the comment that more people should go the extra mile as Bloc does when he writes the manual mod instructions for his mods.
In that case, I'd point you to http://server.daniel15.com/smf/package.php :D

Simply brilliant Daniel!!
Title: Re: FlashChat Integration
Post by: DDRtists on February 18, 2007, 03:18:03 AM
I love this mod, but I would like to do one thing ( I don't know if it's been asked yet, sorry ):

I want to have the link on all pages at the top say "CHAT($context['num_chat'])" where $context['num_chat'] would be the number of people in the chat.  However, it only works when I use the context variable on the forums page ( I'm using Tinyportal ).  I does not show up on the home page, or any page that doesn't use the "Boardindex" page, that you added the varaible too.

What do I need to do to be able to use the $context['num_chat'] variable whenever i need?
Thanks.
Title: Re: FlashChat Integration
Post by: Daniel15 on February 18, 2007, 05:04:35 AM
DDRtists, I'll see what I can do about this (perhaps put the code for the count in a file like Load.php, so it's loaded all the time :)
Title: Re: FlashChat Integration
Post by: DDRtists on February 18, 2007, 11:47:06 AM
Okay, I'll look around.  If you get that working, post it here please. :P
Title: Re: FlashChat Integration
Post by: Koopler on February 18, 2007, 12:49:08 PM
Dude, I'm having trouble installing this mod to my dilber MC template.

I created a flash chat that can be found here: http://www.ifca.tv/forums/chat/flashchat.php

But when I try to install the integration mod, I get an error.

Quote9.     Execute Modification     ./chat/inc/flashChatTag.php     Test failed

I don't understand what's wrong.  
Title: Re: FlashChat Integration
Post by: silvercityron on February 18, 2007, 08:37:28 PM
Quote from: perplexed on February 15, 2007, 06:51:35 PM
Daniel I know this isnt your problem but I did ask on the tufat site and they dont know either.

I only want people to use the chat via the forum but obviously if they work out the address they can link directly to the chat without being on the forum.

eg  http://www.mysite.com/forum/chat/flashchat.php  displays the chat on its own page

Do you know of a redirection that would work so that it redirects them back to the forum?
I have tried a couple of examples but they don't work.


I just install flashchat today and had the same concerns as you. I have not got rid of the entire box yet but this will get rid of the log in and password boxes.

Go to your file chat/inc/config.php and remove the login and password boxes,
Quote//Login config
      'login' => array(
         'btn'   => 'true', // if false, "Login" button is hidden
         'title_bar'   => 'true', // if false, title bar is hidden
         'theme' => 'macintosh',
         'width' => '',//400,
         'height' => '',//300,
         'username' => array(
            'req'   => 'false',// if true, message appears if not inputted
            'align'   => 'right',// 'left' or 'right'
            'x_label'   => '',
            'y_label'   => '',
            'x_field'   => '',
            'y_field'   => '',
            'type'   => 'text',//'text' or 'password' (if password, **** appears)
            'width'   => 150
         ),
         'password' => array(
            'req'   => 'false',
            'align'   => 'right',
            'x_label'   => '',
            'y_label'   => '',
            'x_field'   => '',
            'y_field'   => '',
            'type'   => 'password',
            'width'   => 150
         ),
         'lang' => array(
            'align'   => 'right',
            'x_label'   => "",
            'y_label'   => "",
            'x_field'   => "",
            'y_field'   => "",
         ),
         'title' => array(
            'align'   => 'center',
            'x_label'   => '',
            'y_label'   => '',
            'x_field'   => '',
            'y_field'   => '',
         ),
      ),
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on February 18, 2007, 09:56:46 PM
Kooper,
You need to update your flashchat. You have a version older than what this mod was written for and thus it fails at the flashChatTag.php file.
Title: Re: FlashChat Integration
Post by: Koopler on February 18, 2007, 10:59:38 PM
Thanks. I updated my flashchat and installed this mod... but now what? I don't see any changes.
Title: Re: FlashChat Integration
Post by: Koopler on February 18, 2007, 11:12:06 PM
I guess I have to edit the theme since I'm using the dilber MC theme. The thing is, I don't see those areas that I'm supposed to edit.  
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on February 18, 2007, 11:31:20 PM
Yep, go back to the first post in this thread and do the things listed under "Theme Changes" in you Dilber MC theme files and you should be good.
Title: Re: FlashChat Integration
Post by: DDRtists on February 19, 2007, 12:41:44 AM
When trying to use this code:


//Start Flashchat
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
// Get the proper database prefix (including database name)
$fc_prefix = is_numeric(substr($GLOBALS['fc_config']['db']['pref'], 0, 1)) ? $db_name . '.' . $GLOBALS['fc_config']['db']['pref'] : '`' . $db_name . '`.' . $GLOBALS['fc_config']['db']['pref'];
// Load all the users currently in the chat
$result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$fc_prefix}connections AS fc
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$fc_prefix}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
ORDER BY mem.realName ASC", __FILE__, __LINE__);

$context['users_chat'] = array();
$context['list_users_chat'] = array();
$context['num_chat'] = mysql_num_rows($result);
mysql_free_result($result);
//End Flashchat


In anything it doesn't load the page, any ideas?  I put it in the context load function in Subs.php, the index.template.php file, and a few others, and no worky. :(

It might be a noob problem, but I've never had this problem before. :P
Title: Re: FlashChat Integration
Post by: Koopler on February 19, 2007, 11:34:25 AM
Quote from: Simplemachines Cowboy on February 18, 2007, 11:31:20 PM
Yep, go back to the first post in this thread and do the things listed under "Theme Changes" in you Dilber MC theme files and you should be good.

Dude, I that's what I tried. I looked at the code that I'm supposed to change, and I searched for it on the template.index code, and I don't see it anywhere....

<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>'
;

echo '
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">'
;

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">'
$context['forum_name'], '</span>';
else
echo '
<img src="'
$settings['header_logo_url'], '" style="margin: 4px;" alt="'$context['forum_name'], '" />';

echo '
</td>
<td align="right" class="catbg">
<img src="'
$settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>'
;


// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>'
;

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> '
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span>
</td>'
;

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' 
$context['current_time'], '</span>';

// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
<tr>'
;

if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">'
$context['user']['avatar']['image'], '</td>';

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}


// Check to see if stats have been updated within last 3 minutes
if (($modSettings['chatLastUpdated'] == 0) || ($modSettings['chatLastUpdated'] < 
(time() - $modSettings['chatUpdateInterval']))){
updateChatStats();
}
if($modSettings['chatShowTop'] == true){
echo "<br />There are currently " $modSettings['chatNumUsers'] . " users in chat<br />" 
'<div class="smalltext">' $modSettings['chatUsersList'] . '</div>';
}


echo '
</td>
</tr>
</table>
</td>
</tr>
</table>'
;

echo '
<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"'' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>'
$txt[102], '</b>: '$context['random_news_line'], '</span>
</td>'
;
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="'
$txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
</div>'
;


// Show the menu here, according to the menu sub template.
template_menu();


// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">'
;
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

echo '
</div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'right' 'left''">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="'
$settings['images_url'], '/powered-mysql.gif" alt="'$txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="'
$settings['images_url'], '/powered-php.gif" alt="'$txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
'
theme_copyright(), '
</td>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'left' 'right''">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="'
$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="'
$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm''chat')))
$current_action $context['current_action'];

if ($context['current_action'] == 'chat')
$current_action 'chat';

if ($context['current_action'] == 'awards')
$current_action 'admin';

if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

if ($context['current_action'] == 'chat')
$current_action 'chat';

// Begin SMFShop code
if ($context['current_action'] == 'shop')
$current_action 'shop';
if (in_array($context['current_action'], array('shop_general''shop_items_add''shop_items_edit''shop_cat''shop_inventory''shop_restock''shop_usergroup')))
$current_action 'admin';
// End SMFShop code

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' 
$first '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'home' 'active_back' 'back' '">
<a href="'
$scripturl'">' $txt[103] , '</a>
</td>' 
$current_action == 'home' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'help' 'active_back' 'back' '">
<a href="'
$scripturl'?action=help">' $txt[119] , '</a>
</td>' 
$current_action == 'help' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'search' 'active_back' 'back' '">
<a href="'
$scripturl'?action=search">' $txt[182] , '</a>
</td>' 
$current_action == 'search' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'admin' 'active_back' 'back' '">
<a href="'
$scripturl'?action=admin">' $txt[2] , '</a>
</td>' 
$current_action == 'admin' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'profile' 'active_back' 'back' '">
<a href="'
$scripturl'?action=profile">' $txt[79] , '</a>
</td>' 
$current_action == 'profile' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'pm' 'active_back' 'back' '">
<a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a>
</td>' 
$current_action == 'pm' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The [3guk] Button
echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'chat' 'active_back' 'back' '">
<a href="'
$scripturl'?action=chat">Chat</a>
</td>' 
$current_action == 'chat' '<td class="maintab_active_' $last '">&nbsp;</td>' '';              

// the [chat] button
echo ($current_action=='chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action=='chat' 'active_back' 'back' '">
<a href="'
$scripturl'?action=chat">' $txt['chatAlt'] , '</a>
</td>' 
$current_action=='chat' '<td class="maintab_active_last">&nbsp;</td>' '';


// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// FlashChat!
if ($context['user']['is_logged'])
echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'chat' 'active_back' 'back' '">
<a href="'
$scripturl'?action=chat">' $txt['fc_chat'] , '</a>
</td>' 
$current_action == 'chat' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

//Begin SMFShop code
//loadLanguage("shop");
echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'shop' 'active_back' 'back' '">
<a href="'
$scripturl'?action=shop">Shop</a>
</td>' 
$current_action == 'shop' '<td class="maintab_active_' $last '">&nbsp;</td>' '';
//END SMFShop code

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'mlist' 'active_back' 'back' '">
<a href="'
$scripturl'?action=mlist">' $txt[331] , '</a>
</td>' 
$current_action == 'mlist' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'login' 'active_back' 'back' '">
<a href="'
$scripturl'?action=login">' $txt[34] , '</a>
</td>' 
$current_action == 'login' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'register' 'active_back' 'back' '">
<a href="'
$scripturl'?action=register">' $txt[97] , '</a>
</td>' 
$current_action == 'register' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'logout' 'active_back' 'back' '">
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a>
</td>' 
$current_action == 'logout' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The end of tab section.
echo '
<td class="maintab_' 
$last '">&nbsp;</td>
</tr>
</table>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}


function 
updateChatStats(){
global $modSettings$db_prefix;

    
// Get the list of users in the chat room
    
$data file_get_contents('http://www.everywherechat.com/members.asp?room=' $modSettings['chatRoomName']);

    
// Strip off the extra data at the beggining and end of the list
    
$data substr($data,16,-5);

    
// Remove the document.write portion of the list
    
$array explode("\");document.write(\""$data);

    
// Get all the users and add them to the list
    
$userList "";
    foreach(
$array as $user){
          
$userList .= $user;
    }

    
// Update the database with the list of users
    
$result db_query("UPDATE {$db_prefix}settings SET `value` = '" $userList "' WHERE variable = 'chatUsersList'"__FILE____LINE__);

    
// Get the number of users in chat
    
$data file_get_contents('http://www.everywherechat.com/users.asp?room=' $modSettings['chatRoomName']);

    
// Strip off the extra data at the beggining and end of the list
    
$data substr($data,16,-2);

    
// Update the database with the number of users
    
$result db_query("UPDATE {$db_prefix}settings SET `value` = '" $data "' WHERE variable = 'chatNumUsers'"__FILE____LINE__);

$result db_query("UPDATE {$db_prefix}settings SET `value` = '" time() . "' WHERE variable = 'chatLastUpdated'"__FILE____LINE__);
}


?>



If you could make the changes for me, I would greatly appreciate, because I don't see the areas that I'm supposed to edit.  
Title: Re: FlashChat Integration
Post by: xtremecruiser on February 19, 2007, 12:12:43 PM
The Dilber MC theme and many others have all kinds of difference code in it.
The easy way would be to have it just open in a new window.

You can try posting in the Dilber thread or looking there for some help

http://www.simplemachines.org/community/index.php?topic=91902.0
Title: Re: FlashChat Integration
Post by: Koopler on February 19, 2007, 12:27:14 PM
******. That would explain why I can't find the code that Daniel was referring to.

If anyone knows how to set up the flashchat integration mod with this theme, please explain how.  
Title: Re: FlashChat Integration
Post by: xtremecruiser on February 19, 2007, 12:45:58 PM
I am trying to install it now. ( I have used this chat for a long time ) but not with Dilber.
Many of the new Themes do things different that the default one or ones like it
I use Dilber and have it heavily modified, so I am testing the chat on my test site.
I will post the code if I get it working
Title: Re: FlashChat Integration
Post by: xtremecruiser on February 19, 2007, 01:45:28 PM
Ok, it works... here is the How to from the first page and it works with the Dilber MC theme

Under  /Themes/dilbermc/

Theme Changes
To install this on your custom theme (so it shows the users in the chat under Users Online), open Themes/[theme name]/BoardIndex.template.php, and find:

echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

Replace with:

echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];


Also, find:

if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);


Add after:

// --- Begin FlashChat integration ---
// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<br />
', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---


To add a chat Button for the Dilber MC theme

To add new items, open index.template.php file. Find:


// Show the [help] button.
echo'
<td align="center" class="menubg' , $current_action == 'help' ? '2' : '' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>';


You will see similar patterns there. Each block is a menu item. Copy this one and past it before a line starting with //

For example, to add a Chat link before login button, find:


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo'
<td align="center" class="menubg' , $current_action == 'login' ? '2' : '' , '">
<a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
</td>';


Add this code before it:


// Here we go [Chat] button.
   echo'
            <td align="center" class="menubg' , $current_action == 'Chat' ? '2' : '' , '">
               <a href="', $scripturl, '?action=chat">' , 'Chat' , '</a>
            </td>';
</td>';
Title: Re: FlashChat Integration
Post by: xtremecruiser on February 19, 2007, 02:02:40 PM
For the vB Green Theme  ( just for the chat button )

open index.template.php file. Find:

Find
// Is the user allowed to administrate at all? ([admin])

if ($context['allow_admin'])

echo '

<td class="mainNav"><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></td>';




add after:
// Here we go [Chat] button.

if ($context['allow_memberlist'])

echo '

<td class="mainNav"><a href="', $scripturl, '?action=chat">' ,  'Chat' , '</a></td>';

Title: Re: FlashChat Integration
Post by: Koopler on February 19, 2007, 02:37:30 PM
Dude, I don't see most of that crap, and the stuff that I do modify leads to errors. Can I just temporarily admin you or someone else to mess around with the code? Because seriously, I must be either stupid or there's something wrong with my code.  
Title: Re: FlashChat Integration
Post by: xtremecruiser on February 19, 2007, 02:45:35 PM
What are you using as a editor ?
Try
http://www.context.cx

All you really need to do is add the button in the index.template.php file

I am in your chat now, all you need is a chat button, pm me if you have issues with adding it

To add a chat Button for the Dilber MC theme

To add new items, open index.template.php file. Find:


// Show the [help] button.
echo'
<td align="center" class="menubg' , $current_action == 'help' ? '2' : '' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>';


You will see similar patterns there. Each block is a menu item. Copy this one and past it before a line starting with //

For example, to add a Chat link before login button, find:


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo'
<td align="center" class="menubg' , $current_action == 'login' ? '2' : '' , '">
<a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
</td>';


Add this code before it:


// Here we go [Chat] button.
   echo'
            <td align="center" class="menubg' , $current_action == 'Chat' ? '2' : '' , '">
               <a href="', $scripturl, '?action=chat">' , 'Chat' , '</a>
            </td>';
</td>';
Title: Re: FlashChat Integration
Post by: Koopler on February 19, 2007, 02:50:40 PM
I installed flashchat. It's using the same database as my forum: http://ifca.tv/forums/chat

I also installed the FlashChat integration mod, but I don't think it did anything.

I edit the code through the admin panel option of SMF


Title: Re: FlashChat Integration
Post by: xtremecruiser on February 19, 2007, 03:04:21 PM
Check your PM here
Title: Re: FlashChat Integration
Post by: dextrous on February 19, 2007, 06:13:10 PM
is there one for smf 1.1.2 yet?
thanks!
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on February 19, 2007, 06:26:56 PM
My install of this was with 1.1.1.
When I ran the 1.1.2 upgrade, this mod still worked fine.
Title: Re: FlashChat Integration
Post by: xtremecruiser on February 19, 2007, 06:31:50 PM
Works fine if you do a upgrade, if you do a new install you might have to edit the mod for 1.1.2
Title: Re: FlashChat Integration
Post by: TroyG on February 19, 2007, 07:40:56 PM
At the bottom of my SMF in the area of whos in the chat room the names that are coming up are not the people in the room. Whats up with that?
Title: Re: FlashChat Integration
Post by: ishy on February 20, 2007, 08:23:34 AM
It worked brilliantly!  Gracias!  My users already were in love with FC, and complaining about how they sit in it and no one knows they are online.  This is awesome!
Title: Re: FlashChat Integration
Post by: Daniel15 on February 21, 2007, 01:48:47 AM
Really sorry guys, I haven't had time to keep up with all the posts in here (school homework is just taking too much of my spare time :()

This mod should work fine on SMF 1.1.2, but you'll get a message saying that the mod hasn't been tested on that SMF version. Once I test it myself, I'll add SMF 1.1.2 to the "officially supported" list :)
Title: Re: FlashChat Integration
Post by: dextrous on February 21, 2007, 04:05:26 PM
Quote from: Daniel15 on February 21, 2007, 01:48:47 AM
Really sorry guys, I haven't had time to keep up with all the posts in here (school homework is just taking too much of my spare time :()

This mod should work fine on SMF 1.1.2, but you'll get a message saying that the mod hasn't been tested on that SMF version. Once I test it myself, I'll add SMF 1.1.2 to the "officially supported" list :)

Actually there is one big issue -- chat users seem to be getting stuck there forever long after they've left!
Title: Re: FlashChat Integration
Post by: Daniel15 on February 22, 2007, 12:19:50 AM
Quote from: dextrous on February 21, 2007, 04:05:26 PM
Quote from: Daniel15 on February 21, 2007, 01:48:47 AM
Really sorry guys, I haven't had time to keep up with all the posts in here (school homework is just taking too much of my spare time :()

This mod should work fine on SMF 1.1.2, but you'll get a message saying that the mod hasn't been tested on that SMF version. Once I test it myself, I'll add SMF 1.1.2 to the "officially supported" list :)

Actually there is one big issue -- chat users seem to be getting stuck there forever long after they've left!
This is the "logout window" bug - The window that pops up after leaving the chat is meant to log you out. Simplemachines Cowboy (http://www.simplemachines.org/community/index.php?action=profile;u=28426) posted a fix for this, and it should be fixed in the next release of this mod:
Quote from: Simplemachines Cowboy on February 03, 2007, 11:41:32 PM
To solve the log out pop-up problem:

Find the dologout.php file in your chat folder.
Make a copy, and place the copy in your main SMF root folder.
Edit the 2nd line of the file to reflect the proper path.
This is mine; FlashChat is in the /chat folder.
require_once('chat/inc/common.php');

Title: Re: FlashChat Integration
Post by: char39 on February 22, 2007, 04:20:32 PM
Where can I find directions on how to use the flash chat after it is installed?
Title: Re: FlashChat Integration
Post by: Tan on February 23, 2007, 11:28:30 AM
Here http://tufat.com/docs/flashchat/index.html
Title: Re: FlashChat Integration
Post by: Tan on February 23, 2007, 11:32:51 AM
Anyone know how i can only show the users name only instead of the users name and the room name under the who's online on home page?

I only have one room to keep it simple and of course the name of the room is always the same for each user so the room name is repeated alot!

Thanks


Great mod thanks very much Daniel
Title: Re: FlashChat Integration
Post by: Pacov on February 23, 2007, 12:17:05 PM
Does anybody know how to make visible beside (on the forum index page) the names of users on chat that thay ar actually on chat. I can see only the names of users on chat but there isn't written that they are on
"CHAT"...--THIS WORD IS MISSING...there are just thair names.

TNX
Title: Re: FlashChat Integration
Post by: Tan on February 23, 2007, 01:21:30 PM
Theme Changes
To install this on your custom theme (so it shows the users in the chat under Users Online), you'll need to edit Themes/[theme name]/BoardIndex.template.php. Note that this will not add the Chat button to the menu bar, you'll need to ask the theme creator about that!

In Themes/[theme name]/BoardIndex.template.php, find:
Code:

echo '
                  ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

Replace with:

echo '
                  ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];

Also, find:
Code:
   if (!empty($context['users_online']))
echo '
                     ', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
Add after:
Code:
// --- Begin FlashChat integration ---
   // If there's users in the chat
   if (!empty($context['users_chat']))
      echo '
                     <br />
                     ', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
   // --- End FlashChat integration ---


Title: Re: FlashChat Integration
Post by: Smith Online on February 24, 2007, 08:04:22 PM
Please Help Me Out :-[
Ive have been trying to get flash chat v479 integrated with smf v1.1.2 for days now with no luck :'(. Daniel15 Sounds like hes the man on making a simple mod to integrate flash chat v479 with smf 1.1.2 please help :(.

I am using the igoh theme located here (in green)
http://custom.simplemachines.org/themes/index.php?lemma=62
on smf v1.1.2 if this would make a difference to the instalation of the mod

Please help if have read every forum regarding this and tried everything they have said to integrate but still no look  :(

I am currently using no mods at all on the forum. I have fully installed flashchat and it works great using same database as smf i just need to add the chat button into smf v1.1.2.I have already made the button for my theme but just need to know how to integrate if anyone could help me that would be great as i have run out of options and really need this integration.

THANKS IN ADVANCE FOR ANY HELP GIVEN IT IS GREATLY APPRECIATED

Regards

Smith-Online

If any more information is needed i will gladly supply you with it.
Title: Re: FlashChat Integration
Post by: Mick. on February 24, 2007, 08:30:38 PM
Ive been using  tufats chat with an external link just fine. I tried Daniels mod and WOW! look at all my errors:

1. Extract File ./Sources/Chat.php 
2. Extract File ./Themes/default/Chat.template.php 
3. Execute Modification ./index.php Test successful
4. Execute Modification ./SSI.php Test failed
5. Execute Modification ./Sources/BoardIndex.php Test successful
6. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification ./Themes/default/index.template.php Test successful
9. Execute Modification ./chat/inc/flashChatTag.php File not found
10. Execute Modification ./chat/inc/cmses/smfCMS2.php File not found



I also tried this file in the boardindexphp file but it seems that their link may be old.
( see attached pic) 2nd pics is what it suppose to look like.
// flashchat users
echo '
<tr>
<td class="catbg" colspan="2">FlashChat Users</td>
</tr>
<tr>
<td class="windowbg">&nbsp;</td>
<td class="windowbg2" width="100%"><iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], '/chat/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe></td>
</tr>';


found here --> http://tufat.com/docs/flashchat/whos_chatting_smf.html

any ideas on how to make it work in my forum?



Title: Re: FlashChat Integration
Post by: RoarinRow on February 24, 2007, 09:03:21 PM
Looks like there's some known issue with Googlebot and Spiders.  See 2nd page of this thread - here (http://www.simplemachines.org/community/index.php?topic=139769.15).  There's also a fix to the boardindex.template.php file.  Looks like you'll need to make manual updates.

For these two errors, did you install the chat software in your forum root directory?  maybe that's why it can't find the file?

9. Execute Modification ./chat/inc/flashChatTag.php File not found
10. Execute Modification ./chat/inc/cmses/smfCMS2.php File not found

Ro
Title: Re: FlashChat Integration
Post by: Smith Online on February 25, 2007, 08:10:07 AM
when installing mod i get this error
Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Installing this package will perform the following actions:  Type Action Description
1. Extract File ./Sources/Chat.php 
2. Extract File ./Themes/default/Chat.template.php 
3. Execute Modification install.xml Modification parse error  
4. Execute Modification - Modification parse error  

Whats this mean?????

using flash chat v479 and smf v1.1.2 with theme igoh (in green)
Title: Re: FlashChat Integration
Post by: Mick. on February 25, 2007, 09:01:55 AM
Quote from: RoarinRow on February 24, 2007, 09:03:21 PM
Looks like there's some known issue with Googlebot and Spiders.  See 2nd page of this thread - here (http://www.simplemachines.org/community/index.php?topic=139769.15).  There's also a fix to the boardindex.template.php file.  Looks like you'll need to make manual updates.

For these two errors, did you install the chat software in your forum root directory?  maybe that's why it can't find the file?

9. Execute Modification ./chat/inc/flashChatTag.php File not found
10. Execute Modification ./chat/inc/cmses/smfCMS2.php File not found

Ro

I can work with the googlebot & spiders fine but i havent done so because i cant figure out why 9-10 are still missing(not found).

I tried moving folders here and there but no luck.

I thought my forum root is (publichtml) folder in "Fantastico" is in it?
Title: Re: FlashChat Integration
Post by: RoarinRow on February 25, 2007, 05:28:30 PM
Quote from: BlueDevil on February 25, 2007, 09:01:55 AM
Quote from: RoarinRow on February 24, 2007, 09:03:21 PM
Looks like there's some known issue with Googlebot and Spiders.  See 2nd page of this thread - here (http://www.simplemachines.org/community/index.php?topic=139769.15).  There's also a fix to the boardindex.template.php file.  Looks like you'll need to make manual updates.

For these two errors, did you install the chat software in your forum root directory?  maybe that's why it can't find the file?

9. Execute Modification ./chat/inc/flashChatTag.php File not found
10. Execute Modification ./chat/inc/cmses/smfCMS2.php File not found

Ro

I can work with the googlebot & spiders fine but i havent done so because i cant figure out why 9-10 are still missing(not found).

I tried moving folders here and there but no luck.

I thought my forum root is (publichtml) folder in "Fantastico" is in it?

Maybe those files did not come over when you were FTP'ing the FlashChat software files.  Try to upload those again to the /chat/inc path.
Title: Re: FlashChat Integration
Post by: Mick. on February 25, 2007, 09:14:41 PM
Quote from: RoarinRow on February 25, 2007, 05:28:30 PM
Quote from: BlueDevil on February 25, 2007, 09:01:55 AM
Quote from: RoarinRow on February 24, 2007, 09:03:21 PM
Looks like there's some known issue with Googlebot and Spiders.  See 2nd page of this thread - here (http://www.simplemachines.org/community/index.php?topic=139769.15).  There's also a fix to the boardindex.template.php file.  Looks like you'll need to make manual updates.

For these two errors, did you install the chat software in your forum root directory?  maybe that's why it can't find the file?

9. Execute Modification ./chat/inc/flashChatTag.php File not found
10. Execute Modification ./chat/inc/cmses/smfCMS2.php File not found

Ro

I can work with the googlebot & spiders fine but i havent done so because i cant figure out why 9-10 are still missing(not found).

I tried moving folders here and there but no luck.

I thought my forum root is (publichtml) folder in "Fantastico" is in it?

Maybe those files did not come over when you were FTP'ing the FlashChat software files.  Try to upload those again to the /chat/inc path.

Ill try that.
Title: Re: FlashChat Integration
Post by: Brain916 on March 04, 2007, 10:30:50 AM
When I try and upload the package to my server (through the admin panel on my forum) I get this error message:

The package you tried to upload either is not a valid package or has become corrupted.
Title: Re: FlashChat Integration
Post by: Cadence on March 04, 2007, 05:11:07 PM
Quote from: Brain916 on March 04, 2007, 10:30:50 AM
When I try and upload the package to my server (through the admin panel on my forum) I get this error message:

The package you tried to upload either is not a valid package or has become corrupted.

I get the same thing.  I don't think it works with 1.1.2.  Did you also update to that SMF version recently?  Perhaps, that is the problem.
Title: Re: FlashChat Integration
Post by: k.trout on March 10, 2007, 02:08:12 PM
Quote from: Cadence on March 04, 2007, 05:11:07 PM
Quote from: Brain916 on March 04, 2007, 10:30:50 AM
When I try and upload the package to my server (through the admin panel on my forum) I get this error message:

The package you tried to upload either is not a valid package or has become corrupted.

I get the same thing.  I don't think it works with 1.1.2.  Did you also update to that SMF version recently?  Perhaps, that is the problem.

Same problem.  I would love to integrate flashchat with SMF.  What's up?
Title: Re: FlashChat Integration
Post by: Tan on March 10, 2007, 02:23:49 PM
Dont think it ready for 1.1.2 yet. It will work if you load flash chat on to 1.1.1 then update to 1.1.2 afterwards. Thats what i did and it works great.


Title: Re: FlashChat Integration
Post by: Daniel15 on March 10, 2007, 07:37:57 PM
Sorry guys, I haven't had time to test the mod with SMF 1.1.2... I'll do that right now :)

EDIT: FlashChat website is down at the moment, so I can't download a copy of the latest FlashChat version. As soon as it's up again, I'll test the mod :)

EDIT 2: I just tested it, and it works fine for me. What PHP version do you guys have (can be checked in  the "Support and Credits" section of the admin panel)?
Can you try CHMODding your Packages directory to 0777? Then, create a temp directory inside it, and CHMOD that to 0777 also.
Title: Re: FlashChat Integration
Post by: crash56 on March 12, 2007, 11:58:08 AM
I just installed this on our forum (SMF 1.1.2 without Googlebot/Spiders) and it went in without a hiccup.  I'm still futzing with the themes to get the Users Online to show up (we've got some 1.0.x themes still in use), but no problems so far. 

Very nice!!!  Thank you.  :D
Title: Re: FlashChat Integration
Post by: k.trout on March 12, 2007, 10:38:39 PM
Daniel - thanks for all of your work in creating and supporting the flashchat program.  Very much appreciated.

I saw your suggestion to chmod the packages dir to 777 and add a "temp" dir with 777 in another thread on this forum and had tried it and still got the error message when trying to download the package that it is either corrupt or not compatible with this version.

I have flashchat running in my forum base directory.  It is running as a public chat.  When installed it  required me to chmod quite a few files and directories.  It then seemed to skip the install screen for choosing your BB and went directly to the form that handles info about DB, db user, password etc.  None of the fields were filled in so I went ahead and filled them in and the program installed just fine.    I chose a public forum due to having seen something on your site saying that if the data was not automatically filled in that it was likely having trouble installing.  So I went ahead and made it a public chat for fear that if I had chosen to integrate that I would have been left with a dead chat.  The people on my forum like it a great deal and I would like to be able to integrate it with the forum so that only registered users could access and they could also keep track of who was in the chat at any given time. 

Is it mandatory that this mod be downloaded with the package section of the admin.  I downloaded the mod onto my pc and I assume it is the same files that are in the "package."  Should I go ahead and try and run it?  Are there directions for a manual install?

Many thanks.

K  
Title: Re: FlashChat Integration
Post by: Daniel15 on March 13, 2007, 04:49:26 AM
Quote from: crash56 on March 12, 2007, 11:58:08 AM
I just installed this on our forum (SMF 1.1.2 without Googlebot/Spiders) and it went in without a hiccup.  I'm still futzing with the themes to get the Users Online to show up (we've got some 1.0.x themes still in use), but no problems so far. 

Very nice!!!  Thank you.  :D
I haven't looked at 1.0 themes for ages, but SMF 1.0 did things quite differently (SMF 1.1's design is a lot better :))

Quoteif I had chosen to integrate that I would have been left with a dead chat
This mod requires you to integrate the chat.
Basically, by integrating the chat, it will share your forum's member list. This mod takes advantage of that to show who's online on your board index :)

QuoteIs it mandatory that this mod be downloaded with the package section of the admin.
Usually, this is what is done, although it's possible to install it manually (see below)

Quotedownloaded the mod onto my pc and I assume it is the same files that are in the "package."  Should I go ahead and try and run it?  Are there directions for a manual install?
Yes, it's the same files :)
If you want to install it manually, then upload the package to http://server.daniel15.com/smf/package.php. It will tell you exactly what you need to do (you need to upload Chat.php to Sources, Chat.template.php to Themes/default, and edit some of SMF's files). If you need any assistance, feel free to ask ;)

By the way, I'm not a developer of FlashChat, I just make this integration mod for SMF ;)
Title: Re: FlashChat Integration
Post by: k.trout on March 13, 2007, 07:45:54 PM
Thanks for your help with this Daniel15

QuoteThis mod requires you to integrate the chat.

So does this mean that I need to re-install?  You mention later in your post that the chat.php file needs to be placed in the sources directory.  I have my smf in a directory called forums and installed the chat program in that directory.  Does it need to be in forums/sources?  This might explain my trouble in installing.

QuoteIf you want to install it manually, then upload the package to http://server.daniel15.com/smf/package.php. It will tell you exactly what you need to do (you need to upload Chat.php to Sources, Chat.template.php to Themes/default, and edit some of SMF's files). If you need any assistance, feel free to ask

Thanks for this.  I had a quick look and became quickly intimidated.  :o  I'm pretty much a noob at this sort of thing and a couple of add or replace I can handle but when it is a bit more my poor bio-computer gets overwhelmed.  I may work on getting the package to load properly and find out what might be holding that up.  If I can't figure that one out I will bite the bullet and do it by hand. 



Title: Re: FlashChat Integration
Post by: Daniel15 on March 13, 2007, 10:51:17 PM
QuoteSo does this mean that I need to re-install?  You mention later in your post that the chat.php file needs to be placed in the sources directory.  I have my smf in a directory called forums and installed the chat program in that directory.  Does it need to be in forums/sources?  This might explain my trouble in installing.
You'll need to install FlashChat into a folder called "chat" inside your forum's directory.

So, if your forum is in a folder called "forum", you'll end up with:

forum (main forum folder)
|-- chat (all the FlashChat files)
|-- Sources
 |    |-- Chat.php (file included with this mod)
|-- Themes
      |-- default
           |-- Chat.template.php (included with this mod)
(I'm hoping that this makes sense to you? Basically, you'll have all the FlashChat files in forum/chat, and the files from my mod in forum/Sources/Chat.php and forum/Themes/default/Chat.template.php)
QuoteThanks for this.  I had a quick look and became quickly intimidated.    I'm pretty much a noob at this sort of thing
Don't worry, it's not that hard :)
Make sure you have a backup copy of all the files you edit. Then, if something goes wrong, you can upload the backed up file. Note that if you follow the instructions carefully, you'll be fine :D
Title: Re: FlashChat Integration
Post by: k.trout on March 14, 2007, 05:19:35 PM
Aha!  Some progress.

I searched on the board and found a thread that solves the "package you are trying to download or install is either corrupt or not compatible with this version of SMF. "  Very simple solution on this thread.

http://www.simplemachines.org/community/index.php?topic=141810.0

Basically they say:

QuoteDelete the "Simple Machines Third-party Mod Site"

Add a new one with this address: http://custom.simplemachines.org/mods

I did this and was able to download the package just fine.  Now we will see what happens.
Title: Re: FlashChat Integration
Post by: Smith Online on March 14, 2007, 05:53:44 PM
I was a noob at this sort of thing and did not have a clue how to install after reading loads of post regarding installing mods and permissions and integrating various programs etc i have finally found a way that works for installing mods. :D

My flash chat version = v479
My smf version = 1.1.2

This is how i successfully installed the flash chat mod with no problem or errors: -
if you are a noob to this sort of thing dont worry follow the intructions below at you will be up and running in no time this will take approx 30 mins and you will have flash chat installed and working on your smf forum.

Below are instructions for installing flash chat manually as i tried everything to install via package manager but with no luck i just got error after error and after reading a few posts i found everyone else had problems using the package manager. The errors that accur using package manager are because of permission problems accessing files also your server being in safe mode and many other factors but if you install manually following the instructions below then this should work for anyone.


HOW TO INSTALL THE FLASH CHAT MOD MANUALLY

First of all you need to install you flash chat program into a folder called chat on your server

Then run this in your web browser: -
www.yoursite.com/chat/install.php

Then you will see this: -
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.tufat.com%2Fdocs%2Fflashchat%2Fimages%2Finstaller_step_1.gif&hash=04e3f3430e397da5d522f3eff3ffa635426bb73a)

Then tick the box at the top the says "click here if you wish to integrate flash chat..................etc"

Then follow all instructions given on the following pages the next page you will see will be the database information which should already be filled in with the same information as the database used by your smf forum.

Once you have fineshed all that flash chat is now running and the following address: -
www.yoursite.com/chat/flashchat.php
Check and see that it is running ok the username and passwords to login should be the same as the ones used to login to your smf forum.

Now that your flash chat is up and running all you need to do is integrate it into your forum follow the instructions below:-

Firstly copy the files below into the folders shown which are folders within your forum:-
(these files are located in the flash chat mod)

Chat.php will be copied to $sourcedir
Chat.template.php will be copied to $themedir

Now copy all the following files form your smf forum to your computer for editing: -

file $boarddir/index.php
file $boarddir/SSI.php
file $sourcedir/BoardIndex.php
file $themedir/BoardIndex.template.php                 the default theme for the moment
file $languagedir/Modifications.english.php
file $themedir/index.template.php                         the default theme for the moment
file $boarddir/chat/inc/flashChatTag.php
file $boarddir/chat/inc/cmses/smfCMS2.php


Now you have all the above files on your computer copy all the files into a folder on your desktop called backup
do the edit the files you have in you backup folder as these files are incase something goes wrong.

Now you can follow the instructions below to edit all the files you have just downloaded from your server were your forum files are located (not the files you just placed in the backup folder): -

To edit the files simply open the files in notepad you will then see all the code contained in the file you are simply adding/modifieing the code in each file. I quick way to find the code needed is to click on edit then click on find and type in what you want to find.

Editing the files

Open this page http://server.daniel15.com/smf/package.php (http://server.daniel15.com/smf/package.php) this click on the browse button and find the FlashChatSMF_0-1_Beta.zip file on your computer (which is the flash chat mod) then click on open select smf version 1.1.2 then leave all the boxes as defualt then click on send file.

you will then be shown a page which will show you what code needs editing / replacing / adding into each file

edit / replace / add all the code in the correct files carefully

Once you have do all the above put the files back on your server in to the correct folders.

Now load up your forum and select the default theme if nessesary you will see a chat button at the top click on that and flash chat will load within your smf forum  :D


NOW ONLY IF YOU ARE USING A DIFFERENT THEME FORM THE ORIGINAL YOU NEED TO CHANGE TWO FILES IN THE THEME YOU WISH TO USE:-

To do this simply copy the following two files from your server to your pc (remeber to keep backups as before)

[theme name]/BoardIndex.template.php
[theme name]/index.template.php

Then edit the two files in the same way as before with the following code: -

In File BoardIndex.template.php

find:

echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];


Replace with:

echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];



Also, find:

if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);


Add after:

// --- Begin FlashChat integration ---
// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<br />
', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---



In the index.template.php you simply need to add the chat button below is the code i used in the dilbermc theme
if you use a differnt theme ask the theme maker how to add a button in that theme.

find:   
// Show the [help] button.
echo'
<td align="center" class="menubg' , $current_action == 'help' ? '2' : '' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>';


Add after:
Quote// Show the [CHAT] button.
   if ($context['user']['is_logged'])
   echo'
            <td align="center" class="menubg' , $current_action == 'CHAT' ? '2' : '' , '">
               <a href="', $scripturl, '?action=chat">' , $txt['fc_chat'] , '</a>
            </td>';


HOPE THIS HELPS EVERYONE :D

THANKS DANIEL15 KEEP UP THE GREAT WORK
Title: Re: FlashChat Integration
Post by: k.trout on March 14, 2007, 08:35:15 PM
Thanks Smith-Online for such a thorough explanation.

I am almost there.  I was able to run the package and it installed fine.  I realized at that point that my original installation of the chat program had to be re-installed since it had never been "integrated" with the smf board. I deleted the original chat installation and re-installed this time checking the box to integrate it.  (I realized that I likely had checked it originally but that after I changed the permissions of the files and reloaded the form the I didn't notice that the checkbox became automatically unchecked.)  It ran just fine this time.  At this point the chat is running and allows logins only from registered users on the board.  The default theme shows the users in the chat and there is a chat button on the top of the board.  My only problem at this point is that the button now does not load the chat program it gets the following error:

QuoteFatal error: Cannot redeclare reloadsettings() (previously declared in /home/webhi/public_html/forums/Sources/Load.php:140) in /home/webhi/public_html/forums/Sources/Load.php on line 138

I am assuming this error is due to the present installation of the mod not matching the new installation of the chat program.  Is there an easy fix for this one?

Many thanks.  This is great!
Title: Re: FlashChat Integration
Post by: ckgb on March 16, 2007, 09:39:25 PM
Hi,

Every time I move from chat to a different part of my forum (i.e. Memberlist) I have the forum itself open up as a popup.

Any ideas on how to fix this?

Thank you
Title: Re: FlashChat Integration
Post by: Burtie on March 17, 2007, 12:04:01 PM
Hi All,

I am using SMF version 1.0.10 and would like to be able to show chat users online. Is it possible?

Many Thanks
Title: Re: FlashChat Integration
Post by: Daniel15 on March 17, 2007, 08:42:56 PM
Smith-Online, thanks for that! :D

QuoteMy only problem at this point is that the button now does not load the chat program it gets the following error:
What's in your Load.php file? Please paste lines 135-145 here (use an editor that shows line numbers, such as Notepad++ (http://notepad-plus.sf.net/)).

Quote from: ckgb on March 16, 2007, 09:39:25 PM
Hi,

Every time I move from chat to a different part of my forum (i.e. Memberlist) I have the forum itself open up as a popup.

Any ideas on how to fix this?

Thank you
The popup is meant to log you out, but I haven't fixed it completely yet. Take a look at Simplemachines Cowboy's post at http://www.simplemachines.org/community/index.php?topic=139769.msg942401#msg942401 to see how to fix it.

Quote from: Burtie on March 17, 2007, 12:04:01 PM
Hi All,

I am using SMF version 1.0.10 and would like to be able to show chat users online. Is it possible?

Many Thanks
SMF 1.0 works quite differently to SMF 1.1. I haven't looked at SMF 1.0's code in ages, so I'm not sure whether it's possible or not.
Title: Re: FlashChat Integration
Post by: k.trout on March 17, 2007, 11:15:21 PM
Thanks for your help with this Daniel15.

I am assuming you mean the Load.php file in forum/Sources  Yes?  If so, here is what my text editor said lines 135-145 were

*/

// Load the $modSettings array.
function reloadSettings()
{
   global $modSettings, $db_prefix, $boarddir, $func, $txt, $db_character_set;
   global $mysql_set_mode, $context;

   // This makes it possible to have SMF automatically change the sql_mode and autocommit if needed.
   if (isset($mysql_set_mode) && $mysql_set_mode === true)
      db_query("SET sql_mode='', AUTOCOMMIT=1", false, false);
Title: Re: FlashChat Integration
Post by: Draco_Wolf on March 18, 2007, 05:31:51 AM
I have download the flashchat into the forum but I can't see any chat button but I can see the chat button when I put default theme. How to add button to lightning-dx theme ?  Please Help Me !
Thank You
Title: Re: FlashChat Integration
Post by: Mick. on March 18, 2007, 09:00:20 AM
I cant go any forward with this:

9. Execute Modification ./chat/inc/flashChatTag.php File not found
10. Execute Modification ./chat/inc/cmses/smfCMS2.php File not found

I have redloaded the mod over and over and i dont know what else to do.
Title: Re: FlashChat Integration
Post by: Draco_Wolf on March 18, 2007, 10:16:35 AM
Quote from: Simplemachines Cowboy on February 03, 2007, 11:41:32 PM
To solve the log out pop-up problem:

Find the dologout.php file in your chat folder.
Make a copy, and place the copy in your main SMF root folder.
Edit the 2nd line of the file to reflect the proper path.
This is mine; FlashChat is in the /chat folder.
require_once('chat/inc/common.php');



After I copy and paste, my flash chat cannot use anymore. Can anyone fix this ??
Title: Re: FlashChat Integration
Post by: Sidhe on March 21, 2007, 07:59:03 PM
Hi... I am also running the Amber theme and have had a hard time getting a button/link to appear on the top menu.  I did exactly as suggested below... and there is now a link on the menu bar... but it has no text... just a blank space that links to the chat.  Any ideas?

SMF 1.1.2,  Amber theme... otherwise the same as the original poster of this questions.

Thank you.


Quote from: Daniel15 on January 11, 2007, 05:32:21 AM
Quote from: SMURF6060 on January 10, 2007, 09:45:50 PM

QuoteBut how would i get it to show in the menu task bar?
QuoteYou'd need to ask the author of the theme how to add a new button.
If you provide a link to the theme download, I'll take a look at it ;)

http://www.tinyportal.net/index.php?action=tpmod;dl=item506
is the download link for BLOC'S  amber theme for smf 1.1 final
OK, in Themes/amber11final/index.template.php, find:

if (in_array($_GET['action'],array('search','admin','calendar','profile','mlist','register','login','pm','help')))

Replace with:

if (in_array($_GET['action'],array('search','admin','calendar','profile','mlist','register','login','pm','help','chat')))


Also, find:

// The [calendar]!
if ($context['allow_calendar'])
echo $tab1, $ca== 'calendar' ? '1' : '2' , '"><a href="', $scripturl, '?action=calendar">'.$txt['calendar24']. '</a></td>';

Add after:

// FlashChat!
if ($context['user']['is_logged'])
echo $tab1, $ca== 'chat' ? '1' : '2' , '"><a href="', $scripturl, '?action=chat">'.$txt['fc_chat']. '</a></td>';


QuoteI've decided I'd like to keep all the functions of the mod but I would like to have the chat window seperated again from the forum page.  Is this possible to do without too much trouble?
Nope, no trouble at all :). Simply changing the link to the default FlashChat one will do this.
In Themes/default/index.template.php, find:

<a href="', $scripturl, '?action=chat">' , $txt['fc_chat'] , '</a>

Replace with:

<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php">' , $txt['fc_chat'] , '</a>


In the future, there may be an option to enable or disable this in the admin panel :)

Title: Re: FlashChat Integration
Post by: ronnie41 on March 22, 2007, 09:46:07 AM
Quote from: sciurus on January 10, 2007, 11:31:11 AM
Great mod, no probems to install, simple instructions to follow to edit custom template.

I wish it was that simple cose i have the following problem.

I do these steps.

I have download the mod ( trough smf )
I try to instal then this happens.

ftpserver: localhost            port:21
username: i fill in
password: i fill in
lokal pad to smf: i have tried everything but nothing seems to work!!! what in the name of god do i have to fill in here, i have tried my www.myadres and more  of it but i do not get it running.

i have already installed flashchat and that is running ok, but i not cant get it running trough the forum.
it makes me crazy and hope somebody can help to get this running ok.

thanks for the help.

Greetz Ronnie
Title: Re: FlashChat Integration
Post by: k.trout on March 25, 2007, 08:56:46 AM
One solution for my situation might be to simply un-install the flashchat integration mod and then re-install.  The present installation of this mod was done when my version of flashchat was not integrated into the SMF board.  Does anyone have any experience with using un-install with this mod?  Are there risks involved?  If not it looks like that may be my best option.  Thanks for any feedback on this.

K
Title: Re: FlashChat Integration
Post by: ckgb on March 25, 2007, 09:38:06 PM
Hello,

I am trying to figure out how to moderate this integrated chat. Install/Integration and mod installation all went with no problem. Everything works fine.

But moderation is something I can not figurte out.

1. First of all administrator seems not to be able to ban users. Cause all it does is kick them out of the room which they can reenter right away.

2. Id does not matter which way a user was banned (forum or chat) - this user can re-enter the chat and talk in there. Basically ban does not work.

....... what needs to be done to ban permanently? Not temporarily kick out..

3. What is the way to give someone chat moderator rights?

Thank you.
Title: Re: FlashChat Integration
Post by: Col on March 26, 2007, 07:49:31 PM
Hi Daniel,

You've done a nice job.

I've combined the code you pasted in the first few pages so that I have the chat room open in its own window, and without being embedded within the forum index page. This means that members can roam the forum, and listen out for when someone enters the chat room. Also, they will have no forum buttons to click, etc., which would log them out if used in chat room view.

Anyway, I need to make a couple of modifications. I use php includes to show who's online on my webpages. I'd like to show who's in the chat room too. can you give me pointer, or better still, the code! ;) I'd also like to rearrange the info in Users Online, so that:

4 Guests, 6 Users
Users active in past 15 minutes:
member A, member B, etc.
3 user(s) currently in chat:
member 1, member 2, member 3

I'd like to then port this to the webpages with a php include. Actually, if you don't mind me saying so, I think your mod would benefit from this modest tweak to the display of the stats. Perhaps even a box line separating the two sets of stats?

Anyway, any help you can offer would be greatly appreciated.

Thanks.
Title: Re: FlashChat Integration
Post by: seelie on March 28, 2007, 11:42:30 AM
This should be a quickie ...

Currently, I have this code to open Flashchat w/o forum around it.

<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php >' , $txt['fc_chat'] , '</a>

Where exactly would I place the target=_blank and any height / width declarations to spawn a new, smaller window?
Title: Re: FlashChat Integration
Post by: boki on March 30, 2007, 11:55:25 AM
I've installed mod file (test was successful), but afther that I get the following error message in forum:

Table 'drugacen_smforum.flashchat_connections' doesn't exist
File: /home/drugacen/public_html/smf/Sources/BoardIndex.php
Line: 359

Do you have any idea why?

Thanks
Title: Flashchat display SMF realName (displayed name) instead of memberName (login ID)
Post by: mtncat on March 30, 2007, 01:20:33 PM
Got this form Veronica's post on Tufat forum:

Change in /chat/inc/cmses/smfCMS2.php add the bold underlined text:

function getUser($userid) {

    $rv = NULL;
    if(($rs = $this->getUserStmt->process($userid)) && ($rec = $rs->next())) {
      $rec['roles'] = $this->getRoles($rec['status']);
      $rec['login'] = $rec['realName'];
      $rv = $rec;
    }

and also the bold underlined text (note the comma sign must be added too)


$this->getUserStmt  = new Statement("SELECT ID_MEMBER AS id, memberName AS login, ID_GROUP as status, realName FROM {$GLOBALS['db_prefix']}members WHERE ID_MEMBER=? LIMIT 1");


Now users will autologin or login with their SMF memberName but FlashChat will show their SMF realName in the chat rooms


Thanks Veronica!!
Title: Re: FlashChat Integration
Post by: aislin on March 31, 2007, 05:04:36 AM
I seem to have inadvertently done something others were trying to do on purpose! I moved my forum to a different dir and the chat works fine except that when you click to go to another section of the forum the little logout window doesn't appear, and the users stay in the users in chat list even when they've logged off the forum. I have absolutely no idea what I did. Any help would be appreciated!   
Title: Re: FlashChat Integration
Post by: mtncat on March 31, 2007, 10:46:20 PM
Quote from: aislin on March 31, 2007, 05:04:36 AM
I seem to have inadvertently done something others were trying to do on purpose! I moved my forum to a different dir and the chat works fine except that when you click to go to another section of the forum the little logout window doesn't appear, and the users stay in the users in chat list even when they've logged off the forum. I have absolutely no idea what I did. Any help would be appreciated!   

I think that happens when a user doesn't click the Flashchat logout button on the top right of the Chat Window.  I have mine opening in a new window, that allows me to stay in the chat window even if not logged into SMF.  Flashchat will autologin if you are signed into SMF, but will not autologout when you logout   or timeout from SMF.

Quote from: seelie on March 28, 2007, 11:42:30 AM
This should be a quickie ...

Currently, I have this code to open Flashchat w/o forum around it.

<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php >' , $txt['fc_chat'] , '</a>

Where exactly would I place the target=_blank and any height / width declarations to spawn a new, smaller window?


I've been playing with this too... no luck yet.  If someone can show us how to do this... that'd be pretty awesome!!
Title: Re: FlashChat Integration
Post by: Col on April 01, 2007, 07:27:09 PM
Hi Seelie and mtncat,

To have the chatroom open in a new window, and without it being embedded within the forum template, edit index.template.php in your theme folder:

Search:
<a href="', $scripturl, '?action=chat">' , $txt['fc_chat'] , '</a>

Replace with:
<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php" target="_blank">' , $txt['fc_chat'] , '</a>

Backup first, etc., etc.
Title: Re: FlashChat Integration
Post by: k.trout on April 01, 2007, 08:29:08 PM
Col!  Thanks for posting the code.  Just on a whim I went to my index.template.php and plugged in that code for what I had there and voila!  This solved my problem of the chat icon not functioning on the main page.  Now it works like a charm and the users are noted in the users online and it opens a new page.  I'm not sure why it fixed it but it did. Many thanks.

Now all I need to know is how to get the "Classic" theme to work with the mod and I will be good to go.  Anyone worked with that theme?
Title: Re: FlashChat Integration
Post by: nafishasan60 on April 02, 2007, 12:06:45 PM
 Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Execute Modification     ./chat/inc/flashChatTag.php     File not found
10.    Execute Modification    ./chat/inc/cmses/smfCMS2.php    File not found
Title: Re: FlashChat Integration
Post by: seelie on April 02, 2007, 12:30:56 PM
Thanks :)

One last question.  I use the Default-MC theme.  I've got all the users in chat portions all edited in to index.template.php and boardindex.template.php

However, one small problem.  I figured I'd be clever and add the same integrated bit to the Info Center up top that my theme uses .   What I edited in works, but ~only~ shows up on the index page of the forum.  Dive deeper into the forum, and it doesn't show, though name, messages, time, etc show globally.  Any ideas?

This is the pertinent bit I have in index.template.php

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
  <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a>  |
  <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ' ', $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] :

$txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] :

$txt['newmessages1'];
echo '.<br />';

// --- Begin FlashChat integration ---
// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<br />
', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---


Title: Re: FlashChat Integration
Post by: Col on April 02, 2007, 12:34:48 PM
nafishasan60,

Have you installed Flashchat BEFORE installing this mod? Maybe I've misunderstood the error (being a non-coder), but this mod purely integrates Flashchat into your SMF forum more fully.
Title: Re: FlashChat Integration
Post by: Col on April 02, 2007, 12:46:58 PM
Quote from: seelie on March 28, 2007, 11:42:30 AM
This should be a quickie ...

Currently, I have this code to open Flashchat w/o forum around it.

<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php >' , $txt['fc_chat'] , '</a>

Where exactly would I place the target=_blank and any height / width declarations to spawn a new, smaller window?

I've just reread this: can you not just include something like this (untested):

<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php" target="_blank" height="400" width="500">' , $txt['fc_chat'] , '</a>
Title: Re: FlashChat Integration
Post by: seelie on April 02, 2007, 01:00:51 PM
Quote from: Col on April 02, 2007, 12:46:58 PM
Quote from: seelie on March 28, 2007, 11:42:30 AM
This should be a quickie ...

Currently, I have this code to open Flashchat w/o forum around it.

<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php >' , $txt['fc_chat'] , '</a>

Where exactly would I place the target=_blank and any height / width declarations to spawn a new, smaller window?

I've just reread this: can you not just include something like this (untested):

<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php" target="_blank" height="400" width="500">' , $txt['fc_chat'] , '</a>

It works fine, but ignores the height and width.  I believe I'll have to use some sort of javascript to control the h/w of the new window.  Of course, no users have mentioned ~wanting~ an auto-magically smaller window, so I may leave well enough elone ;)
Title: Re: FlashChat Integration
Post by: Col on April 02, 2007, 01:07:46 PM
You should be able to set the height and width within the Flashchat template though! As you said, not really an issue anyway.
Title: Re: FlashChat Integration
Post by: seelie on April 03, 2007, 11:00:40 AM
Any hints on the below and why the integration bit I added only appears on the index page of the forum?


Quote from: seelie on April 02, 2007, 12:30:56 PM
Thanks :)

One last question.  I use the Default-MC theme.  I've got all the users in chat portions all edited in to index.template.php and boardindex.template.php

However, one small problem.  I figured I'd be clever and add the same integrated bit to the Info Center up top that my theme uses .   What I edited in works, but ~only~ shows up on the index page of the forum.  Dive deeper into the forum, and it doesn't show, though name, messages, time, etc show globally.  Any ideas?

This is the pertinent bit I have in index.template.php

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
  <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a>  |
  <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ' ', $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] :

$txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] :

$txt['newmessages1'];
echo '.<br />';

// --- Begin FlashChat integration ---
// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<br />
', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---



Title: Re: FlashChat Integration
Post by: mtncat on April 04, 2007, 04:19:24 PM
Quote from: seelie on April 03, 2007, 11:00:40 AM
Any hints on the below and why the integration bit I added only appears on the index page of the forum?


Quote from: seelie on April 02, 2007, 12:30:56 PM
Thanks :)

One last question.  I use the Default-MC theme.  I've got all the users in chat portions all edited in to index.template.php and boardindex.template.php

However, one small problem.  I figured I'd be clever and add the same integrated bit to the Info Center up top that my theme uses .   What I edited in works, but ~only~ shows up on the index page of the forum.  Dive deeper into the forum, and it doesn't show, though name, messages, time, etc show globally.  Any ideas?

This is the pertinent bit I have in index.template.php

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
  <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a>  |
  <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ' ', $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] :

$txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] :

$txt['newmessages1'];
echo '.<br />';

// --- Begin FlashChat integration ---
// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<br />
', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---




Hey seelie,

I'm trying to accomplish the things that you are too, the auto-small chat window and the "Who's in Chat" a the top of the forum.  I figure those features alone would increase Chat usage considerably.  I will post any progress.

Thanks to Daniel, and all those sharing their knowledge
Title: Re: FlashChat Integration
Post by: SteveK on April 05, 2007, 01:54:15 AM
SMF 1.1.2
Babylon

I'm having problems with the auto login.  When you click on the chat button FlashChat opens but pops up a login box.  Is there something I did wrong?  I clicked the checkbox to use a forum integration and checked SMF 1.1 in the FlashChat install.

I set this up in my test forum and the auto login worked great but it won't work with the main forum, go figure??

Steve

Title: Re: FlashChat Integration
Post by: Daniel15 on April 05, 2007, 06:27:41 AM
Sorry for not replying sooner; I forgot about this topic :-[

I'll go through a few of the posts, please tell me if I missed yours. Also, I'd prefer if you made any posts relating to this mod at www.daniel15.com instead of here - It's a lot easier to manage it then :)

Quote from: BlueDevil on March 18, 2007, 09:00:20 AM
I cant go any forward with this:

9. Execute Modification ./chat/inc/flashChatTag.php File not found
10. Execute Modification ./chat/inc/cmses/smfCMS2.php File not found

I have redloaded the mod over and over and i dont know what else to do.
Are you sure that FlashChat is installed in the "chat" directory inside your SMF directory?

Quote from: Sidhe on March 21, 2007, 07:59:03 PM
Hi... I am also running the Amber theme and have had a hard time getting a button/link to appear on the top menu.  I did exactly as suggested below... and there is now a link on the menu bar... but it has no text... just a blank space that links to the chat.  Any ideas?

SMF 1.1.2,  Amber theme... otherwise the same as the original poster of this questions.

Thank you.
Try replacing '.$txt['fc_chat'].' with Chat, this should fix it.

Quote from: ronnie41 on March 22, 2007, 09:46:07 AM
Quote from: sciurus on January 10, 2007, 11:31:11 AM
Great mod, no probems to install, simple instructions to follow to edit custom template.

I wish it was that simple cose i have the following problem.

I do these steps.

I have download the mod ( trough smf )
I try to instal then this happens.

ftpserver: localhost            port:21
username: i fill in
password: i fill in
lokal pad to smf: i have tried everything but nothing seems to work!!! what in the name of god do i have to fill in here, i have tried my www.myadres and more  of it but i do not get it running.

i have already installed flashchat and that is running ok, but i not cant get it running trough the forum.
it makes me crazy and hope somebody can help to get this running ok.

thanks for the help.

Greetz Ronnie

It needs your FTP username and password - Are you sure you're using the correct username and password?

Quote from: ckgb on March 25, 2007, 09:38:06 PM
Hello,

I am trying to figure out how to moderate this integrated chat. Install/Integration and mod installation all went with no problem. Everything works fine.

But moderation is something I can not figurte out.

1. First of all administrator seems not to be able to ban users. Cause all it does is kick them out of the room which they can reenter right away.

2. Id does not matter which way a user was banned (forum or chat) - this user can re-enter the chat and talk in there. Basically ban does not work.

....... what needs to be done to ban permanently? Not temporarily kick out..

3. What is the way to give someone chat moderator rights?

Thank you.
I suggest you ask at Tufat.com, as this doesn't relate to this mod (it's a core FlashChat thing, not specific to my mod)

Quote from: seelie on March 28, 2007, 11:42:30 AM
This should be a quickie ...

Currently, I have this code to open Flashchat w/o forum around it.

<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php >' , $txt['fc_chat'] , '</a>

Where exactly would I place the target=_blank and any height / width declarations to spawn a new, smaller window?
Try something like this:
<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php" target="_blank">' , $txt['fc_chat'] , '</a>
As for the window size, I'm not quite sure how to do it.

Quote from: boki on March 30, 2007, 11:55:25 AM
I've installed mod file (test was successful), but afther that I get the following error message in forum:

Table 'drugacen_smforum.flashchat_connections' doesn't exist
File: /home/drugacen/public_html/smf/Sources/BoardIndex.php
Line: 359

Do you have any idea why?

Thanks

Are you sure it's installed into the same database? When you installed FlashChat, did you choose to integrate it with SMF?

Quote from: seelie on April 02, 2007, 12:30:56 PM
However, one small problem.  I figured I'd be clever and add the same integrated bit to the Info Center up top that my theme uses .   What I edited in works, but ~only~ shows up on the index page of the forum.  Dive deeper into the forum, and it doesn't show, though name, messages, time, etc show globally.  Any ideas?

This is the pertinent bit I have in index.template.php

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
  <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a>  |
  <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ' ', $txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] :

$txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] :

$txt['newmessages1'];
echo '.<br />';

// --- Begin FlashChat integration ---
// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<br />
', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---



This bit of code is only the bit that displays the information. You'll also need to copy the bit that grabs the information. The code needed is this:

// --- Begin FlashChat integration ---
// Get the FlashChat database config (for the prefix)
global $boarddir;
include($boarddir . '/chat/inc/config.srv.php');
// Load all the users currently in the chat
$result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$GLOBALS['fc_config']['db']['pref']}connections AS fc
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$GLOBALS['fc_config']['db']['pref']}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
ORDER BY mem.realName ASC", __FILE__, __LINE__);

$context['users_chat'] = array();
$context['list_users_chat'] = array();
$context['num_chat'] = mysql_num_rows($result);

// Loop through all users in chat
while ($row = mysql_fetch_assoc($result))
{
// Does their membergroup have a colour?
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '">' . $row['realName'] . '</a>';

// Add them to the 'Users Online' list
$context['users_chat'][$row['memberName']] = array(
'id' => $row['userid'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['userid'],
'link' => $link,
'chat' => array(
'color' => $row['color'],
'lang' => $row['lang'],
'room' => array(
'id' => $row['roomid'],
'name' => $row['roomName'],
'public' => ($row['ispublic'] == 'y' ? true : false),
),
),
);

$context['list_users_chat'][$row['memberName']] = $link . ' (' . ($row['ispublic'] != 'y' ? $txt['fc_private_room'] : $row['roomName']) . ')';

// Groups online
if (!isset($context['online_groups'][$row['ID_GROUP']]))
$context['online_groups'][$row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => $row['groupName'],
'color' => $row['onlineColor']
);
}
mysql_free_result($result);
// --- End FlashChat integration ---


I'm not sure of the best place to put it, but try adding it under

// Compatibility.
if (!isset($settings['theme_version']))
$modSettings['memberCount'] = $modSettings['totalMembers'];

in Sources/Load.php

I haven't tested this; please tell me if you encounter any errors.

QuoteI'm having problems with the auto login.  When you click on the chat button FlashChat opens but pops up a login box.  Is there something I did wrong?  I clicked the checkbox to use a forum integration and checked SMF 1.1 in the FlashChat install.
Are you sure you choose to integrate it?
If you go directly to FlashChat (....../chat/flashchat.php), does it work? If you log in via the login box (using your SMF username and password), does it work properly?
Title: Re: FlashChat Integration
Post by: k.trout on April 05, 2007, 07:29:25 AM
Daniel - Thanks so much for your support with this.  I have it up and running on my default theme and have been trying to install it into the "Classic" theme and running into troubles.  The users online section works fine but I can't get the code working that calls the chat program through an image at the top of the forum.  Here is the code from that theme that seems to call the buttons from the classic theme:


// Show the [home] and [help] buttons.
echo '
<a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=help">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];


I am a non-coding type and I hope the above code will help you direct me to solve this one. I included the full index.template.php below in case that might help.  I hope that is not a noob mistake.

Many thanks for your help. 

K


<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme.  It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below.  It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = false;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = false;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = false;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
</head>
<body>'
;

// The logo, user information, news, and menu.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="95%" class="tborder">
<tr style="background-color: #ffffff;">
<td valign="middle" align="left"><img src="'
, !empty($settings['header_logo_url']) ? $settings['header_logo_url'] : $settings['images_url'] . '/smflogo.gif''" alt="" /></td>
<td valign="middle">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
'
$txt['hello_member'], ' <b>'$context['user']['name'], '</b>'$context['allow_pm'] ? ', ' $txt[152] . ' <a href="' $scripturl '?action=pm">' $context['user']['messages'] . ' ' . ($context['user']['messages'] != $txt[153] : $txt[471]) . '</a>' $txt['newmessages4'] . ' ' $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1']) : '''.';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '<br />
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'];

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '<br />
<b>'
$txt[616], '</b>';
}
// Otherwise they're a guest - so politely ask them to register or login.
else
echo '
'
$txt['welcome_guest'];

echo '
<br />'
$context['current_time'], '
</td>
</tr>
<tr class="windowbg2">
<td colspan="2" valign="middle" align="center" class="tborder" style="border-width: 1px 0 0 0; font-size: smaller;">'
;

// Show the menu here, according to the menu sub template.
template_menu();

echo '
</td>
</tr>'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<tr class="windowbg2">
<td colspan="2" height="24" class="tborder" style="border-width: 1px 0 0 0; padding-left: 1ex;">
<b>'
$txt[102], ':</b> '$context['random_news_line'], '
</td>
</tr>'
;

echo '
</table>

<br />
<table cellspacing="0" cellpadding="10" border="0" align="center" width="95%" class="tborder">
<tr><td valign="top" style="background-color: #ffffff;">'
;
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

echo '
</td></tr>
</table>'
;

// Show a vB style login for quick login?
if ($context['show_quick_login'])
{
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="95%">
<tr><td nowrap="nowrap" align="right">
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''><br />
<input type="text" name="user" size="7" />
<input type="password" name="passwrd" size="7" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
'
$txt['smf52'], '
<input type="hidden" name="hash_passwrd" value="" />
</form>
</td></tr>
</table>'
;
}

// Don't show a login box, just a break.
else
echo '
<br />'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright.  Remember, the copyright must be somewhere!
echo '
<br />

<table cellspacing="0" cellpadding="3" border="0" align="center" width="95%" class="tborder">
<tr style="background-color: #ffffff;">
<td width="28%" valign="middle" align="right">
<a href="http://www.mysql.com/" target="_blank"><img src="'
$settings['images_url'], '/mysql.gif" alt="'$txt['powered_by_mysql'], '" width="88" height="31" border="0" /></a>
<a href="http://www.php.net/" target="_blank"><img src="'
$settings['images_url'], '/php.gif" alt="'$txt['powered_by_php'], '" width="88" height="31" border="0" /></a>
</td>
<td width="44%" valign="middle" align="center">
'
theme_copyright(), '
</td>
<td width="28%" valign="middle" align="left">
<a href="http://validator.w3.org/check/referer" target="_blank"><img src="'
$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" width="88" height="31" border="0" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img src="'
$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" width="88" height="31" border="0" /></a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<div align="center" class="smalltext">
'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>';

// And then we're done!
echo '
</body>
</html>'
;
}

// Show a linktree.  This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

// Folder style or inline?  Inline has a smaller font.
echo '<span class="nav"'$settings['linktree_inline'] ? ' style="font-size: smaller;"' '''>';

// Each tree item has a URL and name.  Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show the | | |-[] Folders.
if (!$settings['linktree_inline'])
{
if ($link_num 0)
echo str_repeat('<img src="' $settings['images_url'] . '/icons/linktree_main.gif" alt="| " border="0" />'$link_num 1), '<img src="' $settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" />';
echo '<img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';
}

// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo $settings['linktree_inline'] ? ' &nbsp;|&nbsp; ' '<br />';
}

echo '</span>';
}

// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Show the [home] and [help] buttons.
echo '
<a href="'
$scripturl'">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/home.gif" alt="' $txt[103] . '" border="0" />' $txt[103]), '</a>'$context['menu_separator'], '
<a href="'
$scripturl'?action=help">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/help.gif" alt="' $txt[119] . '" border="0" />' $txt[119]), '</a>'$context['menu_separator'];













// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="'
$scripturl'?action=search">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/search.gif" alt="' $txt[182] . '" border="0" />' $txt[182]), '</a>'$context['menu_separator'];

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="'
$scripturl'?action=admin">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/admin.gif" alt="' $txt[2] . '" border="0" />' $txt[2]), '</a>'$context['menu_separator'];

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="'
$scripturl'?action=profile">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/profile.gif" alt="' $txt[79] . '" border="0" />' $txt[467]), '</a>'$context['menu_separator'];

// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="'
$scripturl'?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/calendar.gif" alt="' $txt['calendar24'] . '" border="0" />' $txt['calendar24']), '</a>'$context['menu_separator'];

// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
echo '
<a href="'
$scripturl'?action=login">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/login.gif" alt="' $txt[34] . '" border="0" />' $txt[34]), '</a>'$context['menu_separator'], '
<a href="'
$scripturl'?action=register">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/register.gif" alt="' $txt[97] . '" border="0" />' $txt[97]), '</a>';
}
// Otherwise, they might want to [logout]...
else
echo '
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/logout.gif" alt="' $txt[108] . '" border="0" />' $txt[108]), '</a>';
}

// Generate a strip of buttons, out of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

if (empty($button_strip))
return '';

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' . ($value['lang'] ? $context['user']['language'] . '/' '') . $value['image'] . '" alt="' $txt[$value['text']] . '" border="0" />' $txt[$value['text']]) . '</a>';

$button_strip[$key] = $buttons[$key];
}

echo '
<td '
$custom_td'>'implode($context['menu_separator'], $button_strip) , '</td>';
}

?>




Title: Re: FlashChat Integration
Post by: Daniel15 on April 05, 2007, 07:55:12 AM
The actual code would look like:

// Show the FlashChat button
echo '
<a href="', $scripturl, '?action=chat">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['fc_chat'] . '" border="0" />' : $txt['fc_chat']), '</a>', $context['menu_separator'];


However, this theme needs an image for the button. I don't have Photoshop at the moment (it's on another computer), so I guess you'll need to find a suitable button to use (it should go in Themes/classic/images/english, and be called "chat.gif"
Title: Re: FlashChat Integration
Post by: k.trout on April 05, 2007, 08:14:12 AM
Thank you Daniel for such a quick response.  I added the code and a text "chat" appears on the forum.  I can easily create a gif file.  This is progress!   The only problem is that when I click the chat text link it gives me the following error:


QuoteFatal error: Cannot redeclare reloadsettings() (previously declared in /home/webi/public_html/forums/Sources/Load.php:140) in /home/webi/public_html/forums/Sources/Load.php on line 138

What should I do?
Title: Re: FlashChat Integration
Post by: Daniel15 on April 05, 2007, 08:25:21 AM
Can you check your chat/inc/cmses/smfCMS2.php file for these lines:

include($smf_root_path . 'Settings.php');
include($smf_root_path . 'Sources/Load.php');
include($smf_root_path . 'Sources/Subs-Auth.php');
include($smf_root_path . 'Sources/LogInOut.php');


If they exist (somewhere at the top of the file), change them to:

require_once($smf_root_path . 'Settings.php');
require_once($smf_root_path . 'Sources/Load.php');
require_once($smf_root_path . 'Sources/Subs-Auth.php');
require_once($smf_root_path . 'Sources/LogInOut.php');
Title: Re: FlashChat Integration
Post by: k.trout on April 05, 2007, 08:56:59 AM
Daniel!  It works!  Many thanks.  The chat program now opens in what seems to be the forum and it is considerably smaller than the other theme where the chat program opens in it's own window and is full sized. This is on Firefox on a linux box.   Frankly, I am not sure which one I like more and am very appreciative for all of your efforts to help me get this running.   I think I remember some other posts on this thread or another thread that might help me in figuring a way to open it in its own window.  Many thanks for all of your persistence and help with this! 

K  
Title: Re: FlashChat Integration
Post by: Col on April 05, 2007, 09:19:04 AM
K.Trout,

I posted how to this a page back: http://www.simplemachines.org/community/index.php?topic=139769.msg1032636#msg1032636

New window, and without chat being embedded within the forum template. If you want it embedded, replace with this code instead:

<a href="', $scripturl, '?action=chat" target="_blank">' , $txt['fc_chat'] , '</a>


This will still open in a new window, but will have the chat room within your forum template.
Title: Re: FlashChat Integration
Post by: Col on April 05, 2007, 09:20:55 AM
Hi Daniel,

Any chance of a bit of help with this: http://www.simplemachines.org/community/index.php?topic=139769.msg1024220#msg1024220

I appreciate that you may too busy, but a few pointers might be enough.

Thanks.
Title: Re: FlashChat Integration
Post by: SteveK on April 05, 2007, 04:01:06 PM
Quote from: SteveK on April 05, 2007, 01:54:15 AM
SMF 1.1.2
Babylon

I'm having problems with the auto login.  When you click on the chat button FlashChat opens but pops up a login box.  Is there something I did wrong?  I clicked the checkbox to use a forum integration and checked SMF 1.1 in the FlashChat install.

I set this up in my test forum and the auto login worked great but it won't work with the main forum, go figure??

Steve


Well I fixed this problem.  Just changed some code, Index.template.php in the Babylon theme.

Was this:
// Otherwise, they might want to [logout]...
else
echo '
<a href="http://larriveeforum.com/smf/chat/flashchat.php">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="Chat" style="margin: 2px 0;" border="0" />' : 'Chat'), '</a>
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" style="margin: 2px 0;" border="0" />' : $txt[108]), '</a>';


Changed to this:
// Otherwise, they might want to [logout]...
else {
     echo '<a href="', $GLOBALS['boardurl'], '/chat/flashchat.php" target="_blank">',
     ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url']
     . '/' . $context['user']['language'] . '/chat.gif" alt="FlashChat" style="margin: 2px 0;"
     border="0" />' : "FlashChat"),'</a>', $context['menu_separator'];

    echo '<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'],
    '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url']
    . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108]
    . '" style="margin: 2px 0;" border="0" />' : $txt[108]),'</a>';
}
}


This makes chat open in a new window and you can still keep browsing the forum.

:D

Title: Re: FlashChat Integration
Post by: SteveK on April 06, 2007, 05:09:04 AM
Hmmm it all works good except..

When I logout of the forum the logout button doesn't go away like it used to and it moves over up against register button.  When I'm logged in everything looks good with the buttons.

This is the Babylon theme we are talking about not the default.  Anyone see what I did wrong in the code on my previous post?

Thanks :)
Title: Re: FlashChat Integration
Post by: Daniel15 on April 06, 2007, 11:34:31 PM
Quote from: Col on April 05, 2007, 09:20:55 AM
Hi Daniel,

Any chance of a bit of help with this: http://www.simplemachines.org/community/index.php?topic=139769.msg1024220#msg1024220

I appreciate that you may too busy, but a few pointers might be enough.

Thanks.
To rearrange the code in the "Users Online" section, you'd need to edit BoardIndex.template.php. The code in question is this:

echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];

// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];

echo ')';
}

echo $context['show_who'] ? '</a>' : '', '
<div class="smalltext">';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

// --- Begin FlashChat integration ---
// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<br />
', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---


Changing that to:

echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];

echo ')';
}

echo $context['show_who'] ? '</a>' : '', '
<div class="smalltext">';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

// --- Begin FlashChat integration ---
// The number of users online
echo '
', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];

// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<br />
', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---

Should do what you want (note: not tested by me!)

For the PHP include, you can use SMF's SSI functions to achieve this. Create a new PHP file with this in it:

<?php
require('SSI.php');
$online ssi_whosOnline('array');

// Number of users
echo $online['num_chat'] == $txt['user'] : $txt['users'], ' '$txt['fc_in_chat'];

// The actual users themselves
foreach ($online['users_chat'] as $user)
{
echo $user['link'], ', ';
}
?>


This should work, but again, it's not tested (I don't have FlashChat installed on the computer I'm using at the moment).
Title: Re: FlashChat Integration
Post by: Col on April 07, 2007, 11:03:27 AM
Quote from: Daniel15 on April 06, 2007, 11:34:31 PM
For the PHP include, you can use SMF's SSI functions to achieve this. Create a new PHP file with this in it:

<?php
require('SSI.php');
$online ssi_whosOnline('array');

// Number of users
echo $online['num_chat'] == $txt['user'] : $txt['users'], ' '$txt['fc_in_chat'];

// The actual users themselves
foreach ($online['users_chat'] as $user)
{
echo $user['link'], ', ';
}
?>


This should work, but again, it's not tested (I don't have FlashChat installed on the computer I'm using at the moment).

That's great, Daniel,

I'll give this a go, but what should I call the above php file, and where should I put it?

Thanks.
Title: Re: FlashChat Integration
Post by: Daniel15 on April 07, 2007, 11:30:14 AM
QuoteThat's great, Daniel,

I'll give this a go, but what should I call the above php file, and where should I put it?

Thanks.
Call it whatever you want (maybe something like "chat_stats.php"?). Once you save it, access it and see if it works.


And, for everyone replying to this topic, I'd prefer if you made any posts relating to this mod at www.daniel15.com instead of here - It's a lot easier to manage it then :)
Title: Re: FlashChat Integration
Post by: wilsy on April 09, 2007, 04:16:30 AM
Hi all,

I have Flashchat installed using this mod and it works like a charm.

To help promote the chatroom I think (for my theme anyway!) I have found the best way to do it (see attached screenshot).

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=139769.0;attach=30980;image)

However, I have absolutely no coding experience at all and was wondering if somebody could be so kind as to provide the code required to achieve this?  ;)

Regards and best wishes,

Wilsy.
Title: Re: FlashChat Integration
Post by: Col on April 09, 2007, 08:13:51 PM
Wilsy,

I'm working on something similar - I want the number of those in chat to be displayed next to 'chat' in the menubar, much in the same way as the number of unread messages is presently displayed in the menubar. I added what I thought would be the correct code in index.template.php in my default theme, and it worked, but only on the index page. Here's the code that I'd expect to work for you, but it fails too - I expect for the same reasons.

echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];


I added the following to try to display the number in chat on the menubar:

', $context['num_chat'], '

I'm just botcher; not a coder. If someone can tell me what else needs to be done so that this data can be displayed across the forum, I'd appreciate it.
Title: Re: FlashChat Integration
Post by: Col on April 09, 2007, 09:00:48 PM
Hi Daniel,

I've just tried rejigging the display of who's in chat, using the code you suggested, but it's not quite right. It just doesn't make a lot of sense.

Quote1 Guest, 1 User
Users active in past 15 minutes:
Colin 1 User in Chat
Users currently in chat:
Colin (The Lounge)

It would make a lot more sense if the output was something like this:

1 Guest, 1 User
Users active in past 15 minutes:
Colin
1 User in Chat
Colin (The Lounge)

What would be really cool is if instead of the room being noted after each member, they were blocked something like this.

-----------------------------------------
1 Guest, 1 User
Users active in past 15 minutes:
Colin, Jana, Patrick, Jane, Pete
-----------------------------------------
5 Users in Chat
The Lounge - Colin, Jana, Patrick
Technical Support - Jane, Pete
-----------------------------------------

I can sort out the HTML side of things to separate out the chat stats from the forum stats, but the php coding is beyond my abilities.
Title: Re: FlashChat Integration
Post by: vipmoney on April 09, 2007, 09:40:49 PM
Hello Col and Wilsy,

I've done something like that (see image in attach), changing the code in index.template.php:

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=139769.0;attach=31043)

Quote// FlashChat!
   //if ($context['user']['is_logged'])
      echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=chat">' , $txt['fc_chat'] , '';
       if ($context['num_chat']>0) {
       echo '</a> (<b><font color="#ffd801">' , $context['num_chat'] ,'</font></b> online)'; } else
      {echo '';}
      echo '</td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

The only problem is that information just appears on the main page, when i go to message index pages, or message display pages I see no info...

any suggestion ?
Title: Re: FlashChat Integration
Post by: wilsy on April 10, 2007, 07:32:49 AM
Hi Guys,

I also posted on Daniel's forum and he has responded. I won't post here yet as it didn't work for me but if you want to take a look?

http://www.daniel15.com/forum/index.php/topic,761.0.html

Regards,

Wilsy.
Title: Re: FlashChat Integration
Post by: Col on April 10, 2007, 09:34:35 AM
Ah, of course. I did read Daniel's post about posting at his forum - I forgot.

Thanks.
Title: Re: FlashChat Integration
Post by: MSport on April 10, 2007, 09:44:24 AM
Hello,

Have installed FlashChat v4.7.1.11 with SMF 1.1.2 integration. The Chat works perfectly and integrated seemlessly.

One huge problem, though: The scroll bar inside the Chat window does not work. The chat window will show the last 10-15 lines of text, but you can not scroll up to see anything previous to those lines.

Here's what I've done/tested thus far:

1) Posted this question on the tufat.com Forum (http://forum.tufat.com/showthread.php?t=33721) . . .&nbsp; after two pages of conversation with people really trying to help, the issue was unresolved.

2) In config.php, I've set all "backTime" values to zero (0).

3) Installed a second instance of FlashChat on the server as stand-alone without integration and a 2nd db -- works great and has the scrollbar!

So, it appears that something is changing to FlashChat's scrollbar when integrated.&nbsp;

What am I missing here? Ideas? Fixes? Please help! Thanks in advance!
Title: Re: FlashChat Integration
Post by: Col on April 10, 2007, 11:15:07 AM
This is the link MSport meant to post: http://forum.tufat.com/showthread.php?t=33721
Title: Permissions & FlashChat?
Post by: MSport on April 10, 2007, 11:56:46 AM
How do you control permissions to FlashChat once it is integrated in to SMF? I need to control access to chat via membergroups -- the same way that I'm able to control access to SMF Gallery (http://custom.simplemachines.org/mods/index.php?mod=473).

Thank you!




(Col -- thanks for correcting the link my last post!)
Title: Re: FlashChat Integration
Post by: Tick on April 14, 2007, 04:52:49 PM
Quote from: Simplemachines Cowboy on February 03, 2007, 11:41:32 PM
To solve the log out pop-up problem:

Find the dologout.php file in your chat folder.
Make a copy, and place the copy in your main SMF root folder.
Edit the 2nd line of the file to reflect the proper path.
This is mine; FlashChat is in the /chat folder.
require_once('chat/inc/common.php');

I tried this fix to fix when a user leaves the chat room they won't stay logged in.  How ever I did not work for me.  I sure it is something that i did wrong but anyone have any insight to what I could do different.   I made a copy of the file dologout.php and edited the second line as directed.  loaded it to my forum root and still no change.
Title: Re: FlashChat Integration
Post by: nitsua on April 14, 2007, 06:30:15 PM
trying to use this mod but when i go to install it, it says:
9.     Execute Modification     ./chat/inc/flashChatTag.php     File not found
10.    Execute Modification    ./chat/inc/cmses/smfCMS2.php    File not found
any help?
Title: Re: FlashChat Integration
Post by: Tick on April 14, 2007, 06:47:41 PM
sorry for the double post.  It would not let me edit my post above this one.  What I meant to say was they stay logged in even after they leave the chat.
Title: Re: FlashChat Integration
Post by: MegaTinkerCoder on April 14, 2007, 09:38:24 PM
Did you buy and install flashchat?

You have to buy Flashchat from Darren's 5$ Archive, before you can use this mod.

Edit:
Those above trying to get online: chat people to show use the following code in index.template.php in your default theme directory.


//Who's online in chat notice at top
if (!empty($context['users_chat'])){
echo '<div>Online: ', implode(', ', $context['list_users_chat']),' - <A href="http://www.christiansaflame.com/forum/index.php?action=chat">Click Here to Enter</a></div>';
// optional alert message - this message is a big hack, and cause I am just putting it together fast its optional...
if(stripos(implode(', ', $context['list_users_chat']),$context['user']['name']) > 0)
{
echo '<script>alert("Are you in the chat room? If so please logout by going into it and clicking the red circle in the top right corner. you can also type /logout in chat to boot you out. If you are not in chat someone with the same name as you or another member with the same name is, please ignore this message then.");</script>';
}
// end alert message
}
//Who's online in chat notice at top


Note if you want to count the array instead of list the names change the action above... i.e. you want a # instead of a list of names... If you want to separate them by groups, then you would also have to check each id after you get the names...

You can put this under:
// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
', $txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
//
Title: Re: FlashChat Integration
Post by: Tick on April 14, 2007, 10:46:46 PM
ya but the problem I am having is the users staying logged in after they leave the forum.  I tried the fix but i must have not done it right . It didnt work for me
Title: Re: FlashChat Integration
Post by: crash56 on April 15, 2007, 09:19:28 AM
I'm still trying to fix the "logged-on forever" problem as well. 

I *think* I did this suggested fix correctly, but it doesn't seem to be resolving the problem.

Quote from: Simplemachines Cowboy on February 03, 2007, 11:41:32 PMTo solve the log out pop-up problem:

Find the dologout.php file in your chat folder.
Make a copy, and place the copy in your main SMF root folder.
Edit the 2nd line of the file to reflect the proper path.
This is mine; FlashChat is in the /chat folder.
require_once('chat/inc/common.php');

<scratches head in mild confusion>

To be sure ... do I edit the 2nd line of the file in the SMF root folder?  Or the one in chat folder?  Or both? 


Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on April 15, 2007, 02:16:25 PM
Crash,
The copy of dologout.php that you made and placed in the SMF root is the one you need to change.
the 2nd line of that file will show a path that is now not correct.
Do not change it to what the example is; that is what MY path is. Yours may be different.

This will solve SOME of the log out problems.
It will not stop all of them.
Some folks who use the back button on their browser or don't log out of chat correctly will have their name stick on the users in chat.
It is a flashchat problem that they are not inclined to fix until version 5 comes out.
Title: Re: FlashChat Integration
Post by: crash56 on April 15, 2007, 02:53:49 PM
Thank you!  I *did* do it correctly after all.  (I'm something of a noob when it comes to this stuff, so I'm never 100% sure.) 

I suspect that our members getting 'stuck' in chat has to do with them not exiting correctly.  I'll be patient and wait for the fix in version 5. 
Title: Re: FlashChat Integration
Post by: Tan on April 15, 2007, 03:11:06 PM
Have your memebrs got pop ups allowed on your forum site? If not, the log out popup can't open so it wont log them out of chat.

Title: Re: FlashChat Integration
Post by: Tick on April 15, 2007, 03:30:40 PM
Quote from: Tan on April 15, 2007, 03:11:06 PM
Have your memebrs got pop ups allowed on your forum site? If not, the log out popup can't open so it wont log them out of chat.


I had wondered about that.  Let me see if that corrects the proble,
Title: Re: FlashChat Integration
Post by: MegaTinkerCoder on April 15, 2007, 03:36:35 PM
Yeah if they forget to logout they stay in the chat even though they aren't in there... so now I made it detect if they are in the chat room if they go to another page, if they do without logging out they get an alert message saying they are in chat. This will work until the next version of Flashchat comes out for me.

Instead of the alert you could change it call the logout function, this would make the logout function only get called for someone that is actually logged into the room.

I suspect the next version will work like the Desktop Skin of flashchat and focus on sockets... we shall see...
Title: Re: FlashChat Integration
Post by: crash56 on April 15, 2007, 03:38:55 PM
Quote from: Tan on April 15, 2007, 03:11:06 PM
Have your memebrs got pop ups allowed on your forum site? If not, the log out popup can't open so it wont log them out of chat.

It's more a nuisance than a problem for us. We don't have so many members that it's a real issue. I put up a notice/reminder to exit by logging out, and that should take care of most of it.
Title: Re: FlashChat Integration
Post by: Tick on April 15, 2007, 03:52:10 PM
Quote from: MegaTinkerCoder on April 15, 2007, 03:36:35 PM
Yeah if they forget to logout they stay in the chat even though they aren't in there... so now I made it detect if they are in the chat room if they go to another page, if they do without logging out they get an alert message saying they are in chat. This will work until the next version of Flashchat comes out for me.

Instead of the alert you could change it call the logout function, this would make the logout function only get called for someone that is actually logged into the room.

I suspect the next version will work like the Desktop Skin of flashchat and focus on sockets... we shall see...

I think this would help me.  Could you explain how you did this.
Title: Re: FlashChat Integration
Post by: Col on April 15, 2007, 08:20:48 PM
I'll try to find the thread again, but there is a problem with the Bots that results in logout problems. I disabled the Bot (useless anyway), but I also had to disable it in the config file. I've not noticed the problem since!
Title: Re: FlashChat Integration
Post by: MegaTinkerCoder on April 16, 2007, 09:20:57 PM
Buddah

To add the alert feature to your forum I added the following code to the following files. Note I only want the alert to appear on the main forum page so this is what I did...

File:{default theme's} index.template.php

add

//online in chat
if (!empty($context['users_chat'])){ //There are users in chat
if(stripos(implode(', ', $context['list_users_chat']),$context['user']['name']) > 0)//If the user name matched current user..
{
//send an alert reminding them that they are already in chat...
echo '<script>alert("Are you in the chat room? If so please logout by going into it and clicking the red circle in the top right corner. you can also type /logout in chat to boot you out. If you are not in chat someone with the same name as you or another member with the same name is, please ignore this message then.");</script>';
}else //if the name doesn't match the current user...
{
//tell others that there are others waiting in chat...
echo '<script>alert("Hey someone may be in the chat room if you are looking for someone to talk to..."); </script>';
}
//List those in chat at the top of your board under your time...
echo '<hr /><div>People in chat: ', implode(', ', $context['list_users_chat']),' - <A href="http://www.christiansaflame.com/forum/index.php?action=chat">Click to Enter</a></div>';

}
//

After:
(if you have a shout box)

// YSHOUT END


Other wise after:

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
//


Enjoy... once again its not a mod its a hack...

Ways this will fail...
1. someone in chat ignores the alert, or doesn't visit the main page.
2. different people have the same name and one is in chat and the other is not...


Feel free to improve and make this not a hack... otherwise wait till the the next flashchat comes out, though this should still work even after it comes out in theory...
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on April 16, 2007, 11:04:06 PM
Niiiice.

I like it, MegaTinkerCoder. Good work.
Title: Re: FlashChat Integration
Post by: ametzler on April 18, 2007, 01:37:24 PM
I love this mod and I have got it to work on a number of sites with no problems.  I have a friend that was having some trouble installing it so I am doing it for him.  However, I am just having one issue.  He is using a modified classic theme.

It is showing this:
0 Guests, 1 User, 1 User

Instead of:
0 Guests, 1 User, 1 User in Chat

I have been doing everything I can to figure it out, and I am stumped.  Any help would be greatly appreciated.  As usual, I am sure it is just one itty bitty tiny thing..lol.  Thanks again!!
Title: Re: FlashChat Integration
Post by: Col on April 18, 2007, 03:43:31 PM
It seems to me that the entry in the language file is missing. Be sure that it exists in the file that your forum template uses.
Title: Re: FlashChat Integration
Post by: wk38 on April 19, 2007, 02:51:38 PM
I installed the code into my board template so the users in chat show up but they don't seem to show up?
Title: Re: FlashChat Integration
Post by: MegaTinkerCoder on April 19, 2007, 08:53:38 PM
I only tested this on the Board Index of the default SMF template. Try that one, if you need it on other templates that would be another experiment...

A way to test it is to go into a Flashchat room after installing this code, and then without loging out of chat click the home button. You should get one of the error messages.
Title: Re: FlashChat Integration
Post by: FFH on April 19, 2007, 09:15:55 PM
Hi all,

Nice Mod Daniel, I have it working beautifully.  I see there are some further "hacks" to put the chat window in a floating window of it's own rather then having it embedded. Whilst this is a nice idea and works really well, for me I don't want to be taking my users away from the site. However I do want them to be able to browse the rest of the forum and maintain a chat window.

I am not real good with this coding thing, and stick to mainly copy and paste, but I have had an epiphany which I would like to share with you all and see if it can be accomplished.

I would like to keep the chat window embedded into the "chat" page, however I would like it to maintain the conversation that is going on in the chat window whilst the user browses the rest of the forum. This will mean the chat window won't kick you out when you go to another page but perhaps simply automatically change your status to away or something similar.

Is this possible? I think it would be a good compromise to having the chat window still embedded yet allow the users to browse the forum.

Thanks.
Title: Re: FlashChat Integration
Post by: wk38 on April 19, 2007, 10:30:16 PM
No errors when I move from chat to home with the code installed.
Title: Re: FlashChat Integration
Post by: Daniel15 on April 20, 2007, 12:28:56 AM
Everyone,
If you have any problems with this mod, please post them to my forum (at www.daniel15.com). It helps me keep things nice and organised, and allows me to make sure I don't miss any questions.

Once I get time to work on this mod, I'll see if I can improve it. Some things I'd like to do include adding options to:
These would all be features enableable or disableable via the admin panel. I'll try to work on it soon (I'll need to download FlashChat again, and install the Flash Player plugin, as I currently don't have the Flash player installed).

As for MegaTinkerCoder's code (at least, I think it was his code) to display the users in the chat at the top of the forum, it would probably only work on the board index. The board index is the only page that loads the names of the users in the chat from the database.

QuoteI would like to keep the chat window embedded into the "chat" page, however I would like it to maintain the conversation that is going on in the chat window whilst the user browses the rest of the forum. This will mean the chat window won't kick you out when you go to another page but perhaps simply automatically change your status to away or something similar.

Is this possible? I think it would be a good compromise to having the chat window still embedded yet allow the users to browse the forum.
I'm not sure if this would be possible... However, you could make it so that the chat starts in a new window. That way, the forum is still open in the original window, and they can go back to it. Would you like this?
Title: Re: FlashChat Integration
Post by: MegaTinkerCoder on April 21, 2007, 07:31:06 PM
Yes that very little snippet of code I did write entirely...
Like I said though its a hack, i.e. I use string position to find out if the user is in the array, what this does is return a value for the position if finds the user in the array, if it finds the name of the user at a position it returns some numeric value for the position which is evaluated to be anything but not 0.  I could forsee name's being sub names and returning the wrong value... For example say I have a user named Jonathan and a user named Jon.  If Jonathan was in the chat room, Jon would get an alert message telling him that he was in the chat room as soon as he logged in, when in fact it is Jonathan in the room. There are other small issues like that, but for the most part the alerts do work for most boards if you can tolerate some false positives... As far as the notice at the top of the board, I used it on board index so I didn't have to re-enumerate values from the database and add overhead to other pages.  You should work with Daniel on anything to do with this mod, as this is his baby, I just shared something that worked for me.   :) Time for me to get back to the barbecue.
Title: Re: FlashChat Integration
Post by: wk38 on April 23, 2007, 10:52:03 PM
Anyone know where I need to put the code so the user in chat will show up in the tiny portal stats box under users on-line?

Thanks!
Title: Re: FlashChat Integration
Post by: Daniel15 on May 05, 2007, 09:59:54 AM
Version 1.0 of this mod has been released!
Changes:

If you're using version 0.1 (as I guess all of you are :P), you'll need to uninstall it before installing this version!
Note: If you're using a custom theme, please see http://www.daniel15.com/forum/index.php/topic,854.html for information on upgrading your theme to support this new version :).

Quote from: dklassen on April 23, 2007, 10:52:03 PM
Anyone know where I need to put the code so the user in chat will show up in the tiny portal stats box under users on-line?

Thanks!
I'm not sure; I've never used TinyPortal. I'll try to have a look at it, and see how to do this.
Title: Re: FlashChat Integration
Post by: Smith Online on May 05, 2007, 12:38:35 PM
QuoteAnyone know where I need to put the code so the user in chat will show up in the tiny portal stats box under users on-line?

Thanks!

Below is how to do it daniel has done the code for this  :D
http://www.tinyportal.net/index.php?topic=15662.msg129918#msg129918 (http://www.tinyportal.net/index.php?topic=15662.msg129918#msg129918)
Title: Re: FlashChat Integration
Post by: Tick on May 05, 2007, 01:44:07 PM
 I also installed this on a forum that I had the last version of this on.  I uninstalled the old version and installed the new one.  Now I am getting tons of these errors in the error log. 

                        http://mysite.com/index.php?action=forum

8: Undefined index:  num_chat
File: /xxxxx/xxxxx/public_html/Themes/dilbermc/BoardIndex.template.php (eval?)
Line: 1642                                                                                                                                   Check all



Edit  this only happens when you have the show users in chat unchecked in the admin panel.  For both on the top and by the chat button.   Also the users in chat does not show up beside my chat button .  I am using a custom theme but think I have made all the nesicerey edits
Title: Re: FlashChat Integration
Post by: Daniel15 on May 05, 2007, 10:17:42 PM
QuoteI also installed this on a forum that I had the last version of this on.  I uninstalled the old version and installed the new one.  Now I am getting tons of these errors in the error log.
Just noticed that this problem arises if you're using TinyPortal, and both "Show Users" options are unticked. To fix this, open Sources/Subs.php, and find:

if (!empty($modSettings['fc_showUsers']) || !empty($modSettings['fc_showUserCount']) || (empty($context['current_action']) || $context['current_action'] == 'boardindex'))

Replace with:

if (!empty($modSettings['fc_showUsers']) || !empty($modSettings['fc_showUserCount']) || (empty($context['current_action']) || $context['current_action'] == 'boardindex' || $context['current_action'] == 'forum'))

This should fix the errors.

QuoteAlso the users in chat does not show up beside my chat button .  I am using a custom theme but think I have made all the nesicerey edits
Does it work on your default theme?
Could you please post the code for your Chat button here?
Title: Re: FlashChat Integration
Post by: Tick on May 05, 2007, 10:21:26 PM
// Show the [chat] button.

    echo'

                <td align="center" class="menubg' , $current_action == 'chat' ? '2' : '' , '">

                     <a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
                </td>';


also the open in a new window does not work.   I am using dilber mc tp theme
Title: Re: FlashChat Integration
Post by: Tick on May 05, 2007, 10:25:27 PM
yep that fixed the error.  NOw if I can get all the functions to work

the ones not working are the open in a new window and chat button showing number in chat.  Thanks for the fix on the error you rock.
Title: Re: FlashChat Integration
Post by: Daniel15 on May 06, 2007, 01:23:02 AM
Please try this:
Directly below

// Show the [chat] button.

(but above the echo)
Add:

global $modSettings;
Title: Re: FlashChat Integration
Post by: teamyakuza on May 06, 2007, 02:54:11 AM

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/index.template.php on line 708

699:
700:    // Show the [chat] button.
701:     global $modSettings;
702: echo '
703: <td align="center" valign="top"><img src="' . $settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
704: <td class="mainNav"><a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
705:
706:
707: // Is the user allowed to administrate at all? ([admin])

708: if ($context['allow_admin'])

709: echo '
710: <td align="center" valign="top"><img src="' . $settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
711: <td class="mainNav"><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></td>';
712:
Title: Re: FlashChat Integration
Post by: Daniel15 on May 06, 2007, 05:10:54 AM
Find:

'</strong>]' : ''), '</a>

Replace with:

'</strong>]' : ''), '</a>';

:)
Title: Re: FlashChat Integration
Post by: Tick on May 06, 2007, 07:50:11 AM
Quote from: Daniel15 on May 06, 2007, 01:23:02 AM
Please try this:
Directly below

// Show the [chat] button.

(but above the echo)
Add:

global $modSettings;


You are the man.  thanks so much for the help.  I am 100% satisfied with your mod.   great job.
Title: Re: FlashChat Integration
Post by: Tick on May 06, 2007, 02:19:16 PM
I also installed this on a friends forum.  I could not use this mod on his forum because there was a problem between it and nneannos shoutbox mod.  I seems they both use the action chat for there defined action.  Is there a way to work around it.  The way i figured this out is I was using the custom action mod with the flash chat to intergrate it with the forum.  On the custom action when I called the action "chat "  it created the problem.  Danial do you know of a way to work around this. This mod is awesome and I know my friend would love to have it.

Title: Re: FlashChat Integration
Post by: Daniel15 on May 07, 2007, 03:50:17 AM
QuoteI could not use this mod on his forum because there was a problem between it and nneannos shoutbox mod.  I seems they both use the action chat for there defined action.
Easy fix :).
In Index.php, for the FlashChat mod, there's something like this:

// FlashChat integration
'chat' => array('Chat.php', 'Chat'),

Simply change it to something like:

// FlashChat integration
'flashchat' => array('Chat.php', 'Chat'),


Then, in Display.template.php, find:

<a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>


Replace with:

<a href="', $scripturl, '?action=flashchat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>


This is assuming that the shoutbox mod doesn't use a file called "Chat.php".
Title: Re: FlashChat Integration
Post by: Tick on May 07, 2007, 08:18:10 AM
I will look into it more today and see what I can do with it.  Also let me say you do a great job supporting you mods.  Thanks.  Tick
Title: Re: FlashChat Integration
Post by: MegaTinkerCoder on May 09, 2007, 01:45:09 PM
I simply use the AJAX shout box, I prefer it anyway... :)
Title: Re: FlashChat Integration
Post by: Tick on May 09, 2007, 05:42:54 PM

Ok another problem here.  It seem this mod conflicts with my copperming bridge that I have with my  forum.   When I have the mod installed I cannot connect with the database is the error I get in my error log.  I uninstall the mod and it connects fine with the database.  Any answers.  Still a great mod.  I want to use it but I need to get the kinks worked out of it.



Title: Re: FlashChat Integration
Post by: Daniel15 on May 10, 2007, 07:34:59 AM
Quote from: tick on May 09, 2007, 05:42:54 PM

Ok another problem here.  It seem this mod conflicts with my copperming bridge that I have with my  forum.   When I have the mod installed I cannot connect with the database is the error I get in my error log.  I uninstall the mod and it connects fine with the database.  Any answers.  Still a great mod.  I want to use it but I need to get the kinks worked out of it.




That's very strange, I have no idea what would cause this...
Where did you download the bridge from? And what is the exact error message?
Title: Re: FlashChat Integration
Post by: Tick on May 10, 2007, 07:55:13 AM
I have it uninstalled so it not happening know.  I error to the best I can remmember said


Unable to connect to database.   
xxxx/xxxxxx/xxxxxxx/sources/subs.php        and the line number was the same line all of the flashchat info was on.
Title: Re: FlashChat Integration
Post by: CHwebby on May 10, 2007, 02:45:57 PM
tick... I have the same exact problem! Conflict with Coppermine. The Coppermine bridge to SMF comes with Coppermine.

I get this error.....

Database Error: No Database Selected
Sources/Subs.php
Line: 3189
Title: Re: FlashChat Integration
Post by: Tick on May 10, 2007, 03:37:36 PM
yes that the one I get.  And if you go to that line in the subs.php it is the code for the flashchat.  Once I uninstalled this the coppermine worked fine.
Title: Re: FlashChat Integration
Post by: CHwebby on May 10, 2007, 06:02:21 PM
same here
Title: Re: FlashChat Integration
Post by: CHwebby on May 11, 2007, 07:44:55 AM
Forgot to add then when I uninstalled this mod to get my gallery working again, the flashchat code in my sources/subs.php  didn't uninstall. I had to manually remove it.
Title: Re: FlashChat Integration
Post by: 5cakids on May 14, 2007, 11:27:43 AM
Can I change the title to say my board name chat?
Title: Re: FlashChat Integration
Post by: MegaTinkerCoder on May 15, 2007, 12:32:48 PM
Could you install coppermine and then install flashchat? Is their a bridge for Coppermine and flashchat that is conflicting?
Title: Re: FlashChat Integration
Post by: Tick on May 15, 2007, 04:02:06 PM
That is the setup I had.  I had the coppermine before the flashchat mod.  Now the flash chat works fine intergrated with the forum but when the flash chat mod is installed it conflicts.  The way I set it up was following flashchats instruction.  The way I put it in my fourm is I use the custom actions mod and create a action for the flash chat and put it in a iframe.  Works the same way it just doesn't add the stats to the bottom of the forum.  I solved that by putting the stats in a tp block.
Title: Re: FlashChat Integration
Post by: CHwebby on May 15, 2007, 05:16:18 PM
ditto with what tick said. I'm not using tiny portal though.
Title: Re: FlashChat Integration
Post by: cfd107 on May 16, 2007, 10:24:29 PM
I am getting an error when trying to uninstall the 0.1 mod.

"3.     Execute Modification     ./index.php     Test failed"

Anyone have a suggestion?

Title: Re: FlashChat Integration
Post by: Goad on May 17, 2007, 12:59:16 AM
I hate my host....(1and1)

after install, i got this on any page i try....even the index.php.

Error 500 - Internal server error
An internal server error has occured!
Please try again later.
Title: Re: FlashChat Integration
Post by: Goad on May 17, 2007, 01:26:48 AM
Quote from: Goad on May 17, 2007, 12:59:16 AM
I hate my host....(1and1)

after install, i got this on any page i try....even the index.php.

Error 500 - Internal server error
An internal server error has occured!
Please try again later.


nevermind, im a retard.

if anyone just happens to have this same issue and searches and finds this post....

just go to domain.com/[chatdir]/ and finish the install  ;D
Title: Re: FlashChat Integration
Post by: Anhinga on May 17, 2007, 06:19:43 PM
My apologies if someone has already answered this question, but I looked around a little and I couldn't find anything about it.

The mod is working fine for the most part, with the options for it appearing in the admin panel, and the users in the chatroom listed in the "who's online" section.  However, even if I check the box in the admin panel to make the chatroom appear "inside" the forum or open in a new window, it still opens on its own separate page as though I'd installed it normally.  I'm using a custom theme, but I've already made the changes to it suggested at http://www.daniel15.com/forum/index.php/topic,856.html .  Is there something else I need to edit about the theme to make these options possible?

I'm not using any other mods, so I know that isn't the reason for this problem, and my theme is a customized Babylon theme.  My forum is http://www.captainoccam.com/forum/ , in case you want to examine it for yourself.
Title: Re: FlashChat Integration
Post by: Solin on May 19, 2007, 10:02:27 AM
Hello excuse my english, Ill try explain as best I can.

I have installed Flash chat and the mod, and everything seems to work fine except for a few things.

I have been looking around in this forum to see if I could find any answer for my problem. So I ending up to ask for help.

After I installed the mod. It dont show any chat button on the meny. So I went into the configuration in admin.
It looked like this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fanarchoticwarlords.freehostia.com%2Fwarlordsite%2Fimages%2Fcomprofiler%2Fplug_profilegallery%2F65%2Fpg_410689275.jpg&hash=6b1977e95c8e6cf4726dc6d973a39a8a544d463d)

As you see there is not text in the field, just the place to hook. When I turned them on. It appeard a 1user button on the menu.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fanarchoticwarlords.freehostia.com%2Fwarlordsite%2Fimages%2Fcomprofiler%2Fplug_profilegallery%2F65%2Fpg_1062509749.jpg&hash=4eb51382ae44c7de7569c2e1ea1c6a53b258e472)

When I pushed the button it lead me to the chat, and so far that worked fine. But when I navigate around the forum I got a popup with logout and the 1user button disappear. No I have no opertunity to get back to the chat.

So what is it I do wrong.

Thanks
Solin
Title: Re: FlashChat Integration
Post by: Anhinga on May 19, 2007, 08:42:07 PM
Has support for this mod been abandoned, or what?

I'm still having the logout bug, even though I'm using the newest version of the mod.  I tried taking Simplemachines Cowboy's suggestion on page 7, but it didn't change anything.  The popup window that's supposed to log me out still gives me a 404 error.
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on May 19, 2007, 10:54:22 PM
Anhinga,
You will get much faster support on this mod if you post in Daniel's personal support forum for this flashchat mod:
http://www.daniel15.com/forum/index.php?board=22.0
Title: Re: FlashChat Integration
Post by: Anhinga on May 19, 2007, 11:00:12 PM
I already have; I'm "Agahnim" there.  My posts there have been ignored for two days, just like here.
Title: Re: FlashChat Integration
Post by: Col on May 20, 2007, 11:45:58 AM
Hi Anhinga,

You should be more patient. Daniel is doing this in his spare time; is still at school studying for exams (increadibly, he's just 16); and no doubt has better things to do with his time, like having fun! He's keen on this stuff; he has not abandoned it. He just has other proiorities at this time.
Title: Re: FlashChat Integration
Post by: ROGUE-Master on May 22, 2007, 02:32:07 PM
Could someone please make a Helios_Multi (its a popular theme) FlashChat button or link me to one please?  Thanks!
Title: Re: FlashChat Integration
Post by: xjimdim on May 24, 2007, 03:08:45 PM
Quote from: Goad on May 17, 2007, 01:26:48 AM
Quote from: Goad on May 17, 2007, 12:59:16 AM
I hate my host....(1and1)

after install, i got this on any page i try....even the index.php.

Error 500 - Internal server error
An internal server error has occured!
Please try again later.


nevermind, im a retard.

if anyone just happens to have this same issue and searches and finds this post....

just go to domain.com/[chatdir]/ and finish the install  ;D

man what do you mean???? i have the same problem with you but i cant fix it... the chat is installed ok.

what do i have to do????????????
Title: Re: FlashChat Integration
Post by: Daniel15 on May 25, 2007, 08:14:18 AM
I still have no idea about the Coppermine conflict. Can someone please point me to where the Coppermine bridge for SMF is, and how to install it? I'll check it out.

QuoteI am getting an error when trying to uninstall the 0.1 mod.

"3.     Execute Modification     ./index.php     Test failed"

Anyone have a suggestion?
Just continue uninstalling it, it should still be fine.

QuoteI'm not using any other mods, so I know that isn't the reason for this problem, and my theme is a customized Babylon theme.  My forum is http://www.captainoccam.com/forum/ , in case you want to examine it for yourself.
Could you please post the code you used for the button?

QuoteHello excuse my english, Ill try explain as best I can.

I have installed Flash chat and the mod, and everything seems to work fine except for a few things.

I have been looking around in this forum to see if I could find any answer for my problem. So I ending up to ask for help.

After I installed the mod. It dont show any chat button on the meny. So I went into the configuration in admin.
It looked like this
Is your forum using English as the default? If not, what language are you using?
Do you have a file called Themes/default/languages/Modifications.english-utf8.php? If so, copy all the FlashChat stuff from Themes/default/languages/Modifications.english.php into that file.

QuoteHas support for this mod been abandoned, or what?
As Col said, I'm doing all this in my spare time. Unfortunately, I have other priorities at the moment (school being the main one), and so can not check back here every day.

QuoteThe popup window that's supposed to log me out still gives me a 404 error.
What URL is it trying to go to?

QuoteCould someone please make a Helios_Multi (its a popular theme) FlashChat button or link me to one please?  Thanks!
You'll need someone here to make you a button for it using Photoshop or a similar graphics utility (I don't have anything installed at the moment). If you can get a suitable button, I'll give you the code to add to index.template.php.
Title: Re: FlashChat Integration
Post by: Anhinga on May 25, 2007, 01:12:24 PM
QuoteCould you please post the code you used for the button?

I figured out for myself what was the problem in this case.  The button was linking to chat/flashchat.php , which is the URL of the chatroom outside of the forum.  What I needed to do was make it link to the script URL action=chat.

QuoteWhat URL is it trying to go to?

It's trying to go to http://www.captainoccam.com/forum/dologout.php?id=****** , where the stars represent my login session ID (I guess).  The part after the equals sign is different each time.

The odd thing is that if I access the chatroom separately from the forum, at http://www.captainoccam.com/forum/chat/flashchat.php , the logout popup window works the way it's supposed to.  In that case, its URL is http://www.captainoccam.com/forum/chat/dologout.php?id=****** .  But even if I make a copy of dologout.php from the "chat" directory and upload it in the "forum" directory, after changing the path to common.php in the second line, I still get a 404 error when I try to leave the chatroom while it's part of the forum.
Title: Re: FlashChat Integration
Post by: Daniel15 on May 25, 2007, 08:38:33 PM
QuoteIt's trying to go to http://www.captainoccam.com/forum/dologout.php?id=****** , where the stars represent my login session ID (I guess).  The part after the equals sign is different each time.
I think the ID is just a random string, to prevent caching issues (but I could be wrong :P)
Did you make a copy of dologout.php in the forum's directory (this should have been done automatically by the installer)?. If not, create a file called dologout.php in your forum's directory, and place this into it:

<?php
// Let's go to the right place...
require('chat/dologout.php');
?>


Then, going to http://www.captainoccam.com/forum/dologout.php should no longer give a 404 error, and logouts should work :)
Title: Re: FlashChat Integration
Post by: Kirsten07734 on May 25, 2007, 11:12:03 PM
Daniel's mod installed and runs flawlessly on my board.  However, I did find a problem with the FlashChat software itself.  Members have been able to bypass the password I set on my chat rooms.  I have a kids' forum and don't want them chatting without moderator supervision for their safety.  Unfortunately, if there is a flaw in a system, odds are a kid will find it and they did. 

The problem isn't with Daniel's mod, it works perfectly.  The problem is with the FlashChat software itself.  I reported this problem to the FlashChat people but there was no fix available and no time table on when it might be fixed in the software.  If you don't intend to use the password function I highly recommend FlashChat and this mod for integrating it with your SMF forum.
Title: Re: FlashChat Integration
Post by: Anhinga on May 26, 2007, 12:52:08 AM
Quote from: Daniel15 on May 25, 2007, 08:38:33 PM
QuoteIt's trying to go to http://www.captainoccam.com/forum/dologout.php?id=****** , where the stars represent my login session ID (I guess).  The part after the equals sign is different each time.
I think the ID is just a random string, to prevent caching issues (but I could be wrong :P)
Did you make a copy of dologout.php in the forum's directory (this should have been done automatically by the installer)?. If not, create a file called dologout.php in your forum's directory, and place this into it:

<?php
// Let's go to the right place...
require('chat/dologout.php');
?>


Then, going to http://www.captainoccam.com/forum/dologout.php should no longer give a 404 error, and logouts should work :)

That file is already there; I've checked.  It was added by the installer.  However, it still produces a 404 error whenever someone leaves the chatroom.
Title: Re: FlashChat Integration
Post by: CHwebby on May 27, 2007, 01:31:12 PM
Quote from: Daniel15 on May 25, 2007, 08:14:18 AM
I still have no idea about the Coppermine conflict. Can someone please point me to where the Coppermine bridge for SMF is, and how to install it? I'll check it out.

Is this what you are looking for? 
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#integrating
Title: Re: FlashChat Integration
Post by: abda53 on May 28, 2007, 06:46:47 AM
Quote from: CHwebby on May 10, 2007, 02:45:57 PM
I get this error.....

Database Error: No Database Selected
Sources/Subs.php
Line: 3***

im getting this error too, but i dont have coppermine installed. it works fine when i take that part out.. but id like to have it in there.. any ideas?
Title: Re: FlashChat Integration
Post by: mwmconsulting on May 30, 2007, 10:03:47 PM
Thanks for the great mod Daniel.

Have you tested it in conjunction w/ nneonneo's Shout Box mod?

http://custom.simplemachines.org/mods/index.php?mod=585

As soon as I installed your mod, my shoutbox mod broke.  Just sits there saying it's loading.

Any ideas?

Cheers!

- MWM
Title: Re: FlashChat Integration
Post by: brianjw on June 08, 2007, 11:25:11 AM
I need help. I used this chat before and deleted the install.php because it said to. And here I am installing this mod, I get a 500 Internal Server Error. Can someone help me?

Maybe attach install.php or something :)

Brianjw
Title: Re: FlashChat Integration
Post by: 5cakids on June 12, 2007, 12:07:45 PM
here you go
Title: Re: FlashChat Integration
Post by: brianjw on June 12, 2007, 02:32:52 PM
Thanks lol. Thanks soo much :D

Except the install.php is giving me errors like for some missing directory called "install_files" and some file in the chat directory root called "inc" something. I don't know :(
Title: Re: FlashChat Integration
Post by: 4X4UK on June 12, 2007, 04:36:06 PM
Got the same problem integrating flashchat on smf 1.1.2 with coppermine integrated get the error us subs.php at line 3190

it basically appears to disable the coppermine gallery, the errors get reoposted in the forum error log appear to indicate that coppermine cant find the database

maybe its this in the stub.php file not sure but if the coppermine bridge is also using the same global variable $boarddir then that may be the cause

global $boarddir, $db_prefix;
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
[/code
Title: Re: FlashChat Integration
Post by: 5cakids on June 13, 2007, 12:53:01 AM
Can you try installing it again, start from scratch? PM me if you are still having trouble.
Title: Re: FlashChat Integration
Post by: 4X4UK on June 13, 2007, 05:27:08 AM
I will unsinstall and reinstall it and see what happens, may not get it done today, could be the weekend before I get a chance
Title: Re: FlashChat Integration
Post by: 4X4UK on June 14, 2007, 01:03:16 PM
well I un-installed the flashchat mod and the coppermine gallery works again.

re-installed flashchat mod and the gallery stops working as decribed above.  As soon as I manually remove the following code from subs.php the gallery functions normally again and most of the flashchat integration still functions although it doesn't display whos online in chat and produces other errors due to the missing code in subs.php

// --- Begin FlashChat Integration ---
// Only bother grabbing the data if we need it (ie. we're on the board
// index, or the information will be shown at the top of the forum).
// !!! $modSettings['fc_showUserCount'] just needs the count, not the whole query!
if (!empty($modSettings['fc_showUsers']) || !empty($modSettings['fc_showUserCount']) || (empty($context['current_action']) || $context['current_action'] == 'boardindex' || $context['current_action'] == 'forum'))

{
global $boarddir, $db_prefix1;
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
// Load all the users currently in the chat
$result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$GLOBALS['fc_config']['db']['pref']}connections AS fc
LEFT JOIN {$db_prefix1}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix1}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$GLOBALS['fc_config']['db']['pref']}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
AND mem.ID_MEMBER != 0
ORDER BY mem.realName ASC", __FILE__, __LINE__);

$context['users_chat'] = array();
$context['list_users_chat'] = array();
$context['num_chat'] = mysql_num_rows($result);

// Loop through all users in chat
while ($row = mysql_fetch_assoc($result))
{
// Does their membergroup have a colour?
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '">' . $row['realName'] . '</a>';

// Add them to the 'Users Online' list
$context['users_chat'][$row['memberName']] = array(
'id' => $row['userid'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['userid'],
'link' => $link,
'chat' => array(
'color' => $row['color'],
'lang' => $row['lang'],
'room' => array(
'id' => $row['roomid'],
'name' => $row['roomName'],
'public' => ($row['ispublic'] == 'y' ? true : false),
),
),
);

$context['list_users_chat'][$row['memberName']] = $link . ' (' . ($row['ispublic'] != 'y' ? $txt['fc_private_room'] : $row['roomName']) . ')';

// Groups online
if (!isset($context['online_groups'][$row['ID_GROUP']]))
$context['online_groups'][$row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => $row['groupName'],
'color' => $row['onlineColor']
);
}
mysql_free_result($result);
}
// --- End FlashChat Integration ---
Title: Re: FlashChat Integration
Post by: Col on June 14, 2007, 09:49:06 PM
The code that Daniel moved from BoardIndex.php to Subs.php has been changed slightly. It appears that Chat now tries connecting to the wrong BD. This appears to happen if you have anything bridged with SMF, but it might be the case that this happens if the forum is not bridged, but you are running some DB other than the one for SMF. Anyway, I think this is what's happening, but I'm no coder. I hope that is enough for someone to have look at it.
Title: Re: FlashChat Integration
Post by: hvyhitter on June 15, 2007, 11:45:52 AM
This Mod seriously rocks.. I have it installed and my users LOVE it..

Thanks again..

and flashchat..worth every penny!


although.. my SMF version 1.06 shoutbox is getting a PHP has encountered a Stack overflow error..

i am searching for an answer.
Title: Re: FlashChat Integration
Post by: hvyhitter on June 15, 2007, 01:12:59 PM
i have tried the uninstall flashchat (shoutbox worked)
and reinstall (shoutbox stopped working)
Title: Re: FlashChat Integration
Post by: dork313 on June 16, 2007, 08:42:10 PM
I have it set so that you can see what users are in the chat room but my chat room only has one permanent room. So I'm wanting to see if there is a way to remove what room the users are in because it's cluttering things up?
Title: Re: FlashChat Integration
Post by: Col on June 16, 2007, 08:54:16 PM
I too would like that tidying up. It would be better to list all those in each room, rather than appending which room each member is in after each and every membername.
Title: Re: FlashChat Integration
Post by: perplexed on June 17, 2007, 12:32:10 PM
Quote from: Daniel15 on January 06, 2007, 09:37:58 PM
For everyone with the Googlebot and Spiders mod, you can install this mod, but you'll need to edit two files (SSI.php and BoardIndex.template.php) manually, as both the Googlebot and Spiders mod, as well as this mod, edit the file. Here's how to edit the files:
Open SSI.php, and find:

$return['num_users'] = count($return['users']) + $return['hidden'];
$return['total_users'] = $return['num_users'] + $return['guests'] + ($modSettings['ob_googlebot_count_most_online'] ? $return['num_spiders'] : 0);

Add after:

// --- Begin FlashChat integration ---
global $boarddir, $db_name;
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
// Get the proper database prefix (including database name)
$fc_prefix = is_numeric(substr($GLOBALS['fc_config']['db']['pref'], 0, 1)) ? $db_name . '.' . $GLOBALS['fc_config']['db']['pref'] : '`' . $db_name . '`.' . $GLOBALS['fc_config']['db']['pref'];
// Load all the users currently in the chat
$result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$fc_prefix}connections AS fc
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$fc_prefix}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
ORDER BY mem.realName ASC", __FILE__, __LINE__);

$return['users_chat'] = array();
$return['list_users_chat'] = array();
$return['num_chat'] = mysql_num_rows($result);

// Loop through all users in chat
while ($row = mysql_fetch_assoc($result))
{
// Does their membergroup have a colour?
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '">' . $row['realName'] . '</a>';

// Add them to the 'Users Online' list
$return['users_chat'][$row['memberName']] = array(
'id' => $row['userid'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['userid'],
'link' => $link,
'chat' => array(
'color' => $row['color'],
'lang' => $row['lang'],
'room' => array(
'id' => $row['roomid'],
'name' => $row['roomName'],
'public' => ($row['ispublic'] == 'y' ? true : false),
),
),
);
}
mysql_free_result($result);
// --- End FlashChat integration ---

Also, find:

echo '
', (empty($return['spiders']) ? '' : $return['num_spiders'] . ' ' . ($return['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $return['guests'], ' ', $return['guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $return['num_users'], ' ', $return['num_users'] == 1 ? $txt['user'] : $txt['users'];

Replace with:

echo '
', (empty($return['spiders']) ? '' : $return['num_spiders'] . ' ' . ($return['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $return['guests'], ' ', $return['guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $return['num_users'], ' ', $return['num_users'] == 1 ? $txt['user'] : $txt['users'], ', ', $return['num_chat'], ' ', $return['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];


In Themes/default/BoardIndex.template.php, find:

echo (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

Replace with:

echo (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];


Also, find:

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);


Add after:

// --- Begin FlashChat integration ---
// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<br />
', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---


Note that if you're using a custom theme, you'll need to edit that theme's BoardIndex.template.php file (eg. I applied the BoardIndex.template.php changes to my modified 'Apollo' [by Bloc] theme).

Do we still need to do this for 1.0 Daniel?  It said on the mod page :

Quote
NOTE: For anyone with the 'Googlebot and Spiders' mod installed, you may install this mod, but two of the edits (SSI.php and BoardIndex.template.php) will fail (due to both the Googlebot and Spiders mod and this mod editing the same code). You may continue to install this mod (it will install successfully), but please see this post for what to do after installation.
Edit: This is currently NOT up-to-date. Please check back later for updated instructions on installing this mod alongside the Googlebot mod!

I still got the two fails but things seem to be working and there are no errors in the log, so I just wondered what was necessary.  TY
Title: Re: FlashChat Integration
Post by: Col on June 20, 2007, 11:40:41 AM
Hi,

For those who have reported conflicts with other mods, particularly bridged software or SSI problems, Clemennzo has posted a solution: http://www.simplemachines.org/community/index.php?topic=176062.msg1131874#msg1131874

I can report that it resolved the problem I was having (Flashchat integration 1.0 was killing my site).
Title: Re: FlashChat Integration
Post by: 4X4UK on June 21, 2007, 04:57:08 PM
thanks for that I will try it out and let you know, but at first glance it looks like the solution
Title: Re: FlashChat Integration
Post by: Sakae on June 21, 2007, 09:04:15 PM
Is it just with me or this flash chat script is creating core.number files of 29,00 mb in my webserver?

Even if it's not caused by flash chat, does anyone knows a solution for stopping this?
Title: Re: FlashChat Integration
Post by: Col on June 22, 2007, 01:37:58 PM
Quote from: softcore on June 21, 2007, 09:04:15 PM
Is it just with me or this flash chat script is creating core.number files of 29,00 mb in my webserver?

Even if it's not caused by flash chat, does anyone knows a solution for stopping this?

I assume that you've installed the chatbot - a useless piece of bloaty crap! I installed it too (because I had no idea what it was), and keep meaning to remove it. I disabled the bot in the settings file because of possible problems in performance with integration to the forum. I intend to check for a proper procedure for removing the bot feature, just in case it's not as simple as dropping those huge tables.
Title: Re: FlashChat Integration
Post by: deef on June 22, 2007, 09:33:31 PM
I have to do the installation manualy becausse he is giving a bunch of errors.  All solved only this error when I do the modification in the Subs.php

Parse error: parse error, unexpected T_IF, expecting ')' in /var/www/vhosts/animalsex-forum.com/httpdocs/Sources/Subs.php on line 3408

Becausse this is only for reporting I guess I have left this behind and the mod is working verry good for me.  But can someone look to my subs file ? to help me so I have the benefit off all the features.

Here is the code from 3400 till 3478

Thanks in advance and also thanks for this good modification

deef


$context['common_stats'] = array(
'total_posts' => comma_format($modSettings['totalMessages']),
'total_topics' => comma_format($modSettings['totalTopics']),
'total_members' => comma_format($modSettings['totalMembers']),
// --- Begin FlashChat Integration ---
// Only bother grabbing the data if we need it (ie. we're on the board
// index, or the information will be shown at the top of the forum).
// !!! $modSettings['fc_showUserCount'] just needs the count, not the whole query!
if (!empty($modSettings['fc_showUsers']) || !empty($modSettings['fc_showUserCount']) || (empty($context['current_action']) || $context['current_action'] == 'boardindex' || $context['current_action'] == 'forum'))
{
global $boarddir, $db_prefix;
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
// Load all the users currently in the chat
$result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$GLOBALS['fc_config']['db']['pref']}connections AS fc
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$GLOBALS['fc_config']['db']['pref']}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
AND mem.ID_MEMBER != 0
ORDER BY mem.realName ASC", __FILE__, __LINE__);

$context['users_chat'] = array();
$context['list_users_chat'] = array();
$context['num_chat'] = mysql_num_rows($result);

// Loop through all users in chat
while ($row = mysql_fetch_assoc($result))
{
// Does their membergroup have a colour?
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '">' . $row['realName'] . '</a>';

// Add them to the 'Users Online' list
$context['users_chat'][$row['memberName']] = array(
'id' => $row['userid'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['userid'],
'link' => $link,
'chat' => array(
'color' => $row['color'],
'lang' => $row['lang'],
'room' => array(
'id' => $row['roomid'],
'name' => $row['roomName'],
'public' => ($row['ispublic'] == 'y' ? true : false),
),
),
);

$context['list_users_chat'][$row['memberName']] = $link . ' (' . ($row['ispublic'] != 'y' ? $txt['fc_private_room'] : $row['roomName']) . ')';

// Groups online
if (!isset($context['online_groups'][$row['ID_GROUP']]))
$context['online_groups'][$row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => $row['groupName'],
'color' => $row['onlineColor']
);
}
mysql_free_result($result);
}
// --- End FlashChat Integration ---
'latest_member' => $context['common_stats']['latest_member'],
);
Title: Re: FlashChat Integration
Post by: Flying Drupalist on June 23, 2007, 04:27:40 PM
I am experiencing...

12.    Execute Modification    ./chat/inc/flashChatTag.php    File not found
13.    Execute Modification    ./chat/inc/cmses/smfCMS2.php    File not found
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on June 23, 2007, 10:48:21 PM
Make sure you are using the latest version of flashchat.
Older versions will fail because those files do not exist.
Title: Re: FlashChat Integration
Post by: dork313 on June 24, 2007, 04:08:30 AM
Has anyone figured out how to remove what room the users are in so that it takes less space to provide all the names?
Title: Re: FlashChat Integration
Post by: mforum on June 24, 2007, 05:08:54 AM
Quote from: Miraploy on June 23, 2007, 04:27:40 PM
I am experiencing...

12.    Execute Modification    ./chat/inc/flashChatTag.php    File not found
13.    Execute Modification    ./chat/inc/cmses/smfCMS2.php    File not found

I had same problem with the latest stable version of flashchat (4.7.1).
Proceed with installation and do the changes manually in those files.
Keep a copy of files in case something goes wrong.

QuoteHas anyone figured out how to remove what room the users are in so that it takes less space to provide all the names?

I could use that myself ....
Have only one room in chat anyway....  ::)
Title: Re: FlashChat Integration
Post by: Niteblade on June 30, 2007, 11:34:13 PM
Quote from: Col on June 20, 2007, 11:40:41 AM
Hi,

For those who have reported conflicts with other mods, particularly bridged software or SSI problems, Clemennzo has posted a solution: http://www.simplemachines.org/community/index.php?topic=176062.msg1131874#msg1131874

I can report that it resolved the problem I was having (Flashchat integration 1.0 was killing my site).

I attempted this solution and it doesn't help me.
Title: Re: FlashChat Integration
Post by: Niteblade on June 30, 2007, 11:37:21 PM
Quote from: nite0859 on June 30, 2007, 11:34:13 PM
Quote from: Col on June 20, 2007, 11:40:41 AM
Hi,

For those who have reported conflicts with other mods, particularly bridged software or SSI problems, Clemennzo has posted a solution: http://www.simplemachines.org/community/index.php?topic=176062.msg1131874#msg1131874

I can report that it resolved the problem I was having (Flashchat integration 1.0 was killing my site).

I attempted this solution and it doesn't help me.

It works.

Full Code in subs.php:


// --- Begin FlashChat Integration ---
// Only bother grabbing the data if we need it (ie. we're on the board
// index, or the information will be shown at the top of the forum).
// !!! $modSettings['fc_showUserCount'] just needs the count, not the whole query!
if (!empty($modSettings['fc_showUsers']) || !empty($modSettings['fc_showUserCount']) || (empty($context['current_action']) || $context['current_action'] == 'boardindex' || $context['current_action'] == 'forum'))
{
global $boarddir, $db_prefix, $db_name;
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
// Get the proper database prefix (including database name)
$fc_prefix = is_numeric(substr($GLOBALS['fc_config']['db']['pref'], 0, 1)) ? $db_name . '.' . $GLOBALS['fc_config']['db']['pref'] : '`' . $db_name . '`.' . $GLOBALS['fc_config']['db']['pref'];
// Load all the users currently in the chat
$result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$fc_prefix}connections AS fc
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$fc_prefix}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
AND mem.ID_MEMBER != 0
ORDER BY mem.realName ASC", __FILE__, __LINE__);

$context['users_chat'] = array();
$context['list_users_chat'] = array();
$context['num_chat'] = mysql_num_rows($result);

// Loop through all users in chat
while ($row = mysql_fetch_assoc($result))
{
// Does their membergroup have a colour?
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '">' . $row['realName'] . '</a>';

// Add them to the 'Users Online' list
$context['users_chat'][$row['memberName']] = array(
'id' => $row['userid'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['userid'],
'link' => $link,
'chat' => array(
'color' => $row['color'],
'lang' => $row['lang'],
'room' => array(
'id' => $row['roomid'],
'name' => $row['roomName'],
'public' => ($row['ispublic'] == 'y' ? true : false),
),
),
);

$context['list_users_chat'][$row['memberName']] = $link . ' (' . ($row['ispublic'] != 'y' ? $txt['fc_private_room'] : $row['roomName']) . ')';

// Groups online
if (!isset($context['online_groups'][$row['ID_GROUP']]))
$context['online_groups'][$row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => $row['groupName'],
'color' => $row['onlineColor']
);
}
mysql_free_result($result);
}
// --- End FlashChat Integration ---
Title: Re: FlashChat Integration
Post by: Chuck on July 02, 2007, 09:02:01 AM
Quote from: Molokaibill on January 10, 2007, 08:55:53 PM
Quote from: sciurus on January 10, 2007, 11:31:11 AM
While in chat the members Username is displayed, is it possible to change this so it shows their Displayed Name, and if so what do I need to change?

In&nbsp; /bridges/smf10.inc.php
search for "MemberName"&nbsp; (2x)
replace with "RealName"

I can't find that file??
Title: Re: FlashChat Integration
Post by: joh87swe on July 03, 2007, 03:14:57 PM
Is this compatible with smf 1.1.3??
Title: Re: FlashChat Integration
Post by: joh87swe on July 04, 2007, 01:51:57 PM
Quote from: joh87swe on July 03, 2007, 03:14:57 PM
Is this compatible with smf 1.1.3??
?
Title: Re: FlashChat Integration
Post by: s--k on July 05, 2007, 12:13:52 PM
First: great Chat (bought it yesterday)  :D

My 1st problem:
Why do user have to login and are not automatically in the chat?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg66.imageshack.us%2Fimg66%2F4333%2Fsmfprob1nz6.jpg&hash=4fbdea94cd513412a2074231715604ae7db42cc7)

My 2nd problem:
If I try to install the FlashChat Integration, I see the following error:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg255.imageshack.us%2Fimg255%2F8573%2Fsmfprob2xr7.jpg&hash=5baed45ec9c2eb85f5507e6dc2083833d9c50c2e)
What probably means in english: "no actions definied"

My 3rd problem:
I can see the mod- but not use it- can only list the files or delete them:(
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg514.imageshack.us%2Fimg514%2F7833%2Fsmfprob3rk4.jpg&hash=c681ce7cf497632daa3948938cbef504d6b5da5a)

My solved Problem:
I was not able to upload the FlashChat from the Link I´ve got after the payment
directly from SMF and had to upload it from my harddisc. That did NOT work, because
of the scripttime I have on the server. So I installed it manually after an upload via
FTP- now it works.. but:
- I can NOT delete Chatrooms

If an user clicks on Login here,
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg66.imageshack.us%2Fimg66%2F4333%2Fsmfprob1nz6.jpg&hash=4fbdea94cd513412a2074231715604ae7db42cc7)
the Chat works- the Username and Mods become Mods and Admin becames automatically administrator.
Great- but: whatfor the "you can purchase..." text?
I already did purchase the script- otherwise I would not be able to use that  :(

Can anyone help? What did I do wrong?
(sorry for my bad english- it´s a long time ago I used it..)

Thank you for help!
Title: Re: FlashChat Integration
Post by: Col on July 05, 2007, 05:33:14 PM
Quote from: joh87swe on July 03, 2007, 03:14:57 PM
Is this compatible with smf 1.1.3??

Hi,

Yes, I have this working with 1.1.3 without any problems.
Title: Re: FlashChat Integration
Post by: aussieholden on July 12, 2007, 11:57:42 AM
I have SMF 1.1.3 and installed the mod but can not set any setting as I get the 404 error and during the install it could not find the following files :-

12. Execute Modification ./chat/inc/flashChatTag.php File not found
13. Execute Modification ./chat/inc/cmses/smfCMS2.php File not found

I also get the message :-

FlashChat does not appear to be installed!
Title: Re: FlashChat Integration
Post by: Col on July 12, 2007, 06:09:54 PM
Have you purchased FlashChat (just $5) and installed it before you installed this mod? This mod just provides for a fuller integration with SMF.
Title: Re: FlashChat Integration
Post by: aussieholden on July 12, 2007, 09:48:01 PM
Yes flash chat has been installed first before the mod.
Should flash chat be sitting in a certin place on my host ?
Title: Re: FlashChat Integration
Post by: justonemike on July 12, 2007, 10:22:46 PM
I didn't find anything ....  is there a way to make it were only certain member groups can enter a specific room in flash chat.

For example if there is a room called "Charter Members" then only members with the group status of Charter Members would be able to get into that room in chat?
Title: Re: FlashChat Integration
Post by: aussieholden on July 13, 2007, 02:33:53 AM
Ok I found out the chat file needed to be in the forum file the mod installed but when I went to change the chat room option's in the setting I ended up loosing acces the forum as I get a big white screen telling me this :-

QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


HELP I tried to remove what I could to get it back up but no luck.  >:(
Title: Re: FlashChat Integration
Post by: aussieholden on July 13, 2007, 09:53:14 AM
I have now got the forum back up and working but I am now left with parts of the modding on the site like the chat link and the chat options how can I fix this.

Title: Re: FlashChat Integration
Post by: aussieholden on July 13, 2007, 10:46:44 AM
I now have it working and I have found the option that is causing the trouble :-

Display Users in Chat at top of forum?
Show number of users on Chat button?

This Causes The Forum To Crash
Title: Re: FlashChat Integration
Post by: ardd on July 15, 2007, 02:24:30 AM
I have bought the Flashchat module installed it in the my.domain/simplemachinesfroum/chat folder as directed after doing so I registered myself as admin and checked out chat which seems to work fine provided I log in via the url.

I tried to download the Flashchat integration module and received this error" The package you are trying to download or install is either corrupt or not compatible with this version of SMF." I have received the same error when I tried to download both integrated chat, and ajax chat as well in earlier attempts. I believe this may have been due to version incompatibility though. My current version of SMF is as follows.

Version Information:
Forum version: SMF 1.1.2
Current SMF version: SMF 1.1.3
(more detailed)

As far as I have read there should be no problem although I suspect I am experiencing operator error. Any ideas? If more info is required please just ask although I am new to this Iwill do my best to provide all I can.

Thanks
Ardd

Title: Re: FlashChat Integration
Post by: Col on July 15, 2007, 08:49:31 AM
It would be worth upgrading your forum to 1.1.3 first, whether or not there is a problem with the mod.
Title: Re: FlashChat Integration
Post by: ardd on July 15, 2007, 11:27:20 AM
I have been a little reluctant to upgrade any farther, flashchat was originally my third choice as far as chat goes. The other chats I tried where set up as modules and I was informed that the module versions where incompatible with1.1.2. 

I have noticed while browsing the modules that there seems to be a certain amount of lag between the forum upgrades and the theme and module upgrades. for the sake of continuity while trying to build membership its not a good thing to have features coming and going or waiting long periods for the features that make SMF such a great thing to be updated.

Aside from the chat rodeo, where I have been riding the bull for over a week everything seems to work well and the theme I'm using is great!

As of now I don't believe I have the technical expertise to modify any modules for compatibility purposes although I am learning as quickly as I can.

But I digress..... ;) My main problem is trying to diagnose the problem with the chat integration module or the reason SMF is rejecting modules.

Any thoughts on possible places to look, or workarounds would be most welcome.
Title: Re: FlashChat Integration
Post by: s--k on July 18, 2007, 08:15:57 PM
Does Daniel not give any support here anymore?
I still need help for my problem mentioned  herehttp://www.simplemachines.org/community/index.php?topic=139769.msg1150601#msg1150601 (http://www.simplemachines.org/community/index.php?topic=139769.msg1150601#msg1150601)
Title: Re: FlashChat Integration
Post by: brianjw on July 18, 2007, 09:09:29 PM
Quote from: s--k on July 18, 2007, 08:15:57 PM
Does Daniel not give any support here anymore?
I still need help for my problem mentioned  herehttp://www.simplemachines.org/community/index.php?topic=139769.msg1150601#msg1150601 (http://www.simplemachines.org/community/index.php?topic=139769.msg1150601#msg1150601)
You might get support from his site here: http://www.daniel15.com/forum/index.php/board,22.0.html
(login or register and post for support in that board"FlashChatIntegration".)
Title: Re: FlashChat Integration
Post by: Mrs_Robota on July 19, 2007, 11:59:39 PM
Does sombody knows how I can make that this work for all languages??, it only work with english for me, where is the file that I have to modify for make the translation to my language?
Title: Re: FlashChat Integration
Post by: brianjw on July 20, 2007, 06:13:00 PM
Depending on your language it would be <language>.template.php in Themes/default/languages/
Title: Re: FlashChat Integration
Post by: Burtie on July 24, 2007, 06:58:04 AM
Hi,

I've just upgraded from SMF 1.0.11 to 1.1.3, I was using Flashchat before and have now installed the integration mod and carried out the instruction for using Flashchat in a theme ( dilber ).

The user on-line part works fine but the controls in admin do not! Flashchat will only open into the same window as my forum.

I just noticed that this mod seems to have a conflict with Coppermine! I un-installed the mod for now but would still like to use this.

Any ideas how I can get this to work?
Title: Re: FlashChat Integration
Post by: GhoXt on July 24, 2007, 07:11:15 AM
great mod :D easy and clean
Title: Re: FlashChat Integration
Post by: Col on July 24, 2007, 10:23:24 AM
Quote from: Burtie on July 24, 2007, 06:58:04 AM
I just noticed that this mod seems to have a conflict with Coppermine! I un-installed the mod for now but would still like to use this.

Any ideas how I can get this to work?

http://www.simplemachines.org/community/index.php?topic=139769.msg1132992#msg1132992
Title: Re: FlashChat Integration
Post by: Burtie on July 24, 2007, 07:30:11 PM
Cheers for the reply Col,

I think I'd rather just set it up without integration now.
I have a couple of problems firstly, I want to open Flashchat with a JavaScript link in the dilber theme. I have the link as below, but it just opens into a new window irrespective of how I set the header parameters. Could you tell me what's wrong with the link?


I have the supporting code in the header.
    //  the new chat button.
   echo'
            <td align="center" class="menubg' , $current_action == 'chat room' ? '2' : '' , '">
                <a href="javascript:void(0);" onclick="javascript:Start (\'http://www.mysite.com/forum/chat/flashchat.php\');" >' , 'CHAT ROOM' , '</a>       
               
  </td>';


Thanks :D
Title: Re: FlashChat Integration
Post by: jiminoregon on July 25, 2007, 08:26:22 PM
Quote from: Daniel15 on January 05, 2007, 11:48:23 PM
QuoteThe problem is.. on "Spikey", there isn't a BoardIndex.template.php.
Yet, even though I AM able to see who is in chat at bottom, there is no link found anywhere at the top to get to chat.
Since it doesn't have a BoardIndex.template.php, it is using the one from the default (that's why you're seeing who's in the chat)
The link for accessing the chat needs to be added to index.template.php. I'll take a look at Spikey later, and see the exact code you need.

Daniel,

Excellent mod...thank you very much!

Jim
Title: Re: FlashChat Integration
Post by: Burtie on July 26, 2007, 07:48:57 PM
Hi,

I am using Flashchat without the mod.

Could someone please tell me how to show users online without having the mod installed?

Using SMF 1.1.3 and Dilber theme.

Many Thanks
Title: Re: FlashChat Integration
Post by: Col on July 26, 2007, 08:34:56 PM
Hi Bertie,

I would think that the FlashChat site would be able to help with that.
Title: Re: FlashChat Integration
Post by: Daniel15 on July 27, 2007, 07:23:47 AM
To everyone that's having problems with Coppermine and similar integrations, I've released a new version of the FlashChat mod today. This new release should fix all the problems (thanks to clemenzo for the fix! ;D).  Also, please post any support queries at my forum (www.daniel15.com), you're likely to get a quicker response. Thanks! :)

Now, to answer some of the questions posted here. Please tell me if I missed your question...

Quotealthough.. my SMF version 1.06 shoutbox is getting a PHP has encountered a Stack overflow error
I'm not sure what would cause that. Please try upgrading your forum to the latest version.

QuoteDo we still need to do this for 1.0 Daniel? 
I think so... I'll take a look into it :)
Edit: I've uploaded a version of the package that's compatible with the Googlebot and Spiders mod :)

QuoteIs it just with me or this flash chat script is creating core.number files of 29,00 mb in my webserver?

Even if it's not caused by flash chat, does anyone knows a solution for stopping this?
This means that Apache or PHP is crashing. It's probably best to ask your web host about this.

QuoteI have to do the installation manualy becausse he is giving a bunch of errors.  All solved only this error when I do the modification in the Subs.php

Parse error: parse error, unexpected T_IF, expecting ')' in /var/www/vhosts/animalsex-forum.com/httpdocs/Sources/Subs.php on line 3408
I believe you have placed the code in the wrong place.  The FlashChat code section should not be inside the $context['common_stats'] array.


QuoteHas anyone figured out how to remove what room the users are in so that it takes less space to provide all the names?
In Subs.php, find:

$context['list_users_chat'][$row['memberName']] = $link . ' (' . ($row['ispublic'] != 'y' ? $txt['fc_private_room'] : $row['roomName']) . ')';

Replace with:

$context['list_users_chat'][$row['memberName']] = $link;


QuoteIs this compatible with smf 1.1.3??
Yes :)

QuoteMy 1st problem:
Why do user have to login and are not automatically in the chat?
Please make sure that when you installed FlashChat, you chose to integrate it into SMF.

QuoteI have SMF 1.1.3 and installed the mod but can not set any setting as I get the 404 error and during the install it could not find the following files :-

12. Execute Modification ./chat/inc/flashChatTag.php File not found
13. Execute Modification ./chat/inc/cmses/smfCMS2.php File not found

I also get the message :-

FlashChat does not appear to be installed!
FlashChat needs to be in the "chat" directory inside your forum's directory.

QuoteDoes Daniel not give any support here anymore?
I do, although I prefer doing so at my own support forums at www.daniel15.com ;)

QuoteDoes sombody knows how I can make that this work for all languages??, it only work with english for me, where is the file that I have to modify for make the translation to my language?
Copy the FlashChat stuff from Themes/default/Modifications.english.php to Modifications.<your language>.php.

QuoteCould someone please tell me how to show users online without having the mod installed?
To be honest, this is the main feature of this integration. Doing this manually essentially involves installing a large part of the mod manually :P

Anyways...
In Sources/Subs.php, find:

$context['common_stats'] = array(
'total_posts' => comma_format($modSettings['totalMessages']),
'total_topics' => comma_format($modSettings['totalTopics']),
'total_members' => comma_format($modSettings['totalMembers']),
'latest_member' => $context['common_stats']['latest_member'],
);

Add after:

// --- Begin FlashChat Integration ---
global $boarddir, $db_prefix, $db_name;
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
// Get the proper database prefix (including database name)
$fc_prefix = is_numeric(substr($GLOBALS['fc_config']['db']['pref'], 0, 1)) ? $db_name . '.' . $GLOBALS['fc_config']['db']['pref'] : '`' . $db_name . '`.' . $GLOBALS['fc_config']['db']['pref'];
// Load all the users currently in the chat
$result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$fc_prefix}connections AS fc
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$fc_prefix}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
AND mem.ID_MEMBER != 0
ORDER BY mem.realName ASC", __FILE__, __LINE__);

$context['users_chat'] = array();
$context['list_users_chat'] = array();
$context['num_chat'] = mysql_num_rows($result);

// Loop through all users in chat
while ($row = mysql_fetch_assoc($result))
{
// Does their membergroup have a colour?
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '">' . $row['realName'] . '</a>';

// Add them to the 'Users Online' list
$context['users_chat'][$row['memberName']] = array(
'id' => $row['userid'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['userid'],
'link' => $link,
'chat' => array(
'color' => $row['color'],
'lang' => $row['lang'],
'room' => array(
'id' => $row['roomid'],
'name' => $row['roomName'],
'public' => ($row['ispublic'] == 'y' ? true : false),
),
),
);

$context['list_users_chat'][$row['memberName']] = $link . ' (' . ($row['ispublic'] != 'y' ? $txt['fc_private_room'] : $row['roomName']) . ')';
}
mysql_free_result($result);
// --- End FlashChat Integration ---


In Themes/[your theme name]/index.template.php, find:

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}

Add after:

// --- Begin FlashChat Integration ---
// Do we need to display a list of the users in the chat?
// Are there users online?
if (!empty($context['users_chat']))
echo '
Users In Chat: ', implode(', ', $context['list_users_chat']), '<br />';
// --- End FlashChat Integration ---

I've not tested this, but it should work ;).
Title: Re: FlashChat Integration
Post by: Radioshqip on July 28, 2007, 05:09:44 PM
hello i'm having a problem Installing the FlashChat i did install but wen i try to go to the Forum Home page it wont work
1. Extract File ./Sources/Chat.php&nbsp;
2. Extract File ./Themes/default/Chat.template.php&nbsp;
3. Extract File ./dologout.php&nbsp;
4. Execute Modification ./index.php Test successful
5. Execute Modification ./SSI.php Test successful
6. Execute Modification ./Sources/ModSettings.php Test successful
7. Execute Modification ./Sources/Subs.php Test successful
8. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
9. Execute Modification ./Themes/default/index.template.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
11. Execute Modification ./Themes/default/languages/Help.english.php Test successful
12. Execute Modification ./chat/inc/flashChatTag.php Test successful
13. Execute Modification ./chat/inc/cmses/smfCMS2.php Test successful
14. Execute Code add_settings.php



The package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes.


but wen i klick to Home on forum it comes

The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.

--------------------------------------------------------------------------------

Please try the following:

Click the&nbsp; Refresh button, or try again later.

If you typed the page address in the Address bar, make sure that it is spelled correctly.

To check your connection settings, click the Tools menu, and then click Internet Options. On the Connections tab, click Settings. The settings should match those provided by your local area network (LAN) administrator or Internet service provider (ISP).
If your Network Administrator has enabled it, Microsoft Windows can examine your network and automatically discover network connection settings.
If you would like Windows to try and discover them,

i can go back and unistall the FlashChat and it works fine after 


can anybody help me with this is there a problem with a FlashChat
or is me :)
Title: Re: FlashChat Integration
Post by: perro88 on July 29, 2007, 02:10:05 AM
I instaled the flashchat and seems to work, at least the link is showed and it enter with the username loged, etc. but I have the smf shoutbox installed and a error message appear in the shoutbox, if I write something to the shoutbox, the error disapear, but if I made refresh it apears till I write something. if I unistall the flashchat mod that erros stop showing. The error says something about the subs.php. I checked the install packages of both and didn´t check any conflict or detect what file is creating that error but I don´t have much experience in this so i need help..
Title: Re: FlashChat Integration
Post by: auspool on July 29, 2007, 03:00:34 AM
i tried to delete the room names at the install process and put just 2 rooms that i wanted them called and deleted the others
but when it was all installed it put my rooms  and the others it comes with
how do i delete the ones i dont want ???

daniel d
Title: Re: FlashChat Integration
Post by: Col on July 29, 2007, 02:42:02 PM
Quote from: auspool on July 29, 2007, 03:00:34 AM
i tried to delete the room names at the install process and put just 2 rooms that i wanted them called and deleted the others
but when it was all installed it put my rooms&nbsp; and the others it comes with
how do i delete the ones i dont want ???

daniel d

Go your chat admin: http://www.yoursite.com/forum/chat/admin/index.php

Enter 'Rooms' to make the changes. I had exactly the same happen with my installation.
Title: Re: FlashChat Integration
Post by: Radioshqip on July 30, 2007, 12:00:15 PM
hello can someone help me with this problem i have install the FlashChat 4.8.2 but wen i put the nick i got on my database if the nick is more then 12 leters it want go .. can you help me if is posable te change that ?


The nick should be Radioshqipbot and it gos only Radioshqipbo
Title: Re: FlashChat Integration
Post by: brianjw on July 30, 2007, 08:55:48 PM
Well I don't know about if this mod uses iframes in anyway or somehow calls a flash object directly into the page but anyway...

If an iframe in this mod: Call the flashchat.php file through there.
If a swf object directly in the action of this mod (aka action=chat): Change the url to include a different url other than scripturl or boardurl etc.
Like call it out like this: http://mysite.com/chat/flashchat.php

To do this you may have to modify a chat.template.php. (not sure if you have a file like this) If you do have this file it would be under /Themes/default/chat.template.php

Hope this helps.
Also if you're looking to speak with daniel15 directly and get faster support
Quote from: Daniel15 on July 27, 2007, 07:23:47 AM
Also, please post any support queries at my forum (www.daniel15.com), you're likely to get a quicker response. Thanks! :)

Brianjw :)
Title: Re: FlashChat Integration
Post by: perro88 on July 30, 2007, 11:29:46 PM
when i install the smf shoutbox+flahschat integration mods without errors and even without anyother mod installed a error like this is always showed on the smf shoutbox
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1572864 bytes) in C:\www\fteste\Sources\subs.php(3435) : eval()'d code on line 1224
I´m working the forum on my pc
Title: Re: FlashChat Integration
Post by: hobox on July 31, 2007, 10:48:52 AM
Quote from: Molokaibill on January 10, 2007, 08:55:53 PM
Quote from: sciurus on January 10, 2007, 11:31:11 AM
While in chat the members Username is displayed, is it possible to change this so it shows their Displayed Name, and if so what do I need to change?

In  /bridges/smf10.inc.php
search for "MemberName"  (2x)
replace with "RealName"

This seems to have changed. Where do I change this now?

And one more thing...

Instead of [4 Users] in the forum menu I just want a [4]. What do I have to change?
Title: Re: FlashChat Integration
Post by: brianjw on July 31, 2007, 05:21:59 PM
Enough with the support in here lol! Post it at Daniel15's site.
http://www.daniel15.com
Title: Re: FlashChat Integration
Post by: hobox on August 01, 2007, 06:01:08 AM
Quote from: brianjw on July 31, 2007, 05:21:59 PM
Enough with the support in here lol! Post it at Daniel15's site.
http://www.daniel15.com

Why? This is the offical SMF support forum and more ppl read it here. Ok if you want a direct response from daniel I can see the point of posting on his forum, but here you can get feedback from other users.
Title: Re: FlashChat Integration
Post by: brianjw on August 01, 2007, 07:58:18 PM
True, very true :)
Title: Re: FlashChat Integration
Post by: Yigal on August 02, 2007, 12:17:18 AM
we have to pay for this Mod?!?
Title: Re: FlashChat Integration
Post by: Col on August 02, 2007, 04:53:27 AM
Quote from: Dud on August 02, 2007, 12:17:18 AM
we have to pay for this Mod?!?

No, it's free.
Title: Re: FlashChat Integration
Post by: texterted on August 02, 2007, 04:48:06 PM
Hi all, I've got Flashchat on my SMF 1.1.3 running great but I have registered users bypassing the forum and logging straight into flashchat.

They monitor the users in flashchat using the link on the built in flashchat log-in page.

Does anyone know how I can remove or disable this log-in page? It's not needed as users just get logged in from SMF... or should do!

Many thanks in anticipation...
Title: Re: FlashChat Integration
Post by: brianjw on August 02, 2007, 06:11:21 PM
Quote from: Dud on August 02, 2007, 12:17:18 AM
we have to pay for this Mod?!?
Flashchat, costs money. About $5 USD to the creator down at http://tufat.com
This mod for SMF However... IS FREE :D
Title: Re: FlashChat Integration
Post by: perro88 on August 05, 2007, 03:23:34 PM
when i install the smf shoutbox+flahschat integration mods without errors and even without anyother mod installed a error like this is always showed on the smf shoutbox

The connection was reset


The connection to the server was reset while the page was loading.


    *   The site could be temporarily unavailable or too busy. Try again in a few
          moments.

    *   If you are unable to load any pages, check your computer's network
          connection.

    *   If your computer or network is protected by a firewall or proxy, make sure
          that Firefox is permitted to access the Web

I´m working the forum on my pc.
seems that it tries to load something. but if I write something in the shoutox, next time it works perfectly. can anyone help me please? I even installed the smf shoutbox manually and check the files where the two mods install but didn´t solved this problem
Title: Re: FlashChat Integration
Post by: Moif on August 08, 2007, 12:40:58 PM
Hi,

I've purchased Flashchat and have it integrated with SMF / Joomla via the SMF Mod that's available. However I have a few things that aren't quite working right:

If I login with an Admin allocated account into SMF then that user isn't seen as an admin in Flashchat. I get the 'male' icon. If I login as the SMF admin then I get the 'A'

If I call the forums from the URL then the chat link works fine. If I call the forums from the Joomla Bridge component then the chat page won't load at all.

I can't login as an admin into the Flashchat backend at all. I get:

Could not grant admin role for this login and password.

Any help or links to solutions appreciated. Thanks.

Oh and I'm using the Joomlahacks Bridge, SMF 1.1.2 and Jooma 1.12

Thanks
Title: Re: FlashChat Integration
Post by: Moif on August 08, 2007, 01:07:31 PM
This is a better explanation for one of the problems:

http://forum.tufat.com/showthread.php?p=162441#post162441

:)
Title: Re: FlashChat Integration
Post by: pcspecialist on August 09, 2007, 01:43:11 AM
I get a popup window with the error code 500 when leaving FlashChat via the top menu bar
Title: Re: FlashChat Integration
Post by: pcspecialist on August 09, 2007, 12:51:30 PM
Here's a solution to error 500 that I came up with after reading http://www.tufat.com/docs/flashchat/config.html

In the /inc/config.php configuration file of FlashChat, change 'showLogoutWindow' => true, to 'showLogoutWindow' => false,
Problem solved!

A little more you may want to do when editing the config.php file:

Under the //Logout behavior section:
'redirect' => true,
'url'       => '../../forums/index.php', (replace forums with the name of the directory your SMF is located)
'window'   => '_parent',

With the //Logout changes, members are directed back to the forum home page if they use the exit feature of FlashChat.
Title: Re: FlashChat Integration
Post by: brianjw on August 09, 2007, 05:02:02 PM
I installed the mod, when I try to access ?action=chat I get
Quote
Fatal error: Cannot redeclare reloadsettings() (previously declared in /home/content/b/j/w/bjwilson/html/Sources/Load.php:140) in /home/content/b/j/w/bjwilson/html/Sources/Load.php on line 138
I also checked in Load.php and the function reloadsettings() is only declared twice which is
Quote

   void reloadSettings()
      - loads or reloads the $modSettings array.
      - takes care of mysql_set_mode, if set.
      - loads any integration settings, SMF_INTEGRATION_SETTINGS, etc.
      - optimizes tables based on autoOptDatabase, autoOptLastOpt, and
        autoOptMaxOnline.
and
Quote
// Load the $modSettings array.
function reloadSettings()
{
   global $modSettings, $db_prefix, $boarddir, $func, $txt, $db_character_set;
   global $mysql_set_mode, $context;

Any ideas?
Brianjw
Title: Re: FlashChat Integration
Post by: ~Unkn0wn~ on August 15, 2007, 07:05:55 AM
I have AA New Damage, how i insert flashchat?
Yea i bought it, please step by step :S
Title: Re: FlashChat Integration
Post by: martina1974 on August 15, 2007, 05:35:16 PM
Hi there I am using dilber mc and have made the changes shown here http://www.daniel15.com/forum/index.php/topic,856.html

On the main page of my forum I can see 2 Guests, 45 Users, 1 User  but it doesn't give the names of the people in chat, is this easy to rectify please?

Forgot to say it is working fine in the default theme.
Title: Re: FlashChat Integration
Post by: martina1974 on August 17, 2007, 02:47:41 PM
I have managed to sort out the problem above but now it is showing the wrong people in chat.  I log in but it shows me with another members name everytime, why would that be?
Title: Re: FlashChat Integration
Post by: Col on August 17, 2007, 03:47:26 PM
Quote from: martina1974 on August 17, 2007, 02:47:41 PM
I have managed to sort out the problem above but now it is showing the wrong people in chat.  I log in but it shows me with another members name everytime, why would that be?

It's because they didn't logout. I'm unsure if there is a fix or not for this over at the FlashChat forum. They will be logged off eventually, but it is somewhat annoying.
Title: Re: FlashChat Integration
Post by: martina1974 on August 17, 2007, 03:59:40 PM
Oh right there isn't much point to it then if you can't see the actual people lol.

Where is the flashchat forum please?
Title: Re: FlashChat Integration
Post by: Col on August 17, 2007, 05:25:48 PM
Hi,

My mistake - I misread your post. I thought someone else appears to be logged in all the time whenever you login, but I see now that names are being mixed up.

'Where's the FlashChat forum?' Funnily enough, at the site where you purchased FlashChat! ;D

http://forum.tufat.com/index.php
Title: Re: FlashChat Integration
Post by: martina1974 on August 17, 2007, 05:32:15 PM
Thanks Col I had a look but can't see anything else about it, have you heard of this problem before?
Title: Re: FlashChat Integration
Post by: ~Unkn0wn~ on August 18, 2007, 11:10:37 PM
How i add the image of the button
If you have IE6
and go to ffateam.uni.cc/forum/ you will see a large space with link to the chat, how i add the .gif there?

Using AA New Damage
Title: Re: FlashChat Integration
Post by: mrstime on August 19, 2007, 11:01:34 AM
I am not really tech savvy and I want to apply this mod since I need a chat mod on the board.  Help anyone?
Title: Re: FlashChat Integration
Post by: mrstime on August 19, 2007, 11:11:05 AM
In the list of files there are 2 it says are missing, what do I do in that case?:

   Execute Modification     ./chat/inc/flashChatTag.php     File not found
13.    Execute Modification    ./chat/inc/cmses/smfCMS2.php    File not found
Title: Re: FlashChat Integration
Post by: Col on August 19, 2007, 01:12:55 PM
Have you already purchased FlasChat ($5) and installed it to your forum? This mod purely integrates FlashChat more completely with your SMF forum.
Title: Re: FlashChat Integration
Post by: mrstime on August 19, 2007, 02:04:03 PM
Ahhhhh k!  Thanks.  I didn't realize it had to be purchased.

Title: Re: FlashChat Integration
Post by: Col on August 19, 2007, 03:22:24 PM
I've tried a number of free chatroom mods with SMF and YaBB in the past - they were all pretty useless. FlashChat is worth far more than $5; I highly recommend it.
Title: Re: FlashChat Integration
Post by: rufen on August 24, 2007, 08:59:10 AM
well, I've installed flashchat, no error.
I've installer the mod, no error, but just after I installed it, the forum pop up about 150-200 error like this everytime someone try to check the forum, and of course, they get a blank page (and so do I)

Database Error: Table 'rufenn_lendernldbsql.flashchat_connections' doesn't exist
File: /home/rufenn/public_html/ldb2/forum/Sources/Subs.php
Line: 3214

now, it's clearly a wrong table call from the forum, but i'm wondering if there's a lot of those error that needs to be corrected?


Title: Re: FlashChat Integration
Post by: sennad on August 24, 2007, 10:07:53 AM
I got this problems:

1. SMF doesn't show how many users are in chat, and doesn't show who they are.

It shows only

5 Guests, 8 Users, Users in Chat

This is esential because users often enter chat when they see somebody they want to communicate with. Now, nobody is entering chat...

2. Users in one of my forum grups are for some reason banned from chat, but arent in banned list in forum or chat

3. After I instaled mod, recent posts that are in bottom of forum are late in showing. When I publish post, it takes up to 10 seconds to show it in recent post.


Are there solutions for this?

I use SMF 1.1.3, new versions of Mod and FlashChat (purchased it yesterday) and default theme.

Bottom line, mod is good, does god job with minor issues.

Plz Help?
Title: Re: FlashChat Integration
Post by: forumnet.be on August 24, 2007, 03:42:23 PM
Very URGENT please.

Installed Flashchat and the Integration Mod and now, every page I want to load has a 500 error on it.
My forum isn't loading anymore!

I will have to solve this going through the File Manager in my hosting account, since the forum is offline completely ...

What can I do?

PATRICK.

PS: using SMF 1.1.3 with Tinyportal 0.9.8 and mods:
- Ad management mod
- invite Mod 1.14
- Global header & Footers 1.3
Title: Re: FlashChat Integration
Post by: rufen on August 24, 2007, 06:12:23 PM
did you back it up first? everytime I install a mod I back it up, then if something crash, I just re-copy the backup. it takes 5 sec.

Title: Re: FlashChat Integration
Post by: forumnet.be on August 24, 2007, 06:43:02 PM
NO, forgot to backup this time.  :'(
Someone should tell me how to do this properly, since I'm not a champ when it comes to backups ...  :-[

But it shouldn't be THAT difficult to restore the changes that this MOD made, right?
If only I could get Daniel15 to respond on his forum ...
:-[
In the meantime my forum is still offline.

If I would just delete the Integration Mod files in my files manager, together with the /chat folder I put the flashchat script in, and then restore the (few?) files that the integration Mod changed, it should work. No?

Patrick.


Title: Re: FlashChat Integration
Post by: forumnet.be on August 24, 2007, 06:45:42 PM
 ??? ??? ???
I just got a new signup to my forum??

How is that possible when the forum is offline??
Can some of you access the forum in my sig?


Title: Re: FlashChat Integration
Post by: Col on August 24, 2007, 07:14:28 PM
I just got a 500 error when I tried your forum.

Do you have backup from the last time you applied a mod? If so, could you not install that version and just reapply that mod?
Title: Re: FlashChat Integration
Post by: forumnet.be on August 25, 2007, 05:39:00 AM
No, I don't. See my answer above please.
Title: Re: FlashChat Integration
Post by: brianjw on August 25, 2007, 08:12:12 AM
Unzip the flashchat mod zipfile and go into it. Open up the xml file that is other than the package-info.xml. Next, that is where you will see all the changes, basically undo everything that mod did by finding replacing and removing.

Also removing it in /Packages will also work.

Brianjw

(NOTE: I think you might be able to access your forum administration with a 500 error. I am not sure.)
http://www.yoursite.com/forum/index.php?action=admin
Title: Re: FlashChat Integration
Post by: forumnet.be on August 25, 2007, 12:54:09 PM
I have removed the /chat folder (with Flashchat script) manually and also the Integration Mod package from /packages, but nothing happens ...
Still the same 500 Server Error on all pages ...
Title: Re: FlashChat Integration
Post by: forumnet.be on August 26, 2007, 03:39:09 PM
Even a restore of an older backup (into a reserve folder) did not work???
Still the same "500 server error"?
How would this be possible? Wouldn't the error be somewhere in the SMF forum folder of my domain?
This Mod isn't changing files outside my /forum folder, is it?

Where is Daniel15 ?

Patrick.
Title: Re: FlashChat Integration
Post by: brianjw on August 26, 2007, 04:16:19 PM
Removing the chat folder will not change anything. This is an SMF Problem which is why you need to do the following or get someone else to do this. It's a manual mod uninstallation process.
Quote from: brianjw on August 25, 2007, 08:12:12 AM
Unzip the flashchat mod zipfile and go into it. Open up the xml file that is other than the package-info.xml. Next, that is where you will see all the changes, basically undo everything that mod did by finding replacing and removing.

Also removing it in /Packages will also work.
Title: Re: FlashChat Integration
Post by: hvyhitter on August 31, 2007, 12:01:30 AM
I am searching for flashchat and banned and I am coming up with nothing..

I am running the latest flashchat mod and version 1.1.3

its the same problem as this guy.. who got drowned out by the guy without backups
http://www.simplemachines.org/community/index.php?topic=139769.msg1214496#msg1214496

ok..

If you are using SMF 1.1.3 and flashchat and using the FLASHCHAT MOD FOR SMF and you get above 9 member groups.. when you ASSIGN someone to a member group that is GREATER than 9 it will tell that user and any user in that membergroup that they are BANNED and cannot use flash chat.. its silly that they limit you to 9 membergroups.. but the fix I just pieced together from like 4 different threads all saying somehting.. but nothing the same

here it is..

FIRST..

find this folder

%smf-root%\%chat%\inc\cmses

whatever you named the Flashchat directory is %chat% and
whatever your root name of SMF is is %smf-root%

go into that folder and find on line 58 this

if($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;

see that 9 in the middle there.. THAT is what is preventing every membergroup that you have in SMF from getting into chat. go ahead change that number to 99 so it looks like this

if($status == 0 || ($status > 3 && $status < 99 )) return ROLE_USER;

save your file.. and BOOM it starts working again.

I hope this answer meets your needs.. and is search engine friendly enough that people having this issue with

flashchat MOD
BANNED
BAN
whtever.. hope they find this and it answers their question as detailed as possible.

Mine is working 100% now.


Title: Re: FlashChat Integration
Post by: trekkie2444 on September 03, 2007, 11:51:30 PM
Ok I've got a question, I installed flashchat and integrated it with SMF, but created my own seperate link for the chatroom. But it opens up on another window, and I don't want it to, I want it to open up on a skinned window, like a popup. I've seen one with a chat rules page, and that is completely skinned, without the stupid top header bars and all that, and is much smaller. How do I get mine like that exactly? And also, isn't there a way to make it not say Flashchat Vwhatever, and say Chatroom?
Title: Re: FlashChat Integration
Post by: slackerpunk on September 06, 2007, 07:10:43 PM
can anyone help me with this error when trying to install:

Installations actions for "FlashChat Integration":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Extract File    ./Sources/Chat.php    
2.    Extract File    ./Themes/default/Chat.template.php    
3.    Extract File    ./dologout.php    
4.    Execute Modification    install.xml    Modification parse error
5.    Execute Modification    -    Modification parse error
6.    Execute Code    add_settings.php    
Title: Re: FlashChat Integration
Post by: Greenman on September 13, 2007, 10:41:23 PM
What can I use to show the number of users in chat? (just the number)

The $context['num_chat'] does not seem to be working... at all.

Is there anyway to also use it through SSI? I also need to use it outside of the forum.
Title: Re: FlashChat Integration
Post by: lemur21 on September 14, 2007, 05:25:29 PM
Quote from: Daniel15 on January 11, 2007, 05:32:21 AM
OK, in Themes/amber11final/index.template.php, find:

if (in_array($_GET['action'],array('search','admin','calendar','profile','mlist','register','login','pm','help')))

Replace with:

if (in_array($_GET['action'],array('search','admin','calendar','profile','mlist','register','login','pm','help','chat')))


Also, find:

// The [calendar]!
if ($context['allow_calendar'])
echo $tab1, $ca== 'calendar' ? '1' : '2' , '"><a href="', $scripturl, '?action=calendar">'.$txt['calendar24']. '</a></td>';

Add after:

// FlashChat!
if ($context['user']['is_logged'])
echo $tab1, $ca== 'chat' ? '1' : '2' , '"><a href="', $scripturl, '?action=chat">'.$txt['fc_chat']. '</a></td>';




Hi Daniel (or anyone else),

This worked quite well, with one exception. My top menu bar did 'make a space' for the word "Chat" to appear (and, if you click on the empty space, it DOES launch chat). I just need to get the word "Chat" to appear in the menu bar.

Here's a link to my site: http://www.libogroup.com/SMF/index.php

I, too, am using the amber theme.

If anyone needs me to upload a file, I can do that, as well.

Thanks!

Chris
Title: Re: FlashChat Integration
Post by: jamesk on September 25, 2007, 03:29:09 PM
http://...mywebsite.../forum/index.php?action=collapse;c=1;sa=expand 
8: Undefined index: num_chat
File: /...mywebsite.../public_html/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 362

I get the above error when I try to collapse/expand a board.

Where is num_chat declared?  The only reference to it that I can find is in Subs.php around line 3270 where it's
$context['num_chat'] = mysql_num_rows($result);


I'm not sure why collapsing/expanding the board results in the undefined index error.  Is it refreshing the board but not loading the variable?  I believe it does show the right number of users in chat...

???


Title: Re: FlashChat Integration
Post by: jossanaijr on September 26, 2007, 08:59:23 PM
I'm thinking to buy the license but the link is not working? There are errors in all buy products!
Title: Re: FlashChat Integration
Post by: mcfriends on September 26, 2007, 09:42:36 PM
Hi,

I installed your mod and it worked fine so far.
However, I run into a problem of "PHP has encountered a Stack overflow" when I have another page that use SSI.PHP (I need to make sure that only member can access to that page, therefore, I have require_once("SSI.php"); ) Well, this page worked fine before I installed the mod. Any idea how to fix ?
my board version is: 1.1.2

Thanks
Title: Re: FlashChat Integration
Post by: en_shua on September 27, 2007, 03:26:43 PM
Has anyone tried this with FlashChat Beta version 4.8.3
Title: Re: FlashChat Integration
Post by: Kindred on September 27, 2007, 05:30:27 PM
seems to work just fine...
Title: Re: FlashChat Integration
Post by: jamesk on September 27, 2007, 05:58:17 PM
Quoteseems to work just fine...

Is it just me that gets errors when collapsing/expanding boards?
Title: Re: FlashChat Integration
Post by: Kindred on September 27, 2007, 06:13:40 PM
why/how would that be related to the flashchat mod?
Title: Re: FlashChat Integration
Post by: jamesk on September 27, 2007, 06:35:40 PM
Because when I collapse or expand a board, I get an error:

Quotehttp://...mywebsite.../forum/index.php?action=collapse;c=1;sa=expand 
8: Undefined index: num_chat
File: /...mywebsite.../public_html/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 362

The $context['num_chat '] variable seems to lose its value when collapsing or expanding a board.

Line 362:

echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];


when changed to:

echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', !empty($context['num_chat']) ? $context['num_chat']:'0',' ', (!empty($context['num_chat'])&& $context['num_chat'] == 1) ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];


resolves the problem, but I think it should be deeper than that unless, of course, I'm the only getting this error...
Title: Re: FlashChat Integration
Post by: en_shua on September 28, 2007, 02:05:46 PM
I have installed this, and am using FlashChatSMF_1-0a with FlashChat Beta version 4.8.3.  It was working for a bit today, but now it is not.  Whenever someone clicks on Chat, the page loads, but the section where the FlashChat should be is empty.  If I change the settings to have FlashChat open in a new window, a new blank window opens.  However, I can navigate to www.whateverdomain.com/forum/chat and FlashChat will come up just fine.  Does anyone have any ideas?

EDIT:
Update:  Let's say I'm using FireFox.  Apparently, if I go to www.whateverdomain.com/forum/chat in one tab, the FlashChat works just fine in other windows.  In fact, I can log in and out of FlashChat, and as long as I haven't closed FireFox, then FlashChat will appear in my SMF without a problem.  The same thing happens in IE.  But, once I close IE or FireFox, then I have to go to www.whateverdomain.com/forum/chat again to get it to work.
Title: Re: FlashChat Integration
Post by: jossanaijr on September 28, 2007, 03:25:47 PM
When I left chat in my index it still says I'm there until someone enter that chat room.  Any advice? How to leave the room?
Title: Re: FlashChat Integration
Post by: soulmanpete on September 30, 2007, 08:49:56 AM
Help ..trying to install flash chat I have purchased the chat script and down loaded the intergation mod . I insalled SMF though Fanstasico and cant find the folder to put the Flashchat in ? need step by step instustions as Im a bit lost with this ..thanks
Title: Re: FlashChat Integration
Post by: jossanaijr on September 30, 2007, 09:50:06 AM
If your forum is www.yoursite/forum you should upload flashchat files (i.e. /chat folder in your flashchat zip file) to www.yoursite/forum/chat.  After upload run www.yoursite/forum/chat/install.php.  After all setup you install flashchat mod.
Title: Re: FlashChat Integration
Post by: jossanaijr on October 01, 2007, 11:46:19 AM
Quote from: jossanaijr on September 28, 2007, 03:25:47 PM
When I left chat in my index it still says I'm there until someone enter that chat room.  Any advice? How to leave the room?
bumping this problem...
Title: Re: FlashChat Integration
Post by: Kindred on October 01, 2007, 01:14:42 PM
nope... it happens.

1- if a new user enters chat, it will rec-calculate
2- if the users actually use the "logout" button when they leave the chat, it will work correctly.
3- If you use "logout as a pop-up" it will, in general work better, except for users who have pop-up blockers turned on.
Title: Re: FlashChat Integration
Post by: en_shua on October 01, 2007, 01:19:36 PM
Quote from: en_shua on September 28, 2007, 02:05:46 PM
I have installed this, and am using FlashChatSMF_1-0a with FlashChat Beta version 4.8.3.  It was working for a bit today, but now it is not.  Whenever someone clicks on Chat, the page loads, but the section where the FlashChat should be is empty.  If I change the settings to have FlashChat open in a new window, a new blank window opens.  However, I can navigate to www.whateverdomain.com/forum/chat and FlashChat will come up just fine.  Does anyone have any ideas?

EDIT:
Update:  Let's say I'm using FireFox.  Apparently, if I go to www.whateverdomain.com/forum/chat in one tab, the FlashChat works just fine in other windows.  In fact, I can log in and out of FlashChat, and as long as I haven't closed FireFox, then FlashChat will appear in my SMF without a problem.  The same thing happens in IE.  But, once I close IE or FireFox, then I have to go to www.whateverdomain.com/forum/chat again to get it to work.

Anyone?
Title: Re: FlashChat Integration
Post by: Kindred on October 01, 2007, 01:23:50 PM
you should be calling  www.whateverdomain.com/forum/chat/flashchat.php to open the integrated version....
Title: Re: FlashChat Integration
Post by: en_shua on October 01, 2007, 03:08:35 PM
Quote from: Kindred on October 01, 2007, 01:23:50 PM
you should be calling  www.whateverdomain.com/forum/chat/flashchat.php to open the integrated version....
I followed the modification instructions.  If that is what the link went to when I clicked on Chat, then that is what I was doing.
Title: Re: FlashChat Integration
Post by: Kindred on October 01, 2007, 04:12:11 PM
URL?
Title: Re: FlashChat Integration
Post by: Greenman on October 01, 2007, 04:15:50 PM
Quote from: Greenman on September 13, 2007, 10:41:23 PM
What can I use to show the number of users in chat? (just the number)

The $context['num_chat'] does not seem to be working... at all.

Is there anyway to also use it through SSI? I also need to use it outside of the forum.

Mmm.. I'm still looking for that answer. ^^^

Anyone?
Title: Re: FlashChat Integration
Post by: jamesk on October 01, 2007, 04:40:28 PM
QuoteQuote from: Kindred on Today at 01:23:50 PM
you should be calling  www.whateverdomain.com/forum/chat/flashchat.php to open the integrated version....

I followed the modification instructions.  If that is what the link went to when I clicked on Chat, then that is what I was doing.

Clicking on Chat should get you to .../forum/index.php?action=chat

What do have checked for chat options in your admin features and options? 
Title: Re: FlashChat Integration
Post by: jamesk on October 01, 2007, 04:45:49 PM
Can someone (anyone using 1.1.3 or 1.1.4) just try clicking the collapse/expand board on the main forum page....any board... and then check their error log and let me know if there are any error regarding undefined index.

Title: Re: FlashChat Integration
Post by: Kindred on October 01, 2007, 04:51:54 PM
I just tried this with no errors showing up...

Title: Re: FlashChat Integration
Post by: jamesk on October 01, 2007, 05:20:49 PM
QuoteI just tried this with no errors showing up...

Thank you...I'll have to try to find the cause of my errors by myself then...


To Greenman:
QuoteQuote from: Greenman on September 13, 2007, 10:41:23 PM
What can I use to show the number of users in chat? (just the number)

The $context['num_chat'] does not seem to be working... at all.

Is there anyway to also use it through SSI? I also need to use it outside of the forum.


Mmm.. I'm still looking for that answer. ^^^

Anyone?

The $context['num_chat'] variable is where the number of users in chat is held.  It is gotten from Subs.php (in /Sources).  Do a search for $context['num_chat'] = mysql_num_rows($result);

A few lines above it is the query:

// Load all the users currently in the chat
$result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$fc_prefix}connections AS fc
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$fc_prefix}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
AND mem.ID_MEMBER != 0
ORDER BY mem.realName ASC", __FILE__, __LINE__);


Does that match yours?  And exactly where are you calling the $context['num_chat']?
Title: Re: FlashChat Integration
Post by: Greenman on October 01, 2007, 05:52:05 PM
I'm calling it from a php file that is included at the header of the forum

include("http://www.mysite.net/menu.php");

I did not put "require (Subs.php)" in the menu.php since I figured it's already loaded in the SMF index page. ?
I'm guessing this is my problem - But no use in slowing down the load time because of it loading the same file twice.. ?
Title: Re: FlashChat Integration
Post by: Kindred on October 01, 2007, 09:29:26 PM
you can not just include subs.php...   it won't work.


what is menu.php?   If you are including menu.php, then $context is not defined in that file, which means $context['num_chat'] has no value.
Title: Re: FlashChat Integration
Post by: Greenman on October 01, 2007, 09:36:28 PM
Quote from: Kindred on October 01, 2007, 09:29:26 PM
you can not just include subs.php...   it won't work.


what is menu.php?   If you are including menu.php, then $context is not defined in that file, which means $context['num_chat'] has no value.

I'm not including the Subs file, I'm including the menu file. Which is just a small php code with a custom made menu.

So what can I do to make it work? (besides requiring the big subs file, which will effect the load times)
Title: Re: FlashChat Integration
Post by: Kindred on October 02, 2007, 08:31:48 AM
I understood that. I'm not sure of the solution off the top of my head, but I am telling you that you *CAN NOT* require (or include) subs.php, even if you wanted to.

and I am telling you that the REASON your menu.php is not working is because the $context variable is not defined.

Why are you including a menu file anyway?  Why not just put the code into index.template.php?
Title: Re: FlashChat Integration
Post by: Greenman on October 02, 2007, 04:23:16 PM
Because I use the menu outside of the forum and it's the easiest to just change one file. I guess changing 2 files isn't so bad though..
Title: Re: FlashChat Integration
Post by: Kindred on October 02, 2007, 04:28:34 PM
on the other hand...   you could just forget about $context and just query the database directly to get the number of chatters...
Title: Re: FlashChat Integration
Post by: Greenman on October 02, 2007, 05:00:35 PM
Hmm.. anyway to do it through SSI? Since I'm already grabbing other codes from SSI.
Title: Re: FlashChat Integration
Post by: Kindred on October 02, 2007, 05:07:48 PM
yes... but you can not use SSI code on the same page as the forum. So that would allow you to display it on non-forum pages, but not on forum pages.

Seriously, just look at the whoschatting file provided with flashchat and pull the db queries yourself.
Title: Re: FlashChat Integration
Post by: Greenman on October 02, 2007, 05:29:29 PM
Ok.

But what is this 'whoschatting' file you are speaking of? I can't seem to find it anywhere.
Title: Re: FlashChat Integration
Post by: Kindred on October 02, 2007, 05:36:17 PM
sorry...  it's called info_embedded.php

looks like this might do it...

/**
If this file is not in the FlashChat root folder, then change this
path to the location of the inc/common.php file.
*/
require_once('inc/common.php');

ChatServer::purgeExpired();

function numusers( $room = "" )
{
if($room) {
$stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ? AND roomid=?");
$rs = $stmt->process(SPY_USERID, $room);
} else {
$stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections,{$GLOBALS['fc_config']['db']['pref']}rooms
  WHERE userid IS NOT NULL AND userid <> ? AND ispublic IS NOT NULL
  AND {$GLOBALS['fc_config']['db']['pref']}connections.roomid = {$GLOBALS['fc_config']['db']['pref']}rooms.id");
$rs = $stmt->process(SPY_USERID);
}

$rec = $rs->next();

return $rec?$rec['numb']:0;
}
Title: Re: FlashChat Integration
Post by: Greenman on October 02, 2007, 07:53:53 PM
Hmm.. What am I doing wrong?

<?php 
function numusers$room "" )
{
if($room) {
$stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ? AND roomid=?");
$rs $stmt->process(SPY_USERID$room);
} else {
$stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections,{$GLOBALS['fc_config']['db']['pref']}rooms
&#160; WHERE userid IS NOT NULL AND userid <> ? AND ispublic IS NOT NULL
&#160; AND 
{$GLOBALS['fc_config']['db']['pref']}connections.roomid = {$GLOBALS['fc_config']['db']['pref']}rooms.id");
$rs $stmt->process(SPY_USERID);
}

$rec $rs->next();

return $rec?$rec['numb']:0;
}
echo 
'
<div align="left" style="font-size: 1%;"><img src="../images/hr.gif" width="200" height="1" alt="" /></div>
<div style="padding-top:5px; font-size:small;"><table width="94%" cellpadding="0" cellspacing="0" border="0">

<td align="center" class="header_menu"><a href="http://www.mysite.net/forum/index.php?action=chat" target="_blank">Chat'
, (!empty($numusers) ? ' [' $numusers ']' ''), '</a></td>
'
;
?>


Doesn't show the number of users when users are in the chatroom.

(that's the file included with some code taken out, and I am aware that the divs are not closed, they close after the file is included.)
Title: Re: FlashChat Integration
Post by: Kindred on October 02, 2007, 09:09:09 PM
did you include this?

/**
If this file is not in the FlashChat root folder, then change this
path to the location of the inc/common.php file.
*/
require_once('inc/common.php');
Title: Re: FlashChat Integration
Post by: Greenman on October 02, 2007, 09:37:35 PM
Oops - forgot, thanks.

However, it still doesn't work.. :(
I had to input the full URL instead since pages that include this file are outside of the forum, but I don't think there's anything else in the code to cause a problem with that..?
Title: Re: FlashChat Integration
Post by: Kindred on October 03, 2007, 08:06:48 AM
include/require does not us a URL... it uses a PATH
Title: Re: FlashChat Integration
Post by: Greenman on October 03, 2007, 03:53:20 PM
Heh, I've used an URL instead of PATH many time in require and include, works perfectly normal every time.. But ok. made it a path, but no results still.

Ahh whatever, I'll just give up on it. Unless you have some suggestions?
Title: Re: FlashChat Integration
Post by: Kindred on October 03, 2007, 04:02:32 PM
ummm.... did you echo out the return value?
echo 'there are ' . $rec['numb'] . ' users in the chatroom';
Title: Re: FlashChat Integration
Post by: Greenman on October 03, 2007, 04:35:13 PM
Yup.

', (!empty($numusers) ? ' [' . $numusers . ']' : ''), '
Title: Re: FlashChat Integration
Post by: Kindred on October 03, 2007, 04:39:21 PM
that won't work.
numusers is not a variable (not $) it's a function.
Title: Re: FlashChat Integration
Post by: Greenman on October 03, 2007, 05:02:45 PM
Ahh, I knew that.. :P

Works now, thanks.  Except.. It also counts the bot in the chatroom. Could I somehow make it not count bots?
Title: Re: FlashChat Integration
Post by: Kindred on October 03, 2007, 11:49:06 PM
WHERE userid IS NOT NULL AND userid <> ? AND userid <> 'botuserid'

whatever the bot's userid is....

although typically people leave the bot in the count to make people think that the chat is more popular...
Title: Re: FlashChat Integration
Post by: Greenman on October 04, 2007, 12:00:54 AM
Cool, thanks a lot. :)
Title: Re: FlashChat Integration
Post by: RSprinkel on October 06, 2007, 08:40:50 AM
Hi All,

I am using the Black Rain theme and am wondering if anyone knows the code to insert in the index.template.php file to get the button to show up?

Any help would be greatly appreciated.

Thanks Much in advance.
Title: Re: FlashChat Integration
Post by: Kindred on October 06, 2007, 08:42:23 AM
You can run the mod through the mod-parser at sleepycode.com
Title: Re: FlashChat Integration
Post by: RSprinkel on October 06, 2007, 08:59:10 AM
hi Kindred,

Thanks for the reply and the site.  One thing when I ran the mod through it told me what to look for and then add, well one section was NOT in my index.template.php file and that is:

if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';



With the above said, the rest was ok and it installed somewhat of a button as it started to but then placed the word Chat in Yellow.  So I am wondering without the code above in the actual index.template.php file I am wondering if thats why the button is not fully visible.

Any ideas or suggestions?  I am by far not a coder, LOL and sorry for my lack of knowledge.

Title: Re: FlashChat Integration
Post by: RSprinkel on October 06, 2007, 09:02:31 AM
also to note and this is ongoing, when I click the Home button to escape the Chat Mode, I get a pop up saying "Internal Server Error"  I have done just about everything mentioned concerning this issue here and still cannot get it to go away.  I have the dologout.php file in the /forums/ directory and on line 2 I have require_once('chat/inc/common.php');
Title: Re: FlashChat Integration
Post by: ^DooM^ on October 09, 2007, 06:40:49 AM
Quote from: Daniel15 on January 05, 2007, 04:28:47 AM
Hi everyone,
I've posted a mod that completely integrates FlashChat into SMF. You may download the mod at http://custom.simplemachines.org/mods/index.php?mod=611

Great mod Daniel15,

I can confirm this mod works perfectly with 1.1.4 and FlashChat v483, One thing you may want to add though which I had to tweak is setting this line in smfCMS2.php (Seeing as you alter that file anyway)

from
if($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;
to
if($status == 0 || ($status > 3 && $status < 99 )) return ROLE_USER;

If you have more than 9 member groups anyone in a member groupid above 9 is banned.

Thanks again for this sweet mod.
Title: Re: FlashChat Integration
Post by: Kindred on October 09, 2007, 01:26:50 PM
actually, this is something that should be modified on a user by user basis... since I have moderator groups and admin groups in group 10 and 12...
Title: Re: FlashChat Integration
Post by: ^DooM^ on October 09, 2007, 08:12:31 PM
Fair enough but I think for the most part most users would not.
Title: Re: FlashChat Integration
Post by: Kindred on October 09, 2007, 09:29:30 PM
I would say, in my experience, they do...

besides, most users belong to groups 4-9 in addition to any other groups, because groups 4-9 are post count-based.
Title: Re: FlashChat Integration
Post by: RoboO on October 09, 2007, 10:14:46 PM
Actually I had a quick question about that line of code as well-

if($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;

Is it possible to prevent people from accessing chat who do not have groups (ie. People who have just registered).  Since to my knowledge you can't specify a default group to put people in when they sign up, I just need a way to exclude those I haven't grouped yet and I think my best bet is with that piece of code.

Also how do I tell which groups are associated with those numbers?
Title: Re: FlashChat Integration
Post by: ^DooM^ on October 10, 2007, 03:12:12 AM
Quote from: Kindred on October 09, 2007, 09:29:30 PM
I would say, in my experience, they do...

besides, most users belong to groups 4-9 in addition to any other groups, because groups 4-9 are post count-based.
Yes but they are not admins are they, Never mind I was just trying to help but you seem to know better oh mighty hero.
Title: Re: FlashChat Integration
Post by: jossanaijr on October 10, 2007, 07:49:21 AM
Quote from: RoboO on October 09, 2007, 10:14:46 PMSince to my knowledge you can't specify a default group to put people in when they sign up, I just need a way to exclude those I haven't grouped yet and I think my best bet is with that piece of code.
Yes You can:
http://custom.simplemachines.org/mods/index.php?mod=819
Title: Re: FlashChat Integration
Post by: Kindred on October 10, 2007, 10:41:22 PM
Doom, using your code, every user would be put into the user category, if they belonged to a custom group... even if you had defined that group as being a special access group.
The code, as written should assign anyone in the post-count based groups to the "user" role, which means that your primary complaint (users in other groups are banned) is untrue.

Robo... you can go into smf admin, member groups. Hover over each group and look at the url...   it groupID is the number associated with "status"
(i.e. 1 = admin, 2 = global moderator, 3= moderator, 4-8=post count based groups)
Title: Re: FlashChat Integration
Post by: j9a9l on October 10, 2007, 10:59:08 PM
ok, i'm a bit of a noob when it comes to code so any help would be greatly appreciated.

I installed FlashChat into www.mydomain/smf 1.1/chat and and ran the install. Everything went through without any errors but I can only view FlashChat as a stand alone. It doesn't open up within the SMF forum...any ideas?? Thanks in advance
Title: Re: FlashChat Integration
Post by: jossanaijr on October 10, 2007, 11:06:15 PM
Quote from: j9a9l on October 10, 2007, 10:59:08 PM
ok, i'm a bit of a noob when it comes to code so any help would be greatly appreciated.

I installed FlashChat into www.mydomain/smf 1.1/chat and and ran the install. Everything went through without any errors but I can only view FlashChat as a stand alone. It doesn't open up within the SMF forum...any ideas?? Thanks in advance
Just to check.  Are you using Default Theme?  If so a "CHAT" button should appear in menubar.
Title: Re: FlashChat Integration
Post by: j9a9l on October 10, 2007, 11:07:55 PM
Quote from: jossanaijr on October 10, 2007, 11:06:15 PM
Quote from: j9a9l on October 10, 2007, 10:59:08 PM
ok, i'm a bit of a noob when it comes to code so any help would be greatly appreciated.

I installed FlashChat into www.mydomain/smf 1.1/chat and and ran the install. Everything went through without any errors but I can only view FlashChat as a stand alone. It doesn't open up within the SMF forum...any ideas?? Thanks in advance
Just to check.  Are you using Default Theme?  If so should be a "CHAT" button in menubar.

Yes, all Default & no button
Title: Re: FlashChat Integration
Post by: jossanaijr on October 10, 2007, 11:10:58 PM
If http://yourdomain.../index.php?action=chat open your chat perhaps only the button is missing.
Title: Re: FlashChat Integration
Post by: j9a9l on October 10, 2007, 11:18:00 PM
Quote from: jossanaijr on October 10, 2007, 11:10:58 PM
If http://yourdomain.../index.php?action=chat open your chat perhaps only the button is missing.

mydomain.com/_Disc/chat/index.php?action=chat  does open up the chat but it wont open up within the forum page so I can't switch back to the Forum unless I go back to the bookmark and also every time I leave the chat I always have to Log In again to enter
Title: Re: FlashChat Integration
Post by: jamesk on October 10, 2007, 11:22:00 PM
Under Admin, features and options, do you have Display chat window inside forum checked, and open chat in new window unchecked?
Title: Re: FlashChat Integration
Post by: Kindred on October 10, 2007, 11:23:56 PM
also.. you should not have spaces or periods in your site name/folder.......
Title: Re: FlashChat Integration
Post by: j9a9l on October 10, 2007, 11:27:07 PM
Quote from: jamesk on October 10, 2007, 11:22:00 PM
Under Admin, features and options, do you have Display chat window inside forum checked, and open chat in new window unchecked?

I don't have any of those options
Title: Re: FlashChat Integration
Post by: j9a9l on October 10, 2007, 11:30:00 PM
Quote from: Kindred on October 10, 2007, 11:23:56 PM
also.. you should not have spaces or periods in your site name/folder.......

I don't have any spaces or periods but I do have an underscore>>    mydomain.net/_Disc/chat/index.php?action=chat
Title: Re: FlashChat Integration
Post by: ^DooM^ on October 11, 2007, 02:49:04 AM
[
Quote from: Kindred on October 10, 2007, 10:41:22 PM
The code, as written should assign anyone in the post-count based groups to the "user" role, which means that your primary complaint (users in other groups are banned) is untrue.

No this is not untrue and I am not the only person that had the issue and un-surprisingly when altering that line they were unbanned. (Shock). Try it yourself next time before insinuating that I am lying.
Title: Re: FlashChat Integration
Post by: Kindred on October 11, 2007, 08:45:47 AM
I did not say anything about lying... merely that you were mistaken... and I did try it myself, since I have additional groups.
Prior to adding lines to make my groups 10 and 12 into admins, everyone except the main admins appeared as users... including the people in groups 9, 10, 11 and 12.

because they also were in post count based groups (3-8)
Title: Re: FlashChat Integration
Post by: Kidnap on October 12, 2007, 05:36:21 PM
I want to install Daniel15's  mod, but when I use the package manager I get an error message telling me either the file is corrupt or incompatible with SMF.  I am running SMF 1.1.4 and trying to integrate Flashchat 4.7.12

Any ideas?

TIA
Title: Re: FlashChat Integration
Post by: Kindred on October 12, 2007, 06:10:31 PM
&emulate_version=1.1.3
Title: Re: FlashChat Integration
Post by: Kidnap on October 12, 2007, 06:18:47 PM
I don't know what that means, Kindred.
Title: Re: FlashChat Integration
Post by: ^DooM^ on October 12, 2007, 08:41:49 PM
Which file is the package manager saying is corrupt or incompatible?
Title: Re: FlashChat Integration
Post by: Kidnap on October 12, 2007, 09:59:37 PM
When I try to download the Flashchat Integration Mod from the admin center of my frorum, I get this message

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF. "
Title: Re: FlashChat Integration
Post by: Kindred on October 12, 2007, 10:24:46 PM
Quote from: Kindred on October 12, 2007, 06:10:31 PM
&emulate_version=1.1.3

Don't any of you people use the search function, or even try reading some of the previous pages of this thread?

the install is not updated for 1.1.4
You can either use the emulate comand as I indicated above or you can change the install.xml to include 1.1.4
Title: Re: FlashChat Integration
Post by: j9a9l on October 13, 2007, 10:08:10 PM
Quote from: Kindred on October 12, 2007, 10:24:46 PM

Don't any of you people use the search function, or even try reading some of the previous pages of this thread?



I for one have read countless threads and articles and yet I still have the same problem from day one. It's getting really frustrating
Title: Re: FlashChat Integration
Post by: Kindred on October 13, 2007, 10:49:49 PM
If you read the thread(s) and did what you were supposed to, then there would be no problem.

1- use &emulate_version=1.1.3 (or 1.1.2 or 1.1.1, etc) When you go to install the mod, copy the install url instead of clicking on it. Then paste that url into the address bar and add &emulate_version=1.1.3 to the end of that url.

2- Open the mod archive. find Install.xml. change the install_for line to add 1.1.4. Save the file. Add the revised install.xml back into the archive. Upload the mod using the package manager.
Title: Re: FlashChat Integration
Post by: j9a9l on October 13, 2007, 11:11:39 PM
Quote from: Kindred on October 13, 2007, 10:49:49 PM
If you read the thread(s) and did what you were supposed to, then there would be no problem.

One thread showing step by step instructions with some troubleshooting tips would help or even if you had an already modified file that people could download and swap with their existing one would make life alot easier for some of us code noobs. This is a week straight that i'm trying to hunt down this info or some help so I can "do what i'm supposed to"
Title: Re: FlashChat Integration
Post by: Kindred on October 14, 2007, 07:47:36 AM
Quote from: j9a9l on October 13, 2007, 11:11:39 PM
One thread showing step by step instructions with some troubleshooting tips would help or even if you had an already modified file that people could download and swap with their existing one would make life alot easier for some of us code noobs. This is a week straight that i'm trying to hunt down this info or some help so I can "do what i'm supposed to"

Unfortunately... people don't read. They would still ask the same questions over and over and we'd still have the same responses over and over (the emulate_version statement has been mentioned at least 200 times in the last month... sometimes withing the same thread it was already discussed in)

As for modifying the file...   that is up to the mod author. If the mod author doesn't do it the moment a new version of smf is released, then we get users complaining "it doesn't work with my version" and we AGAIN, tell them to either use the emulate_version command or to change the install.xml.

Seriouslly... it's been stated hundreds of times across multiple threads.
Title: Re: FlashChat Integration
Post by: TrueSatan on October 14, 2007, 09:22:23 AM
I'm in complete agreement with Kindred on this...I tend to use stock replies and paste them in when the same questions come up again and again and again without the questioner having done a search for the answer or even bothered to read the topic where it may have already been answered countless times before. Even worse are the members who expect/demand (often in an insulting way) that those of us who try to give support here become human versions of google because they can't be bothered to search or read through a topic themselves.
Title: Re: FlashChat Integration
Post by: j9a9l on October 14, 2007, 07:18:25 PM
Kindred & TrueSatan...I'm not trying to give you a hard time and I totally appreciate and respect what you do because I know first hand what it's like to be in a Support role.
I also know what it's like to read to find some answers before asking any questions as I belong to several forums but with this particular problem I think is a little unique and have been unable to find the answers that I needed to get this issue resolved. I've posted this problem in three different forums including FlashChat and again I greatly appreciate any help and responses that I do get but unfortunately i'm still stuck in the same situation and having a Support Forum for my business website is Very important to my livelihood...Any ideas??
Title: Re: FlashChat Integration
Post by: Kindred on October 14, 2007, 07:43:01 PM
I don't understand. How can you be "stuck in the same situation"?

I have given you exact details on 2 ways to correct the "incorrect version" problems. If you are still having issues, then you obviously have something else wrong with your system...and repeating "same problem" does not help, because it is NOT the same problem.
Title: Re: FlashChat Integration
Post by: j9a9l on October 14, 2007, 08:00:59 PM
Kindred, i've only gotten one response from you as far as I know  (also.. you should not have spaces or periods in your site name/folder.......) so I renamed my folder and lost everything and had to start over. As far as the version goes, I have tried 1.13 & 1.14 with no luck.

After reading your last response I guess your (&emulate_version=1.1.3) post was for me. I thought that was for another poster

**Search for:  &emulate_version=1.1.3

**No results found

There's a shocker...

Title: Re: FlashChat Integration
Post by: TrueSatan on October 14, 2007, 08:56:10 PM
The way emulate version works is that you go to the SMF mods site and find the page for the mod you wish to use...or go to the first post in the support topic for it here where a link will be found. From that page you will find the last SMF version that the mod supports. This mod supports SMF 1.1.3 thus that is the last version in this instance. You would then, as Kindred has told you, add  &emulate_version=1.1.3 to the end of the package manager url in your forum. By this we mean use the ACP>Packages>Download browse to the package and then add the &emulate_version=1.1.3 to the URL prior to downloading the package into your forum.

As Kindred has told you if this fails to work it is because your forum is damaged...the system we are telling you to use does work and it is indeed mentioned in countless posts in these support forums...I dread to think how many times the two of us must have posted about it. Search for "emulate_version" sans quotes.

If you have followed these directions the mod will download into your forum without further  issues though to install it you will need to read and follow the directions appropriate to this mod...see the directions in the first post in this topic and the many repeats of them in subsequent pages.
Title: Re: FlashChat Integration
Post by: AcidBoyPT on October 15, 2007, 07:54:09 AM
To me it gives me this error:

12.     ./chat/inc/flashChatTag.php     File not found
13.    ./chat/inc/cmses/smfCMS2.php    File not found

And if it's installed i cannot access the forum,it gives me this erros:

Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 38 bytes) in /home/acid/public_html/forum/Sources/Subs-Charset.php on line 564


Can anybody help me? :S
Title: Re: FlashChat Integration
Post by: Kindred on October 15, 2007, 08:28:31 AM
if you have errors, then don't complete the install.... otherwise you will have problems (obviously)

As for the first bit...   that suggests that you do not have flashchat installed in a subdirectory to SMF (i.e. smf/chat)
Title: Re: FlashChat Integration
Post by: j9a9l on October 15, 2007, 06:31:31 PM
That's the exact info I needed TrueSatan. Thank you! You are the man!!

I did have a corupt file by the way  ::)
Title: Re: FlashChat Integration
Post by: Harvester on October 15, 2007, 08:44:27 PM
How come it doesnt install in any theme but the default?
I have a theme that is a slightly modified version of the default theme and I want to install the chat integration but it only installed in the default theme. I cant find instructions on installing it manually. Please help?
Title: Re: FlashChat Integration
Post by: TrueSatan on October 15, 2007, 09:18:21 PM
Almost all mods only install into the default theme...that is entirely normal. You need to manually edit this mod, and almost all other mods, into any custom theme or themes that you use.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: FlashChat Integration
Post by: wk38 on November 01, 2007, 11:02:19 AM
Ok, let's see if I can explain this correctly. I had SMF and the FC mod installed and working great. We ran into some pretty severe speed issues on our shared server so I uninstalled a few of my mods and other graphical stuff to see if I could keep things limping along until we moved to our dedicated server.

We are up on new server and I went to reinstall the FC mod 1.0 and it installed perfectly. The way I used to fire it off was this link.
When you hit my link you get nothing, it takes you back to the forum index.

You can get to it this way but you have to FC's login.


I tried to uninstall the mod to start over and it shows a fail on every single file. In SMF admin, features and options, I don't appear to have any FC settings.

Can someone help me out with what to do next?
Title: Re: FlashChat Integration
Post by: brianjw on November 01, 2007, 05:27:44 PM
Sounds to me like there were errors but it didn't say there were any... That's why there are ups and downs to the package manager.

1. Unzip the mod zipfile and open up the xml file (OTHER THAN package-info.xml) and uninstall the mod manually, placing back what used to be there. The mod parser posted by True Satan above might help, just look at the edits backwards.

2. After you have done #1, install it manually and that is originally what the mod-parser is for, but if you know how to understand the xml file, go for it. Just make a backup of your forum before making the edits. ;)

brianjw
Title: Re: FlashChat Integration
Post by: Kirsten07734 on November 04, 2007, 12:14:23 PM
Re:  some members being banned from chat when they haven't been banned by admin or moderator

There's a little kink.  Anyone with a primary member group, any primary member group other than admin or global moderator (groups 1 and 2 respectively), gets banned from FlashChat.  This happens even if they are also in a post-count based group.  The mere existance of a primary member group (other than group 1 or 2) screws them up for chat. 

Those in member group 1 are assigned as admins in the chat.  Those in member group 2 are assigned as moderators in the chat.

A non-coder solution is to simply remove all primary member groups (except admin and global mod) and put all member groups to which a member belongs as secondary member groups.  The headache, of course, is that when you add a list of people to a group and they don't already have a primary member group, that new group is made their new primary.

You can change each individual member's member groups from their profile.

I haven't a clue how to fix it with code.
Title: Re: FlashChat Integration
Post by: Kindred on November 04, 2007, 04:40:22 PM
??? 

You really must have some very odd setups. I installed Flashchat with (no changes) with absolutely no problems on a standard installation of SMF.

I have since made a few updated to the smfcms2.php file...   but that is it.

And my users all have a primary member group...
Title: Re: FlashChat Integration
Post by: TrueSatan on November 05, 2007, 04:30:06 AM
 As per usual Kindred is right (stop that gloating and smirking) if your forum is as off from what it ought to be as you describe then your best plan may be to start afresh with a new set of files. This isn't as difficult as it may sound.

Backup all your forum files and database...always do that before making changes. Don't remove or overwrite your Attachmants directory or your Settings.php or Settings_bak.php files in your forum root...get a copy of the SMF 1.1.4 install package and unpack the archive...look at the files and directories in it. Replace all those files and directories with new ones from the package...and all the files in the directories.

Having done this you will need to re-install all your mods, themes and edits but you will have a fresh file system and are likely to have killed off your glitch (and others which from the sound of it would be likely to be there if your forum were as out of kilter as it appears to have been.)
Title: Re: FlashChat Integration
Post by: Chopper on November 13, 2007, 02:16:25 PM
Hi,

On install i receive this error message :


Installing this package will perform the following actions:  Type Action Description
1. Extract File ./Sources/Chat.php 
2. Extract File /mounted-storage./Themes/default/Chat.template.php 
3. Extract File ./dologout.php 
4. Execute Modification ./index.php Test successful
5. Execute Modification ./SSI.php Test successful
6. Execute Modification ./Sources/ModSettings.php Test successful
7. Execute Modification ./Sources/Subs.php Test successful
8. Execute Modification /mounted-storage./Themes/default/BoardIndex.template.php Test successful
9. Execute Modification /mounted-storage./Themes/default/index.template.php Test successful
10. Execute Modification /mounted-storage./Themes/default/languages/Modifications.english.php Test successful
11. Execute Modification /mounted-storage./Themes/default/languages/Help.english.php Test successful
12. Execute Modification ./chat/inc/flashChatTag.php File not found
13. Execute Modification ./chat/inc/cmses/smfCMS2.php File not found
14. Execute Code add_settings.php


It stronlgy advises me not to go ahead with install. How do i get it working?

Thanks
Title: Re: FlashChat Integration
Post by: TrueSatan on November 13, 2007, 02:52:54 PM
Please consider using the search function before posting as this query has been answered countless times. You need to purchase Flash Chat and install it to use this integration mod!
Title: Re: FlashChat Integration
Post by: Chopper on November 13, 2007, 03:10:22 PM
oooooppppppssssss! :-[
Title: Re: FlashChat Integration
Post by: Froggy on November 22, 2007, 04:46:24 PM
I'm just now trying to install flashchat on a Joomla website

and its asking for my SQL db name, user and password

where do I find these ? in my cpanel

* I do not have a messageboard installed (yet) * no login

doing flashchat first 

The website is for an injured US Army soldier >>> Link (http://www.supportlouis.com/php)

I may need a little help here :)

Title: Re: FlashChat Integration
Post by: TrueSatan on November 22, 2007, 05:26:39 PM
Please ask whomever set up the website to give you the details you require, this person should be able to give you an answer...N.B. the Joomla/SMF bridge is no longer available and will not become available again.
Title: Re: FlashChat Integration
Post by: Kindred on November 22, 2007, 05:50:03 PM
If you are linking flashchat to your forum, you need to have the forum installed FIRST.

If you are installing flashchat in Joomla, then ask on the flashchat or joomla support sites.
Title: Re: FlashChat Integration
Post by: woolly bugger on November 23, 2007, 03:36:30 PM
I've just moved my whole forum and flashchat to a new server..

I reinstalled flashchat and now the "chat" button on the SMF is giving me the following error:

Fatal error: Cannot redeclare reloadsettings() (previously declared in /home/blueri7/public_html/forum/Sources/Load.php:140) in /home/blueri7/public_html/forum/Sources/Load.php on line 342

Any help on this would be appreciated!
Title: Re: FlashChat Integration
Post by: TrueSatan on November 23, 2007, 04:33:10 PM
You appear to have the mod installed twice over and will thus need to go through the files it affects removing duplicate entries caused by this mods edits.
Title: Re: FlashChat Integration
Post by: woolly bugger on November 23, 2007, 05:44:26 PM
Quote from: TrueSatan on November 23, 2007, 04:33:10 PM
You appear to have the mod installed twice over and will thus need to go through the files it affects removing duplicate entries caused by this mods edits.

D@mn, I hate it when that happens.... i've been looking around and can't locate the problem, might just have to re-install a clean copy.....
Title: Re: FlashChat Integration
Post by: TrueSatan on November 23, 2007, 05:52:00 PM
It may be the easiest way...annoying as it is.
Title: Re: FlashChat Integration
Post by: tsmalmbe on November 29, 2007, 06:59:23 PM
Any idea how I can remove a room? How can I disable a user from creaeting new rooms?
Title: Re: FlashChat Integration
Post by: Kindred on November 30, 2007, 12:56:43 PM
you should ask flashchat specific questions over on flashchat support.

but you create new rooms from the flashchat admin and you modify the abilities of users in the user file...
Title: Re : FlashChat Integration
Post by: tsmalmbe on November 30, 2007, 04:18:39 PM
Thanks, exactly the pointers I needed!
Title: Re: FlashChat Integration
Post by: Daniel15 on December 02, 2007, 10:37:24 PM
Hi everyone,
Sorry, but it's hard for me to keep up with all the support questions being asked in this topic. If you require support on my FlashChat integration mod, please post to my forums at http://www.daniel15.com/. Having a topic per support issue allows me to manage them all a lot better.

Now, the most common error. For anyone getting this:
Quote12.     ./chat/inc/flashChatTag.php     File not found
13.    ./chat/inc/cmses/smfCMS2.php    File not found
Make sure that you have already installed FlashChat, and that it is in a "chat" directory inside your forum's directory.

For any issues relating to FlashChat itself, please post at tufat.com for support. I'm not responsible for FlashChat itself, only issues pertaining to this mod (eg. "Chat" menu button, installation of the mod, displaying of users in chat on the board index, etc.)

Thanks guys :)
Title: Re: FlashChat Integration
Post by: tsmalmbe on December 05, 2007, 06:02:05 AM
All my special characters in my usernames (åäöÅÄÖ - scandics) are messed up really bad. Is this an issue with the integration, or with flashchat itself?
Title: Re: FlashChat Integration
Post by: muise on December 06, 2007, 06:49:20 PM
Hi,

I have been working on this all day but now i am having an issue.  I am using the lastest version of smf and flashchat.  everything installed perfectly but I am having an issue.  I am not seeing anything in the admin side of smf to do any of the setting.  I mean I see the tick boxes and they are where they are supposed to be but there is no text before them so I have no idea what is what.  Any idea how to fix this?

Thanks

sorry I forgot to add.  I am using the "Outline" theme for my forum/
Title: Re: FlashChat Integration
Post by: Kindred on December 06, 2007, 10:06:34 PM
are you running in english? (not english utf-8)
Title: Re: FlashChat Integration
Post by: TrueSatan on December 07, 2007, 07:03:03 AM
If you switch to the SMF default theme do you then see the menus and does the mod work as it should...if so then you would appear not to have manually installed into your custom theme as you need to do with almost all mods.
Title: Re: FlashChat Integration
Post by: lyricalambitions on December 10, 2007, 07:31:39 AM
This mod passed all tests and seemingly installed fine through the package manager, but I have no chat button and 'In features and options' in the admin area of my smf forum, everything is blank except the check boxes, 100%, and 600. Yes, flash chat was integrated in my 1.1.4 smf forum, and yes, it works. Perhaps i didn't put it in the right folders? path is forum/chat/flashchat.php. I moved the chat folder out of the zipped flashchat folder and uploaded it directly to the forum folder. i moved the src folder and uploaded it into the chat folder all via FileZilla FTP client. Could any of this be the problem? Also, I am using the default theme. Here's my site:  http://lyricalambitions.com/forum/chat/flashchat.php

Thanks for any help you can give me...
Title: Re: FlashChat Integration
Post by: Kindred on December 10, 2007, 08:23:17 AM
Are you using the default theme? Are you running in English (not engligh-utf8)?
Title: Re: FlashChat Integration
Post by: wilsy on December 10, 2007, 01:01:20 PM
Hi all,

I have had FlashChat installed and integrated fine for ages. I didnt notice when this started but I have realised that all of a sudden its gone down - the Flashchat itself that is. I'm now getting this error: -

Fatal error: Call to undefined function log_error() in /home/rewindla/public_html/forum/Sources/Load.php on line 1617

at

http://rewindlancs.com/forum/chat/flashchat.php

I'm assuming that something is conflicting (one of the mods I've installed probably!) with how the FlashChat is integrated with my SMF userbase. Does anybody have an idea where I would start? I know it may also be prudent to ask over at Tufat but this one really is right on the fence in terms of the best place to ask the question :)

Regards,

Wilsy.
Title: Re: FlashChat Integration
Post by: lyricalambitions on December 10, 2007, 05:14:38 PM
Quote from: Kindred on December 10, 2007, 08:23:17 AM
Are you using the default theme? Are you running in English (not engligh-utf8)?
I was using the default them, but I was also using English-utf8. Upon switching to English, everything now works perfectly. Thank you so much!
Title: Re: FlashChat Integration
Post by: muise on December 12, 2007, 08:44:29 AM
ok finally got it working to show up in the admin side.  But I am still having an issue.  I have no idea how to manually edit my current theme (Outline) to make a button show up or the stats on the bottom.  Any and all help would be appreciated.

Thanks
Title: Re: FlashChat Integration
Post by: Kindred on December 12, 2007, 01:01:24 PM
try the mod parser at sleepycode.com
Title: Re: FlashChat Integration
Post by: tsmalmbe on December 12, 2007, 05:16:22 PM
Quote from: Kindred on December 06, 2007, 10:06:34 PM
are you running in english? (not english utf-8)

I'm running UTF-8, as that is the only way to get the ÄÖÅåäö to work properly in the forum.
Title: Re: FlashChat Integration
Post by: Kindred on December 12, 2007, 05:19:40 PM
well, that's your problem then...  the mod only installs into modifications.english.php... add the phrases into your language modifications file
Title: Re: FlashChat Integration
Post by: Fallen Angel on December 12, 2007, 05:53:47 PM
I use FlashChat and danish characters like ÆØÅæøå with out any problems at all.. When u setup FlashChat i think it ask what langue you want to use.. I set mine to danish.... No problems....
Title: Re: FlashChat Integration
Post by: Kindred on December 12, 2007, 08:17:06 PM
Of course there is no problem in flahschat...   however, the *MOD* here only installs in English...   (not english UTF-8 either) which means you will have blank buttons/fields until you add the strings into the file for your language.
Title: Re: FlashChat Integration
Post by: wilsy on December 13, 2007, 03:38:18 AM
Quote from: wilsy on December 10, 2007, 01:01:20 PM
Hi all,

I have had FlashChat installed and integrated fine for ages. I didnt notice when this started but I have realised that all of a sudden its gone down - the Flashchat itself that is. I'm now getting this error: -

Fatal error: Call to undefined function log_error() in /home/rewindla/public_html/forum/Sources/Load.php on line 1617

at

http://rewindlancs.com/forum/chat/flashchat.php

I'm assuming that something is conflicting (one of the mods I've installed probably!) with how the FlashChat is integrated with my SMF userbase. Does anybody have an idea where I would start? I know it may also be prudent to ask over at Tufat but this one really is right on the fence in terms of the best place to ask the question :)

Regards,

Wilsy.

Hi all,

Apologies for the gentle bump but I'm absolutely stuck with this one and desperately need to get the chat back up and running.

Can anybody help

Regards,

Wilsy.
Title: Re: FlashChat Integration
Post by: tsmalmbe on December 13, 2007, 09:34:14 AM
The problem is not in any languagefiles. I never said or claimed that, even indicated that in any way. I didn't say that the scandics did not work in flashchat either. What I said was, that usernames containing scandics, end up garbled in  flashchat. Yes, I installed flashchat with the language i prefer (swedish), but that didn't help.

And to you, "Hero and Specialist", before you start pointing out my problems (which I am aware of already, otherwise I wouldn't have posted here), I would suggest you read the question at hand before answering. Of course it is MY problem! I don't see any special Heroism nor Specialism in being rude. If you have a bad day (which we all occasionally have), just do something else for awhile and come back when in a better mood. Sadly, you probably even know the answer but you rather imbessilice me than help me. For some peculiar reason. All the best though.
Title: Re: FlashChat Integration
Post by: Kindred on December 13, 2007, 10:59:25 AM
I beg your pardon?

I was not at all rude....  and I'm not even sure how you could read rudeness into my post. However, *YOUR* original question was not very clear... nowhere did you specifically indicate that the problem was garbelled characters IN flashchat...  and since this is a thread to discuss issues with the flashchat *MOD*, not flashchat itself, my statement seems to be quite in line with a question on why the *MOD* would not be working. If you have questions about flashchat itself, please ask them on the tufat support boards...  (as has been stated a number of times in this thread)

That being said, and completely ignoring your uncalled for insult to me.
Your problem is that you probably did not:
a) set up your DATABASE to use UTF-8
b) set up your flashchat to use UTF-8
Title: Re: FlashChat Integration
Post by: wilsy on December 13, 2007, 11:07:54 AM
Hi Kindred,

I couldn't see that there was an issue in your responses and totally failed to see how someone could feel that way about somebody trying to help them?

I can only assume that it's borne out of frustration after long nights at the PC trying to resolve a problem - we've all been there ;)

Regards,

Wilsy.
Title: Re: FlashChat Integration
Post by: TrueSatan on December 13, 2007, 11:22:10 AM
Frankly the more you post here, or on most any support forum really, trying to help people the more you can be certain that from time to time you'll get responces like the one, unjustly, directed at Kindred...but what goes around comes around as they say and rudeness given in responce to help tends to make further help unlikely to say the least.

All the same my sympathies to Kindred...none of us need that kind of aggravation.
Title: Re: FlashChat Integration
Post by: daveb47 on December 13, 2007, 02:00:33 PM
Managed to get it working on my board using Movies07 theme,Only part i havnt bothered with is in chat on Menu.

http://trashgordon.com



Title: Re: FlashChat Integration
Post by: TrueSatan on December 13, 2007, 02:11:40 PM
The following link refers to official SMF documentation regarding adding nav bar links:

http://docs.simplemachines.org/index.php?topic=564.0 (http://docs.simplemachines.org/index.php?topic=564.0)

You can also refer to the Package Parser to see the code used to add the link to the SMF Default theme as a guide.
Title: Re: FlashChat Integration
Post by: mcapozza2 on December 13, 2007, 10:34:10 PM
Hi - I installed Flashchat and also the Flashchat integration MOD.
Flashchat is integrated into my SMF 1.14 Forum perfectly and it works perfectly.
Mu users are chatting away like crazy.
BUT I can't seem to access the Flashchat Admin Panel Tools.
I bring the Flashchat Admin page up (which is no problem)
I log into it which seems to be no problem and I see this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.kar21.com%2Fimages%2Ffchat.jpg&hash=c374adbeea9ddf89b4d381d41e99b1b3621319de)
Which I believe is correct - MY Problem is that when I click on any of the links (Home, Messages, Chats, etc) Nothing happens - I just get sent back to the admin login page again.
Please help - I know it is accepting my credential as a admin because I tried a regular user login and it told me they didn't have admin rights - with my login I get sent to the page above.

Help Appreciated.


Title: Re: FlashChat Integration
Post by: TrueSatan on December 14, 2007, 04:44:04 AM
I'm sorry but we really can't help you with queries relating to FlashChat itself as we only deal with the integration module here...you'll need to ask the FlashChat developer(s) themselves to get the issues you've mentioned resolved.
Title: Re: FlashChat Integration
Post by: wilsy on December 15, 2007, 05:20:40 AM
Quote from: wilsy on December 10, 2007, 01:01:20 PM
Hi all,

I have had FlashChat installed and integrated fine for ages. I didnt notice when this started but I have realised that all of a sudden its gone down - the Flashchat itself that is. I'm now getting this error: -

Fatal error: Call to undefined function log_error() in /home/rewindla/public_html/forum/Sources/Load.php on line 1617

at

http://rewindlancs.com/forum/chat/flashchat.php

I'm assuming that something is conflicting (one of the mods I've installed probably!) with how the FlashChat is integrated with my SMF userbase. Does anybody have an idea where I would start? I know it may also be prudent to ask over at Tufat but this one really is right on the fence in terms of the best place to ask the question :)

Regards,

Wilsy.

Hi all,

I have the chat back up and running by commenting out these lines from load.php

// That couldn't be found!  Log the error, but *try* to continue normally.
// if (!isset($language_url))
/// {
// if ($fatal)
// log_error(sprintf($txt['theme_language_error'], $template_name . '.' . $lang));
// return false;
// }

// if ($db_show_debug === true)
// $context['debug']['language_files'][] = $template_name . '.' . $lang . ' (' . basename($language_url) . ')';


All seems fine - is this going to cause me problems elsewhere?

Regards,

Wilsy.
Title: Re: FlashChat Integration
Post by: Kindred on December 15, 2007, 08:23:26 AM
yes...   randomly commenting out lines of code is not the way to fix errors....   errors usually indicate some problem that you need to fix... not just remove the code that generates the error.

from the lines of code, it looks like you have some problems with the languages...
Title: Re: FlashChat Integration
Post by: wilsy on December 15, 2007, 09:39:01 AM
Thanks Kindred,

I only use the default English language on my forum - are you able to help with solving the problem?

Regards,

Wilsy.
Title: Re: FlashChat Integration
Post by: Kindred on December 15, 2007, 11:53:50 AM
it looks like something that you did to your system removed the log_error function...

//   if (!isset($language_url))
///   {
//      if ($fatal)

however, the only way you GET to that function call is to have a fatal error regarding the language set...

I would suggest loading a fresh set of 1.1.4 SMF files (yes, this will remove all mods that you have installed) and then try installing mods one at a time.
Title: Re: FlashChat Integration
Post by: gtrilo on December 20, 2007, 01:49:50 AM
Quote from: lyricalambitions on December 10, 2007, 05:14:38 PM
Quote from: Kindred on December 10, 2007, 08:23:17 AM
Are you using the default theme? Are you running in English (not engligh-utf8)?
I was using the default them, but I was also using English-utf8. Upon switching to English, everything now works perfectly. Thank you so much!

Where exactly are you switching this at??? I believe I have the same issue but could you be more specific as to if is smf, the database, or flashchat in where you changed it and how?

EDIT: AW Heck...I did not realize that I was not using the default template!! DOH!  Works now..
Title: Re: FlashChat Integration
Post by: azxure on December 21, 2007, 01:22:59 PM
I am running 1.1.4 bridged with Joomla. I have no problem getting into chat, it's working fine. My board is not displaying any text.

I've tried copying the language files from the modification lang file to the index one (as suggested on Daniel's site) and it did not work for me.

I manually checked to see if all the edits were indeed made, and they were (I did use the auto-install and really had no doubt).

I saw that moving the lang files to the index file worked for others, but it is not working for me.

I used this successfully in the past (over a year ago), I'd love to get it working again now.

Any suggestions?


I want to add:

When I am in the chat room, the page does display X user in the nav bar and it displays the user names at the top of the page. It's only not pulling the txt files from the language file.


It was an ID10T error. 

If you have this problem, make sure you are set to use the language file you edited.  Yah. That's all.
Title: Re: FlashChat Integration
Post by: TEOC2 on December 23, 2007, 12:27:16 PM
Is there a way to allow only certain member groups from joining the chat?

I cant see anything in permissions.
Title: Re: FlashChat Integration
Post by: Kindred on December 24, 2007, 11:05:31 PM
This mod does nothing with permissions....   so while the answer to your question is, yes...   you can stop certain member groups form accessing chat...   your can not do so with this mod.

You would have to modify the smfCMS2.php file to mark the usergroup IDs as "banned" rather than "users"
Title: Re: FlashChat Integration
Post by: alisoncc on December 25, 2007, 02:33:05 PM
New install of Flashchat and integration mod. Everything works fine, except Users have to access it via ...../chat/flashchat.php link as no button/menu selection available. Using standard Babylon theme.

Tried following after [The Calendar]

   // FlashChat!
   global $modSettings;
   if ($context['user']['is_logged'])
      echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt[' fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
            </td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


And got a mass of errors. Suggestions appreciated.

Alison
Title: Re: FlashChat Integration
Post by: TrueSatan on December 25, 2007, 04:44:01 PM
There won't be auto installed theme edits to add menu/nav buttons as you aren't using the SMF Default theme...you need to manually edit your custom theme (any theme other than SMF Default is a custom theme.) Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: FlashChat Integration
Post by: alisoncc on December 25, 2007, 05:51:40 PM
Been there done, done that. Stating the obvious does little for your street cred love. Community support for open source software is what it's all about.

Given the wide diversity of themes currently available, it would be nice if more thought was given to the manual integration of mods. Babylon isn't some esoteric homebrew, and having spent eight hours trying to get the integration to work with a stock standard theme leaves me more than a little frustrated.

Alison
Title: Re: FlashChat Integration
Post by: TrueSatan on December 25, 2007, 06:02:09 PM
Your rudeness when given help ensures that you'll have none from me in future. Mods are only required to support the SMF Default theme.
Title: Re: FlashChat Integration
Post by: Kindred on December 25, 2007, 06:26:55 PM
Quote from: accweb on December 25, 2007, 05:51:40 PM
Community support for open source software is what it's all about.

Indeed... and you got excellent support from TrueSatan.

Themes other than the default will require some manual installation of mods...  it's been said 18 million times, in every mod thread... And the default theme for 1.1 uses tables and classes to do the buttons, while Babylon (and other themes) use images.
It is assumed (perhaps incorrectly) that people are not going to blindly just paste code in and hope it works... especially if they don't find code that matches the "paste location".
In this case, I suggest you READ some of the documentation that we have been so good as to assemble and realize that you will have to take a copy of one of the other buttons of your theme and modify it to work for FlashChat. In other words, before you going copping an attitude, perhaps you could try to learn from what you have been told.

As for mod installtion on other themes, it has been addressed in SMF 2.0... but it still won't be able to do "everything" and may still require manual installation. It's one of the hazards of the comprehenssive and flexible theming system that SMF uses.
Title: Re: FlashChat Integration
Post by: alisoncc on December 25, 2007, 09:44:10 PM
Quote from: Kindred on December 25, 2007, 06:26:55 PM
Quote from: accweb on December 25, 2007, 05:51:40 PM
Community support for open source software is what it's all about.

Indeed... and you got excellent support from TrueSatan.

Negative. Perhaps some may see the forums as a first resort when meeting difficulties. But for others it's an unwarranted assumption. The fact that I listed the code from the XML would indicate to most that some attempt has been made to resolve the problem before hand.

Providing pointers to basic manual install threads when it should be readily apparent that that route has already been assessed and found deficient, is more an indication of someone who is more interested in proving their own limited knowledge than providing genuine support.

Alison
Title: Re: FlashChat Integration
Post by: TrueSatan on December 26, 2007, 05:43:51 AM
 Your attacks say a great deal more about you than about me or anyone else. Merry Xmas!
Title: Re: FlashChat Integration
Post by: wilsy on December 26, 2007, 07:32:22 AM
Quote from: accweb on December 25, 2007, 09:44:10 PM
Quote from: Kindred on December 25, 2007, 06:26:55 PM
Quote from: accweb on December 25, 2007, 05:51:40 PM
Community support for open source software is what it's all about.

Indeed... and you got excellent support from TrueSatan.

Negative. Perhaps some may see the forums as a first resort when meeting difficulties. But for others it's an unwarranted assumption. The fact that I listed the code from the XML would indicate to most that some attempt has been made to resolve the problem before hand.

Providing pointers to basic manual install threads when it should be readily apparent that that route has already been assessed and found deficient, is more an indication of someone who is more interested in proving their own limited knowledge than providing genuine support.

Alison


Oh dear, oh dear. Alison, I think that you should pay for a developer rather than be rude to the people who give their time freely on here to help others ....at Christmas time too!

I hope that others take Truesatan's lead and decide to leave you to your own devices.

I wont be as gracious as Truesatan by wishing you the seasons greetings!

Wilsy.
Title: Re: FlashChat Integration
Post by: alisoncc on December 26, 2007, 07:28:51 PM
Can I recommend the following mod "Chatroom Button" by Jake1981.

http://custom.simplemachines.org/mods/index.php?mod=827 (http://custom.simplemachines.org/mods/index.php?mod=827)

It's a modified version of his Website Button. All you need to do is add the URL of the PHP file for it to work with FlashChat on the Babylon theme.

Alison
Title: Re: FlashChat Integration
Post by: tsmalmbe on December 29, 2007, 12:48:35 PM
Quote from: Kindred on December 13, 2007, 10:59:25 AM
I was not at all rude....  and I'm not even sure how you could read rudeness into my post. However, *YOUR* original question was not very clear... nowhere did you specifically indicate that the problem was garbelled characters IN

OK. Pardon on my behalf. I DID read your post several times, and I did find it very rude. But I can see now that by putting emphasis on words in different ways, your post can either be very rude or indeed the total opposite.  Well, let's put that behind us.

Quote from: Kindred on December 13, 2007, 10:59:25 AM
flashchat...  and since this is a thread to discuss issues with the flashchat *MOD*, not flashchat itself, my statement seems to be quite in line with a question on why the *MOD* would not be working. If you have questions about flashchat itself, please ask them on the tufat support boards...  (as has been stated a number of times in this thread)

That being said, and completely ignoring your uncalled for insult to me.
Your problem is that you probably did not:
a) set up your DATABASE to use UTF-8
b) set up your flashchat to use UTF-8

My original intent was to try to find out whether the problem was in the forum or in the chat. This is still unclear.  The symptom of the illness is in the chat, that is very clear, but I have no idea where the actual problem is.

a) I have setup my database as UTF-8, otherwise my special characters would not show in my forum at all (tested that)
b) I have setup my chat to use UTF-8 (the setup file has only one place where UTF-8 is mentioned)

As far as b goes, I guess it only has to do with what you write in the chat. That works 100% OK.

So to be as clear as possible: if special characters in my usernames are garbled, and all special characters in the chat itself are displayed ok and both a) and b) are as I said above, would the problem be in the userdatabase in the forum, or in the way flashchat handles usernames?

I do realize this is not a flashchat support forum, but before ai register there for support, I would like to have some expert opinions on all possibilities.

And pardon once more for seriously misreading your previous post.
Title: Re: FlashChat Integration
Post by: wilsy on December 29, 2007, 05:10:45 PM
QuoteAnd pardon once more for seriously misreading your previous post.

Translated: "I need your help again so i'd better be nice to you."  :-X

Regards,

Wilsy.
Title: Re: FlashChat Integration
Post by: Kindred on December 29, 2007, 06:03:21 PM
If the usernames are OK in SMF, then it's something in the convert between systems, because FlashChat, when integrated uses the SMF smf_members table.
Title: Re: FlashChat Integration
Post by: TrueSatan on January 02, 2008, 04:44:15 AM
Presumably both your SMF database and FlashChat are set to se utf8...given that the SMF input is only in the form of usernames and the members table yours would appear to be a FlashChat issue and should be taken up on the FlashChat support forum...this topic is only for support of the SMF integration mod not FlashChat itself.
Title: Re: FlashChat Integration
Post by: tsmalmbe on January 04, 2008, 04:20:20 AM
Quote from: wilsy on December 29, 2007, 05:10:45 PM
QuoteAnd pardon once more for seriously misreading your previous post.

Translated: "I need your help again so i'd better be nice to you."  :-X

Money was not an option.
Title: Re: FlashChat Integration
Post by: TrueSatan on January 04, 2008, 04:34:24 AM
Quote from: tsmalmbe on January 04, 2008, 04:20:20 AM
Quote from: wilsy on December 29, 2007, 05:10:45 PM
QuoteAnd pardon once more for seriously misreading your previous post.

Translated: "I need your help again so i'd better be nice to you."  :-X

Money was not an option.

The "Law of holes" applies...."When you're in one, stop digging!"
Title: Re: FlashChat Integration
Post by: Ambasador on January 19, 2008, 02:24:15 AM
Dunno if this is the right place to ask, but I'll do it also on tufat: A forum user has a 15 characters long nick, which isn't a problem for SMF, but flash chat seems to allow only 12 (at least integrated with SMF) for regular members and no limits for admins. Same with the password.
I've tried searching both the database and the files of the chat, but haven't found where the problem is. Had anyone else had these problems?
Title: Re: FlashChat Integration
Post by: LadyC on January 28, 2008, 04:58:40 PM
i have installed this and it works great.... but i have a question.

when i set it to show who's chatting at the top of the page, it does so right next to the "total time logged in" instead of under it.

is there a way that i can move it UNDER the time logged in? (or better yet, is there a way i can just totally get rid of the time logged in? it's never correct anyway!)
Title: Re: FlashChat Integration
Post by: brianjw on February 01, 2008, 08:33:11 PM
Removing the Total time logged in is easy. Although I am not in front of a computer that I can tell you what code it is currently. It would take editing the index.template.php files of which you want to move the total time logged in. When I get in front of a computer and remember - I will see if I can post the code to remove out of the index.template.php.
Title: Re: FlashChat Integration
Post by: Miyagi on February 01, 2008, 11:51:59 PM
Quote from: hvyhitter on August 31, 2007, 12:01:30 AM
I am searching for flashchat and banned and I am coming up with nothing..

I am running the latest flashchat mod and version 1.1.3

its the same problem as this guy.. who got drowned out by the guy without backups
http://www.simplemachines.org/community/index.php?topic=139769.msg1214496#msg1214496

ok..

If you are using SMF 1.1.3 and flashchat and using the FLASHCHAT MOD FOR SMF and you get above 9 member groups.. when you ASSIGN someone to a member group that is GREATER than 9 it will tell that user and any user in that membergroup that they are BANNED and cannot use flash chat.. its silly that they limit you to 9 membergroups.. but the fix I just pieced together from like 4 different threads all saying somehting.. but nothing the same

here it is..

FIRST..

find this folder

%smf-root%\%chat%\inc\cmses

whatever you named the Flashchat directory is %chat% and
whatever your root name of SMF is is %smf-root%

go into that folder and find on line 58 this

if($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;

see that 9 in the middle there.. THAT is what is preventing every membergroup that you have in SMF from getting into chat. go ahead change that number to 99 so it looks like this

if($status == 0 || ($status > 3 && $status < 99 )) return ROLE_USER;

save your file.. and BOOM it starts working again.

I hope this answer meets your needs.. and is search engine friendly enough that people having this issue with

flashchat MOD
BANNED
BAN
whtever.. hope they find this and it answers their question as detailed as possible.

Mine is working 100% now.

AWESOME --- FIXED MY PROBLEM.

Also note the actual file you need to amend is smfCMS2.php in the directory specified above. :)

Cheers,
Miyagi
Title: Re: FlashChat Integration
Post by: LadyC on February 02, 2008, 12:40:05 AM
found it, thanks :)
Title: Re: FlashChat Integration
Post by: shumar on February 04, 2008, 07:09:07 PM
I have SMF 1.1.4.
How to change so RealName is showed, not LoginName ?
Is that possible ?

Thank you.
Title: Re: FlashChat Integration
Post by: Kindred on February 04, 2008, 07:20:36 PM
modify smfcms2.php in flashchat
Title: Re: FlashChat Integration
Post by: Daniel15 on February 04, 2008, 10:14:08 PM
Note that I only provide support for the integration mod, and problems with it (most notably, the displaying of users in the chat on the forum index). For any problems related to FlashChat itself (eg. any modifications to smfcms2.php, user permissions, etc), please ask on tufat.com.
Title: Re: FlashChat Integration
Post by: shumar on February 05, 2008, 05:27:01 AM
Hm...
I ask question there, and they say to come here. LOL...
It's like tennis. :)
I will try Kindred solution.

Thank you.
Title: Re: FlashChat Integration
Post by: tsmalmbe on February 05, 2008, 08:03:03 AM
Regarding the nonworking scandics (and other exotics):

http://forum.tufat.com/showpost.php?p=124030&postcount=30 :

Add into /inc/classes/db.php


mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER SET utf8");
mysql_query("SET COLLATION_CONNECTION = 'utf8_general_ci'");


below


$GLOBALS['fc_config']['db']['user'], $GLOBALS['fc_config']['db']['pass']);



Then log out from the forum, and log in again. Did it for me.
Title: Re: FlashChat Integration
Post by: shumar on February 05, 2008, 07:21:18 PM
Quote from: Kindred on February 04, 2008, 07:20:36 PM
modify smfcms2.php in flashchat
Can you help me again ?
Which part I need to change ?
Title: Re: FlashChat Integration
Post by: Kindred on February 05, 2008, 08:07:56 PM
I suggest you ask over on tufat....   I think I even have a sticky over there that tells the code to modify
Title: Re: FlashChat Integration
Post by: 1.1.4 User on February 09, 2008, 11:35:37 AM
The chat installer does not integrate with 1.1.4. I get an error as follows.


FlashChat was unable to detect your MySQL login setting from the Simple Machines 1.1 configuration file.

I don't know what to do next.
Title: Re: FlashChat Integration
Post by: Kindred on February 09, 2008, 12:12:01 PM
it worked just fine for me...   
that error suggests that you did not input your path or connection information correctly
Title: Re: FlashChat Integration
Post by: 1.1.4 User on February 09, 2008, 12:27:52 PM
Sorry for my lack of knowledge, but do I have to edit one of the files to do that. I didn't see it during the install cycle.

I installed the mod successfully, and it works within the forum, but when the chat button is clicked I get a Database Error:

Table 'smf.flashchat_connections' doesn't exist
Title: Re: FlashChat Integration
Post by: Kindred on February 09, 2008, 12:38:34 PM
did you install flashchat FIRST?

Flashchat is a separate utility that must be installed BEFORE you install this mod.
Title: Re: FlashChat Integration
Post by: 1.1.4 User on February 09, 2008, 12:49:21 PM
Yes. I installed FlashChat, and it works fine. I installed the mod, and it loads FlashChat correctly. When I installed FlashChat, it gave a database access error when I tried to integrate it with SMF 1.1.

It is actually when the forum loads that the database error is shown. After that everything works fine.
Title: Re: FlashChat Integration
Post by: 1.1.4 User on February 09, 2008, 12:53:58 PM
I'll try again and see what happens.
Title: Re: FlashChat Integration
Post by: 1.1.4 User on February 09, 2008, 01:09:58 PM
Same error:


FlashChat was unable to detect your MySQL login setting from the Simple Machines 1.1 configuration file.

Which file do I need to edit for the information to be correct?
Title: Re: FlashChat Integration
Post by: Gargoyle on February 09, 2008, 01:16:32 PM
Should be in the flash chat docs...
Title: Re: FlashChat Integration
Post by: 1.1.4 User on February 09, 2008, 01:28:27 PM
Ok. I figured it out. In the SMF 'Settings.php' file I had the $db_user blank. It's working now. Thanks for the responses.
Title: Re: FlashChat Integration
Post by: Kindred on February 09, 2008, 02:01:31 PM
Quote from: 1.1.4 User on February 09, 2008, 01:28:27 PM<br />Ok. I figured it out. In the SMF 'Settings.php' file I had the $db_user blank. It's working now. Thanks for the responses.<br />

that is going to cause LOTS of problems.

there is not need to edit any SMF files for Flashchat to link with SMF. This mod is not even required unless you want a menu, etc within SMF. (for example, I have a flashchat integration with my SMF that has never used this mod, just the basic smfCMS2.php file.
Title: Re: FlashChat Integration
Post by: 1.1.4 User on February 09, 2008, 02:19:20 PM
I don't think you understood my dilemma. I had the chat working. I had the mod working. What I had was a database error, which I found and corrected. In the SMF Admin 'Server Settings' page I had the database username set to nothing. I entered the username there and voila....the error went away, so no....I did not need to edit any SMF files. It was done for me. :)
Title: Re: FlashChat Integration
Post by: Kindred on February 09, 2008, 03:30:48 PM
ah.  I thought that you SET the dbuser to be blank.

I'm actually not sure how you had ANYTHING working with a blank dbuser field.
If you forum WAS working with that field being blank, then I suggest you look at your host's security, because that suggests a very LARGE hole.
Title: Re: FlashChat Integration
Post by: Kirok on February 09, 2008, 09:44:21 PM
Hi there,

I was wondering if this error message I'm getting when installing this Mod is something I need to worry about.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg151.imageshack.us%2Fimg151%2F1710%2Fchathelpdp3.th.jpg&hash=afb79fd1f34712941ffcc3856c9cc6ef0c04c246) (http://img151.imageshack.us/my.php?image=chathelpdp3.jpg)
I didn't install this as I just wanted to make sure.

Any ideas or suggestions? I didn't see these files in the ZIP I bought from http://www.tufat.com/

Thank you for your help.

Kirok
Title: Re: FlashChat Integration
Post by: perplexed on February 10, 2008, 07:40:19 AM
make sure you have those files installed on your server. 

Have you installed flashchat prior to installing the mod for flashchat?  If not you have to do that first.  If you have, then try uploading those two files again and try again.
Title: Re: FlashChat Integration
Post by: Goshdarnit on February 10, 2008, 07:46:56 AM
I've tried to download this package in package manager. I'm using 1.1.4 and I get the following error message as soon as I click on "download"...

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF. "
Title: Re: FlashChat Integration
Post by: TrueSatan on February 10, 2008, 10:30:53 AM
Please browse to the following link and download the mod:

http://custom.simplemachines.org/mods/index.php?mod=611 (http://custom.simplemachines.org/mods/index.php?mod=611)

Upload it to your forum in the normal way ACP>Packages>Download Packages

I've just checked the mod for you and it is working as it should.

If you continue to be unable to use it please see if you are able to use other mods or if this is a problem with them all...if it is please post for support in the General English Sopport board:

http://www.simplemachines.org/community/index.php?board=9.0 (http://www.simplemachines.org/community/index.php?board=9.0)
Title: Re: FlashChat Integration
Post by: Kindred on February 10, 2008, 10:34:12 AM
Quote from: Kirok on February 09, 2008, 09:44:21 PM
Hi there,

I was wondering if this error message I'm getting when installing this Mod is something I need to worry about.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg151.imageshack.us%2Fimg151%2F1710%2Fchathelpdp3.th.jpg&hash=afb79fd1f34712941ffcc3856c9cc6ef0c04c246) (http://img151.imageshack.us/my.php?image=chathelpdp3.jpg)
I didn't install this as I just wanted to make sure.

Any ideas or suggestions? I didn't see these files in the ZIP I bought from http://www.tufat.com/

Thank you for your help.

Kirok


Those files most definitely ARE in the flashchat distribution... 
Title: Re: FlashChat Integration
Post by: weightman on February 10, 2008, 03:12:03 PM
I have flashchat v4.5.7 installed and working at its own link. It is recognizing forum members when logged in and logging guests properly from that link. But when I try to install this mod I get the following notice on "Apply Mod": 12.     Execute Modification     ./chat/inc/flashChatTag.php     Test failed

Any Ideas? Thanks very much in advance.
Title: Re: FlashChat Integration
Post by: Kirok on February 10, 2008, 03:49:45 PM
Quote from: perplexed on February 10, 2008, 07:40:19 AM
make sure you have those files installed on your server. 

Have you installed flashchat prior to installing the mod for flashchat?  If not you have to do that first.  If you have, then try uploading those two files again and try again.

Thanks for the help...

I have already installed flashchat, and tried installing the mod once more, and still receive the same error...  so I looked in the Flashchat ZIP that I purchased, and these two files are nowhere in the ZIP. 

./chat/inc/flashChatTag.php
./chat/inc/cmses/smfCMS2.php

Any ideas folks?

Thanks for the help!
Kirok
Title: Re: FlashChat Integration
Post by: perplexed on February 10, 2008, 03:57:01 PM
They should be there.  If you have it unzipped then they should definitely be found in the /chat folder.   If they are definitely not there then you should contact tufat and request them.  Strange that they should be missing
Title: Re: FlashChat Integration
Post by: Kirok on February 10, 2008, 04:01:41 PM
I just joined TUFAT's site, thinking that they might be able to help, but they're redirecting me back here to the creator of this mod.  Ughhh...  >:(

@ Perplexed, I'll look for those 'mystery' files again, but I didn't see them my first search. 

Thanks,
~Kirok
Title: Re: FlashChat Integration
Post by: Kirok on February 10, 2008, 04:15:39 PM
I just double checked, and I did find:

./chat/inc/flashChatTag.php
./chat/inc/cmses/smfCMS2.php

These files were uploaded, but this Mod doesn't seem to find them.  The paths are correct, and they are on my server. 

Now I'm completely baffled!

Does anyone have any ideas as to what to do next?  Is there another mod I can try?

Thanks

~Kirok
Title: Re: FlashChat Integration
Post by: perplexed on February 10, 2008, 07:14:13 PM
I had that happen to me once too.

Check that you have the chat installed and it works without the mod.  The address will be your site http://www.yoursite.com/forum/chat (http://www.yoursite.com/forum/chat)

Check that you have run the install program and removed the install files

Upload those two files again

The try installing the mod again.

In the event that that fails, reupload all the files that are in the forum/chat folder again, go through the install process again, make sure those two files are there, and then try to install the mod again.

I only say this last bit as it happened to me on a testforum a few days ago and that fixed it :)  It's very nice chat program so it's worth persevering
Title: Re: FlashChat Integration
Post by: Kindred on February 10, 2008, 08:20:06 PM
I suggets re-downloading flashchat then.. both of those files are in the copy that I downloaded.
Title: Re: FlashChat Integration
Post by: Kirok on February 11, 2008, 04:09:25 PM
@ Perplexed...  I cannot believe this.  I did exactly what you said, and it is still coming up at not being able to find those two files.  I even re-downloaded the original Flashchat installation file, and it still shows the same error.

My only theroies are now:

1)  Its a permissions issue with my host
2)  Its case sensitive?

This is soooo weird.  But you're right, it is a GREAT piece of software, and it is definitely worth the effort!

Kirok
Title: Re: FlashChat Integration
Post by: Kirok on February 11, 2008, 11:07:01 PM
Thankfully, I was able to get around the error in installing this mod.  The mod installs, yet now I am getting an odd error in the layout of the forums.

I've included a couple of screencaps to show what is happening.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg98.imageshack.us%2Fimg98%2F4584%2Fchathelp1vz6.jpg&hash=21066536c555c6f273a0772cf0adf2db60c2931a)
As you can see, under the Admin 'Features & Options' section, no text appears.  I checked all the boxes, and nothing happens. 

The menu bar options at the top is slightly offset too, which looks like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg98.imageshack.us%2Fimg98%2F9854%2Fchathelp2rf6.jpg&hash=dff2a385f8af35d429cec87346e2f4ae285f7101)

Has anyone ever seen this before?  Its weird!

Thanks for any suggestions,

Kirok
Title: Re: FlashChat Integration
Post by: Kindred on February 12, 2008, 07:26:28 AM
I suspect that you are running your forum in english utf-8.  The mods only install *by defaul) into english (no utf-8)

You choices are
a) switch the forum to English
b) modify modifications.englishutf8.php with the new txt phrases from modifications.english.php
Title: Re: FlashChat Integration
Post by: Kirok on February 12, 2008, 11:25:48 AM
That's what I thought too as I looked, and I am running 'English'.

I'll try that modify.

~Kirok
Title: Re: FlashChat Integration
Post by: TrueSatan on February 12, 2008, 07:58:25 PM
If you were already using English then please check to see that the mod properly installed as the language strings do appear to be missing.

Modifications.english.php in the default theme languages directory should contain the following strings added by the mod:

// --- Begin FlashChat integration ---
$txt['fc_chat'] = 'Chat';
$txt['fc_in_chat'] = 'in Chat';
$txt['fc_not_found'] = 'FlashChat does not appear to be installed!';
$txt['fc_no_guests'] = 'Sorry, guests aren\'t allowed to use the chat!';
$txt['fc_private_room'] = '<i>private room</i>';
$txt['fc_users_online'] = 'Users currently in chat';
// For 'Who's Online' page
$txt['whoall_chat'] = 'In the <a href=' . $boardurl . '?action=chat">Chatroom</a>';
// --- End FlashChat integration ---
Title: Re: FlashChat Integration
Post by: seraphikah on February 14, 2008, 11:21:21 AM
Whenever I apply this mod, I get 500 Internal Server Error and end up having to do a fresh install of the board. Any ideas?
Title: Re: FlashChat Integration
Post by: brianjw on February 15, 2008, 09:34:58 AM
Please search this topic as this has been answered many times. You have to hack FlashChat installed in /path/to/smf/chat/ and when it gets installed it needs to be set to be integrated with smf in the install.php file. http://www.tufat.com

brianjw (search for it)
Title: Re: FlashChat Integration
Post by: JimM on February 26, 2008, 10:48:17 AM
I recently installed FlashChat and this mod on my 1.1.4 forum and it worked beautifully.  I had to manually edit one of the files but that was simple and everything is working great. 

Thanks for making the integration such an easy step.
Title: Re: FlashChat Integration
Post by: whatnow on March 01, 2008, 10:44:40 AM

I have integrated Flash Chat with our forum now, taken down the install.php file and install files, but there is a page which one of our members accessed last night, that I want to take down and not sure which it is.

www.ourdomain.com/chat   

We had another chatroom at www.ourdomain.com/chat.htm and she forgot to add the htm and got the login in page for this new chat. We want to deactivate that page, and I thought it was part of the install files, but it is still up.

I need to get this down ASAP.. any suggestions would be appreciated.

Title: Re: FlashChat Integration
Post by: perplexed on March 01, 2008, 04:39:22 PM
Quote from: mah on March 01, 2008, 10:44:40 AM


I have integrated Flash Chat with our forum now, taken down the install.php file and install files, but there is a page which one of our members accessed last night, that I want to take down and not sure which it is.

www.ourdomain.com/chat   

We had another chatroom at www.ourdomain.com/chat.htm and she forgot to add the htm and got the login in page for this new chat. We want to deactivate that page, and I thought it was part of the install files, but it is still up.

I need to get this down ASAP.. any suggestions would be appreciated.

Mah

you should have a look on the flashchat forum at tufat, I did a quick check there just now and came up with this thread.  It's not for smf but that doesn't matter since it's the flashchat files you need to edit and not anything to do with this mod or the forum

http://forum.tufat.com/showthread.php?t=44033&highlight=access+direct

Hope that helps
Title: Re: FlashChat Integration
Post by: shumar on March 02, 2008, 04:20:15 PM
Quote from: shumar on February 04, 2008, 07:09:07 PM
I have SMF 1.1.4.
How to change so RealName is showed, not LoginName ?
Is that possible ?

Thank you.
Any help for this problem ?
I know that I need to change something in smfcms2.php, but I don't know what to change... :(
Title: Re: FlashChat Integration
Post by: BethInaK on March 03, 2008, 08:03:02 PM
Hi - dumb newbie running SMF 1.1.4
installed flashchat and want to integrate. 
but my package thows an error here -- probably due to mods:
17. Execute Modification ./Themes/default/index.template.php Test failed

Can I  run this package  and then go to the parser and find out what this step is and do manually?  Would that be the best thing to do?
Title: Re: FlashChat Integration
Post by: Kindred on March 04, 2008, 08:07:54 AM
shumar: change membername to realname in smfcms2.php

BethInaK: yes, run the install. then view the actual mod changes and manually apply them in index.template.php
Title: Re: FlashChat Integration
Post by: LOLwut on March 04, 2008, 08:53:51 AM
First time I actually looked at this.I gotta say, I may swap it with the chatbox.
Title: Re: FlashChat Integration
Post by: perplexed on March 04, 2008, 09:14:07 AM
Quote from: jamesk on October 01, 2007, 04:45:49 PM
Can someone (anyone using 1.1.3 or 1.1.4) just try clicking the collapse/expand board on the main forum page....any board... and then check their error log and let me know if there are any error regarding undefined index.



well better late than never,  just to let you know I have encountered this error on a 1.1.4 forum for the first time ever - I have been installing this mod since the beginning.  Dunno why but I will apply your fix and see what happens.
Title: Re: FlashChat Integration
Post by: BethInaK on March 04, 2008, 05:12:25 PM
I'm quite confused.
I installed flashchat and its working and is integrated with my SMF database.  No login needed.
But I tried to apply the theme mods here - having some difficulty bu still working on it- but I was able to add the "XX users in chat" to the default theme.

Lo and behold it works, but not for OUR chatroom. We have strange peoples nicks in there and they are NOT in our flashchat.

Any ideas? Is this a setting? 
Title: Re: FlashChat Integration
Post by: Jaybird on March 05, 2008, 08:08:12 AM
Don't know if this has been answered, probably has many times.  My # of users in the chat aren't showing up anywhere on the forum.  Just wondering how I go about getting that feature to work.  Thanks!

*edit* - I should add that when I installed the mod, I never got the chat button.  I had to write it in.  I don't know if that has anything to do with the problem.  Oh yeah, I'm using the SMF 1.1.4 and Black Rain V.2 Theme. 
Title: Re: FlashChat Integration
Post by: sherpa サイバー侍 on March 05, 2008, 08:15:51 AM
Did you read the first post to Daniel15
http://www.simplemachines.org/community/index.php?topic=139769.msg891920#msg891920
Title: Re: FlashChat Integration
Post by: Kindred on March 05, 2008, 08:58:38 AM
Quote from: Jaybird on March 05, 2008, 08:08:12 AM
Don't know if this has been answered, probably has many times.  My # of users in the chat aren't showing up anywhere on the forum.  Just wondering how I go about getting that feature to work.  Thanks!

*edit* - I should add that when I installed the mod, I never got the chat button.  I had to write it in.  I don't know if that has anything to do with the problem.  Oh yeah, I'm using the SMF 1.1.4 and Black Rain V.2 Theme. 

once again...   mods install only into the default theme. Any other themes need to be manually updated to include the mod.
Title: Re: FlashChat Integration
Post by: Jaybird on March 05, 2008, 10:35:59 AM
Maybe I didn't ask my question right.  Let me start over.  I don't have the default theme on.  How do I go about getting the users to show up along with the chat button on the menu with the template (Black Rain v.2) that I'm using.  Could someone please tell me what I need to write in.  Thanks!
Title: Re: FlashChat Integration
Post by: Kindred on March 05, 2008, 11:47:43 AM
look at the install file within the mod... or run it through the mod parser at sleepycode.com

then edit the appropriate *.template.php files in your theme
Title: Re: FlashChat Integration
Post by: Jaybird on March 05, 2008, 11:50:40 AM
Will give it a try, thanks!!
Title: Re: FlashChat Integration
Post by: Dinurth on March 05, 2008, 07:31:17 PM
So I installed Flashchat perfectly, works fine.  But when I use this mod to integrate it with SMF two things happen: 1.  There is no "Chat" link on the top, there is a larger space between two links, but not chat link.  On the admin panel where the options should be I have the boxes, but no text to the left of the boxes!

Any help is appreciated!
Title: Re: FlashChat Integration
Post by: perplexed on March 05, 2008, 07:36:53 PM
try switching the smf default theme and see if that helps?
Title: Re: FlashChat Integration
Post by: Dinurth on March 05, 2008, 08:21:52 PM
I'm already using the default theme.

Edit: Apparently I was running utf-8 and I had set it to "english".  All fixed now... or so I thought.  If I go into SMF server settings and change it, the chat link on the top shows up until you close the browser, then it disappears.  I have to change it every time to get it to show up.

Also, when i try to go to /inc/config.php I get a 500 internal server error. Ok I thought I saw something say you could change things in that file, I guess it meant you have to manually edit it?  It didn't distinguish between files you could edit and files you have to manually edit.  I literally set everything to 777 and still the same deal.
Title: Re: FlashChat Integration
Post by: Kindred on March 05, 2008, 11:03:01 PM
1- check your server permissions...
2- you can't RUN config.php. ???   It's an include file, not a runnable file.
Title: Re: FlashChat Integration
Post by: ElectricSquid on March 08, 2008, 02:53:13 AM
Will this mod work with SMF 1.1.4? I don't see it listed in the supported versions, but... I've tried other mods that also didn't show support for 1.1.4 and they worked just fine.

Not expecting y'all to support this one, but how about TinyPortal 0.9.8? Anyone know about that too?
Title: Re: FlashChat Integration
Post by: perplexed on March 08, 2008, 05:10:50 AM
yes I am using it with 1.1.4 and Tiny portal 0.983 no problems :)
Title: Re: FlashChat Integration
Post by: shanni on March 08, 2008, 08:58:18 AM
Hello

I have to say I have been reading the posts to try to get my answer straight so i can help myself, but Im no coder, just someone learning. If someone could give me a really straight forward, hopefully without wishfull thinking, instructions on what to do here-

I have SMF1.14 installed, I would love to have Flashchat integrated in this (like everyone).... I understand it only works on 'Default'. In saying that, I used the 1st post in this thread to install the chat mod. It was excepted and was installed, Now I DO use a theme, 'Nighthawk' Plus I have others for my members to be fussy, and choose for themselves. Now I checked out the default, yes it was there, but I couldnt go to ANY other pages once I got there as this message appears : Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


NOT ONE OTHER PAGE I CAN ACCESS. I think im kinda LOCKED out??? Now I cant even access the forum at all?

Any Ideas what my next move could be?
Title: Re: FlashChat Integration
Post by: shanni on March 08, 2008, 06:09:27 PM
Hi,

Im completely freaking out!! ANYone Anyone????

Please see the message im getting www.yapidi.com/forum  I really dont know what to do next.

HELP   SOS  HELP  SOS  HELP  SOS  HELP  SOS

:'( :'( :'( :'( :'( :( :( :( :( >:( >:( >:( :'( :'( :'( :'( :'(
Title: Re: FlashChat Integration
Post by: CmptrWz on March 08, 2008, 06:10:40 PM
It sounds like you have a .htaccess issue to me. Or the server configuration is broken.

Check for .htaccess files, or check for error logs. If you can't get at the error logs, check with your host.
Title: Re: FlashChat Integration
Post by: shanni on March 08, 2008, 06:38:49 PM
Im sorry, I dont even know what to look for?  :'( :'( :'( Im soooo dissapointed...
Title: Re: FlashChat Integration
Post by: CmptrWz on March 08, 2008, 06:44:28 PM
Enable viewing of hidden files in your FTP client, and look for a .htaccess file in your forum's root directory.

Or, contact your host.
Title: Re: FlashChat Integration
Post by: shanni on March 08, 2008, 10:48:59 PM
I have had a look at the file, there is nothing in it, I dont even know if that is normal?

Im sorry, but there has to be a solution then 'Contacting my host!' I have been spending Hours on hours trying to find a solution, my last resort, I feel, was to finally ask for help, the only message I have received is..... see my host!! I could have told everyone that! My host is in america, Im guessing is one day behind me, so its Sunday arvo for me, I wont be able to hear from them till 'my' tuesday.... that seems so long away.

Is there anything you can HELP me with, if not, then I thank you for your time, I HOPE there must be someone else here on SMF that will be kind enough to lend me their hand.

Cheers
Title: Re: FlashChat Integration
Post by: CmptrWz on March 08, 2008, 10:52:50 PM
You are getting a SERVER ERROR. Unless you have access to the error logs for the SERVER there isn't a lot we can do. If you have a control panel, scour it for references to log files. If you don't have a control panel, or you can't find logs there, look for logs in your FTP.

Without more information we really can't do much.
Title: Re: FlashChat Integration
Post by: shanni on March 08, 2008, 11:05:03 PM
this is the log errors for yesterday when it all happened:

08-Mar-2008 01:36:10] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code:2315) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code on line 2596

[08-Mar-2008 01:36:20] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code:2315) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code on line 2596

[08-Mar-2008 01:37:02] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code:2315) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code on line 2596

[08-Mar-2008 01:37:15] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code:2315) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code on line 2596

[08-Mar-2008 01:37:22] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code:2315) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code on line 2596

[08-Mar-2008 01:38:42] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code:2315) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code on line 2596

[08-Mar-2008 01:43:52] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code:2315) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code on line 2596

[08-Mar-2008 01:43:57] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code:2315) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code on line 2596

[08-Mar-2008 01:44:09] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code:2315) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code on line 2596

[08-Mar-2008 01:47:36] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code:2315) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code on line 2596

[08-Mar-2008 01:50:01] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code:2315) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code on line 2596

[08-Mar-2008 01:50:10] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code:2315) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code on line 2596

[08-Mar-2008 01:50:48] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code:2315) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code on line 2596

[08-Mar-2008 03:21:31] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code:2315) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1731) : eval()'d code on line 2596

[08-Mar-2008 03:32:00] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1762) : eval()'d code:2383) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1762) : eval()'d code on line 2664

[08-Mar-2008 03:53:46] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1762) : eval()'d code:2383) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1762) : eval()'d code on line 2664

[08-Mar-2008 03:55:11] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1762) : eval()'d code:2383) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1762) : eval()'d code on line 2664

[08-Mar-2008 07:35:16] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1762) : eval()'d code:2383) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1762) : eval()'d code on line 2664

[08-Mar-2008 07:51:32] PHP Fatal error: Cannot redeclare template_awards() (previously declared in /home/pgpzkrun/public_html/forum/Sources/Load.php(1762) : eval()'d code:2383) in /home/pgpzkrun/public_html/forum/Sources/Load.php(1762) : eval()'d code on line 2664


I looked at the path, and went to 'forum/Sources/Load.php' But i dont have an Idea what Im to change.

Title: Re: FlashChat Integration
Post by: CmptrWz on March 08, 2008, 11:14:39 PM
Looks like template_awards() exists two or more times in a file, which is crashing some things out. And the error is in an eval, so chances are the code actually lives in another file.

I suggest adding disableTemplateEval to your settings table with a value of 1 and seeing what errors you get.

Or, assuming someone was installing a mod, examine the mod to find out where it puts template_awards, then remove the extras from the file.
Title: Re: FlashChat Integration
Post by: shanni on March 08, 2008, 11:58:09 PM
okay, thank you.

Do I find this Information within my cpanel, because I cannot get access to my forum through the URL.

I am slowly learning, through some mistakes, I just need directions. Im no coder or anything, just working my way through blindfolded.

I remember installing an awards mod awhile ago, it didnt take very well, so through my forum admin, I uninstalled it (so I thought) ??
Title: Re: FlashChat Integration
Post by: CmptrWz on March 09, 2008, 12:01:28 AM
If you have a decent editor you could download the entire SMF directory and search for the function. If you don't have a decent editor or don't want to download that much then you may want to grab the awards mod (there may still be a copy of the installer in your packages directory, for the record) and see what files it touches. The files are human readable once opened, or you can find a mod parser link to tell you how to manually remove it.
Title: Re: FlashChat Integration
Post by: shanni on March 09, 2008, 12:32:25 AM
I found the Php files called smf_awards and smf_memberawards in myphp admin.

would it be safe to delete them?
Title: Re: FlashChat Integration
Post by: CmptrWz on March 09, 2008, 12:34:08 AM
If that is phpmyadmin, those are the database tables. Not what you are looking for.
Title: Re: FlashChat Integration
Post by: perplexed on March 09, 2008, 09:17:44 AM
I did a quick search of the forum with

template_awards eval

and there are many results for this problem, maybe you can find an answer in one of them that might help? 

Something else to consider, if you do not have other mods installed, you could replace all of your current sources and default theme files with new ones and start over.

see this thread where that was suggested http://www.simplemachines.org/community/index.php?topic=197748.msg1257135#msg1257135

might be worth considering
Title: Re: FlashChat Integration
Post by: shanni on March 09, 2008, 09:29:03 AM
CmptrWz Message for you!

I have spent a few hours now deleting all the award codes from every file it was in etc... Im still getting the blocked page see here: www.yapidi.com/forum

You had mentioned this:

QuoteI suggest adding disableTemplateEval to your settings table with a value of 1 and seeing what errors you get.

Where do I go for this? Ive never heard of these terms.... 'Still learning'....  :P

Thanks for all your help so far, it is very much appreciated.

cheers
Title: Re: FlashChat Integration
Post by: shanni on March 09, 2008, 09:37:04 AM
Quote from: perplexed on March 09, 2008, 09:17:44 AM
I did a quick search of the forum with

template_awards eval

and there are many results for this problem, maybe you can find an answer in one of them that might help? 

Something else to consider, if you do not have other mods installed, you could replace all of your current sources and default theme files with new ones and start over.

see this thread where that was suggested http://www.simplemachines.org/community/index.php?topic=197748.msg1257135#msg1257135

might be worth considering

I do have a fare few mods already installed, plus themes etc.... Im so so dissapointed in whats happened, I have just spent hours trying to fix this up, and nothing has happened. I really really dont want to start again, I would so like to work this out, If you can pull ANY ideas out for me, It would be REALLY appreciated!

Thanks ;)
Title: Re: FlashChat Integration
Post by: CmptrWz on March 09, 2008, 12:40:01 PM
open phpmyadmin, go to the settings table, and insert a new setting named disableTemplateEval with a value of 1. Probably smf_settings for the table, based on your previous information.

Then the error messages will, hopefully, say the actual file and line, rather than an eval thing.
Title: Re: FlashChat Integration
Post by: shanni on March 09, 2008, 04:52:01 PM
Gwad Im sorry, what do I place in here:


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi270.photobucket.com%2Falbums%2Fjj92%2Fshanni73%2Fcapture2.jpg&hash=f2e8439133cd46ef3281184a59733d5bf8645aab)


1 If field type is "enum" or "set", please enter the values using this format: 'a','b','c'...
If you ever need to put a backslash ("\") or a single quote ("'") amongst those values, precede it with a backslash (for example '\\xyz' or 'a\'b').

2 For default values, please enter just a single value, without backslash escaping or quotes, using this format: a
Title: Re: FlashChat Integration
Post by: CmptrWz on March 09, 2008, 04:55:07 PM
You want the insert tab at the top, actually.
Title: Re: FlashChat Integration
Post by: shanni on March 09, 2008, 04:58:23 PM
Quote from: CmptrWz on March 09, 2008, 04:55:07 PM
You want the insert tab at the top, actually.

Im dont understand, Ive never messed with anything in 'myphpAdmin' before, I really wouldnt know what to do.....hahahhaha Im scared!!!!

You will have to be more specific for me....... myphpadmin for 'Dummies'.....lol
Title: Re: FlashChat Integration
Post by: shanni on March 09, 2008, 08:26:56 PM
Any answers for me me yet?
Title: Re: FlashChat Integration
Post by: shanni on March 10, 2008, 07:04:02 AM
Is there anyone that can please help with my problem, I have completely come to a dead end.

ANYONE?????
Title: Re: FlashChat Integration
Post by: Kindred on March 10, 2008, 09:52:27 AM
500 errors are server side problems. There are a few things that could cause it...   but in your case, I would say the safest and easiest way to solve this is to reload your SMF files with a clean set.

After doing this, you will have removed any mods that were previously installed, and you should re-install the mods, one by one...    but your custom themes will still be there.
Title: Re: FlashChat Integration
Post by: perplexed on March 10, 2008, 09:57:20 AM
I said the same thing yesterday, I think it's the easiest way in the long run :)
Title: Re: FlashChat Integration
Post by: Gallery on March 10, 2008, 02:47:24 PM
So, late last night I happened to notice that the Chat button/link had just disappeared at the top of the forum.  Scrolled down to the bottom where it shows users, and the 0 Users in Chat was showing up. 

I opened a new window and accessed forum/chat/ and the chat was working just fine -- only all my personal settings that I had saved were not in effect and the default blue theme was showing.  Strange, that.

Checked the only place I know of in the forum admin (Features & Options) to adjust the chat mod settings, and nothing had changed. 

Not knowing exactly what the problem was, or what caused the chat button to go *poof*, I uninstalled the Flash Chat Mod, thinking I'd just reinstall it.  Apply Mod page shows two errors:

5.     Execute Modification     ./SSI.php     Test failed

8.     Execute Modification     ./Themes/default/BoardIndex.template.php     Test failed

Obviously, I don't want to install the Flash Chat Integration mod again if the errors persist.  Both files above exist in the domain and forum files.

Any ideas here?

I was playing around with smilies and custom images in the header area when I noticed the chat button was gone.  However, that would have nothing to do with the flash chat programming.  Any chance the time change early Sunday interfered somehow with the forum or chat programming?  I am totally clueless here.

**edited to correct spelling
Title: Re: FlashChat Integration
Post by: kemp_l on March 12, 2008, 09:52:13 PM
Will this chat mode work on SMF 1.1.4 yet?
Title: Re: FlashChat Integration
Post by: perplexed on March 12, 2008, 10:17:45 PM
yes it has done for some time :)
Title: Re: FlashChat Integration
Post by: DASBEAN on March 13, 2008, 05:01:13 PM
Just tried to install on 1.1.4:

12.     Execute Modification     ./chat/inc/flashChatTag.php     File not found
13.    Execute Modification    ./chat/inc/cmses/smfCMS2.php    File not found
Title: Re: FlashChat Integration
Post by: perplexed on March 13, 2008, 05:23:22 PM
assuming you have already installed the flashchat program, have a look in the chat folder and make sure those files are actually there, if not, upload them again, and then try again to install the mod
Title: Re: FlashChat Integration
Post by: DASBEAN on March 13, 2008, 05:26:23 PM
Ah ha, it would be good If I actually read the entire post to find out that you need Flash Chat ... which I do not. For $5, I'm buying it now as this seems pretty awesome.

Thanks!
Title: Re: FlashChat Integration
Post by: perplexed on March 13, 2008, 05:54:10 PM
yes buy the flashchat, follow the instructions to install it, make sure you install it to work with SMF 1.1, test it out separately before installing the mod, then install the mod and you should see a chat tab on your forum and various configuration options in your Admin panel
Title: Re: FlashChat Integration
Post by: DASBEAN on March 13, 2008, 06:11:40 PM
Wow, this is awesome ... very cool stuff.

Unfortunately I did not get the information on my theme ... I followed the instructions to the T, and I only got the information at the bottom of the screen displaying users in chat.

I did not find the piece in Themes/[theme name]/index.template.php as per the instructions.

I figured out how to add a button, but how do I display user count in chat?

   // chat button
   $context['menubox'][]=array(
            'title' => 'chat',
            'link' => $scripturl.'?action=chat',
            'chosen' => 'chat',
            'memberonly' => false,
            'guestonly' => false,
            'permission' => '',
            );
[/chat]

Thanks
Title: Re: FlashChat Integration
Post by: Kindred on March 13, 2008, 06:19:51 PM
'title' => $txt[119], is the title of the button
Title: Re: FlashChat Integration
Post by: DASBEAN on March 13, 2008, 06:20:43 PM
Thanks, I actually just figured that one out ... now to add user counts.
Title: Re: FlashChat Integration
Post by: DASBEAN on March 13, 2008, 06:24:25 PM
Ok, I'm getting there ... but I don't know php at all ...


            'title' => $context['num_chat'].'Chat',


How do I add brackets around that variable? Actually, id rather have it say "Chat [X]". Can anyone give me a hand?

One more thing ... when entering/exiting chat, is it possible to disable that tiny pop up window that appears?

Thanks
Title: Re: FlashChat Integration
Post by: Kindred on March 13, 2008, 10:31:22 PM
$txt['ChatButton'] = 'Chat [' .  $context['num_chat']. ']';

'title' => $txt['ChatButton'],


the pop-up is turned on/off in the flashchat config file..
Title: Re: FlashChat Integration
Post by: DASBEAN on March 14, 2008, 07:19:56 AM
Quote from: Kindred on March 13, 2008, 10:31:22 PM
$txt['ChatButton'] = 'Chat [' .  $context['num_chat']. ']';

'title' => $txt['ChatButton'],


the pop-up is turned on/off in the flashchat config file..

Perfect, thanks.
Title: Re: FlashChat Integration
Post by: symon on March 14, 2008, 12:26:39 PM
I know this place isn't the best to ask but their forum is dead. :(

Hi all,

I've FlashChat and I'm nearly ready to release it to my members but I'm having a problem with smilie sizes.

I've renewed most that I need and changed the config.php file to reflect the changes and also CSmileTextConst.as has the preferred sizes also:

['???', 'smi_ask', 15.0, 22.0], etc etc

I saved the CSmileTextConst.as and reproduced the preloader and smile swf as said here.

All the smilies work with the new key commands but they all produce too small and distorted.

All the settings have been changed to high for jpeg (didn't matter) and as they're now gifs the slight size change distorts them.

Is there another size setting over-riding the ones set above?

It's the last thing holding me back
Title: Re: FlashChat Integration
Post by: Kindred on March 14, 2008, 12:43:44 PM
As previously stated.... neither this thread nor this forum are for support of flashchat itself.

Ask over on tufat's forums...   those forums are not dead and there are people over there who will answer if they know.
Title: Re: FlashChat Integration
Post by: symon on March 14, 2008, 01:00:10 PM
OK sorry...I guess waiting 4 days is too soon to say they're dead :)
Title: Re: FlashChat Integration
Post by: TeaTephi on March 14, 2008, 06:53:14 PM
 XarSmilies-1 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
2. TinyPortal 0.983   [ Uninstall ] [ List Files ] [ Delete ] 
3. FontandSizeDropdown_1.2 1.3  [ Apply Mod ] [ List Files ] [ Delete ] 
4. Member Awards 1.0.2  [ Apply Mod ] [ List Files ] [ Delete ] 
5. Bookmarks 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
6. Custom BBCode 2.00   [ Uninstall ] [ List Files ] [ Delete ] 
7. Link Thumbnail 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
8. Simple Award System 1.3.0  [ Apply Mod ] [ List Files ] [ Delete ] 
9. Bible - Books of Law 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
10. Bible - Books of History 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
11. Bible - Books of Poetry 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
12. Bible - Books of Prophets 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
13. Bible - New Testament 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
14. Bible Tag 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
15. ShowTopics 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
16. Signature Dropdown Choices 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
17. Googlebot & Spiders Mod 2.0.3  [ Apply Mod ] [ List Files ] [ Delete ]   

The first time I tried to install this file I got these errors:
5. Execute Modification ./SSI.php Test failed  
6. Execute Modification ./Sources/ModSettings.php Test successful
7. Execute Modification ./Sources/Subs.php Test successful
8. Execute Modification ./Themes/default/BoardIndex.template.php Test failed  

STEP ONE - So I tried the PHP modifications manually of SSI and board.template.php as described on page one, but I couldn't find the line entries to change in the php file.   It appeared those files were never altered at all (see mod line 17- NOT installed), I guess googlebot bot wasn't properly installed?  (BUT GOOGLEBOT WORKS!?)

STEP TWO -  I downloaded the NON-Googlebot version, and it installed without errors, but there was no "Chat" button (using Manuscript theme) SOOO I changed to default SMF theme and there were TWO chat buttons!

STEP THREE - uninstalled the integration mod (which was appearing as 18 & 19).  It said there were errors to un Install, but I uninstalled anyway (both entry 18 & 19).

QUESTION - Default them show a chat button when clicked I get this error:
Fatal error: smf_main(): Failed opening required '/home/content/b/i/b/biblevoyages/html/forum/Sources/Chat.php' (include_path='.:/usr/local/lib/php') in /home/content/b/i/b/biblevoyages/html/forum/index.php on line 359

What do I do now????  The Flash Chat works great, but no one can access it , I guess.

Thanks a million, hope someone can help.

Totally frustrated, ready to throw this thing out the window . . .

Title: Re: FlashChat Integration
Post by: Kindred on March 14, 2008, 09:51:32 PM
ok... first of all, this is not a support thread for the googlebot mod...  If you installed a mod when it gave you warnings, then you would have had to make manual changes.

If you UNinstalled a mod when it gave you warnings, then you will have to make manual UNinstallation changes.
Seriously...   of course you have errors since you chose to uninstall, despite the warnings that it could not do so correctly.

At this point (and I am guessing that you're not really good with php), the easiest thing you can do is to reload clean files from a working backup that you took before attempting install the mods.

If you did not take a backup (shame on you... do so, next time!)
the the only thing I can suggest is to upload a clean set of files from the 1.1.4 large upgrade archive (not including the upgrade.php or .sql files) and then reload your mods one by one.
Title: Re: FlashChat Integration
Post by: TeaTephi on March 15, 2008, 10:52:03 AM
Hi Kin

Well sounds like I'm in a heap of trouble.  I did back up the forum, but a little while ago.   I actually didn't change any PHP though.   I was going to then I could not find the google bot entries, and that made me suspicious.

You are right though, I'm no programmer, I wish this were more "Dummy" proof.   Here's what I decided.   

Copy and paste the link to flash chat in my forum.   

There integrated.

I'll try not to mess with any more mods.

Tea
Title: Re: FlashChat Integration
Post by: weightman on March 15, 2008, 12:45:20 PM
Kindred,

I am curious. When you install a mod, the package manager makes archive "backups" in the "Backups" folder. I guess I assumed this was a backup of the changed files and the database so that if something didn't go right you could revert to before the mod.

What do those backups do exactly?

Thanks very much
Title: Re: FlashChat Integration
Post by: Kindred on March 15, 2008, 03:25:05 PM
when you install a mod, the system saves the previous version of your file as filename.php~

this only allows to back out the LAST mod made...   and only if you know which files to actually replace back to filesname.php.
...and, installing mods NEVER backs up the database.
As an admin, it is your responsibility to backup your files and database before messing around with the code....
(and nearly every mod has a warning that reminds you of this... or at least they used to)

Title: Re: FlashChat Integration
Post by: weightman on March 15, 2008, 03:40:08 PM
Kindred,

Thanks. I have an automated backup system setup (cron job) for my entire server so I don't really worry about it too much. I was just curious. Thanks for explaining.
Title: Re: FlashChat Integration
Post by: DASBEAN on March 15, 2008, 09:01:31 PM
Quote from: Kindred on March 13, 2008, 10:31:22 PM
$txt['ChatButton'] = 'Chat [' .  $context['num_chat']. ']';

'title' => $txt['ChatButton'],


the pop-up is turned on/off in the flashchat config file..

Hmm, where is this config file?

Thanks
Title: Re: FlashChat Integration
Post by: Kindred on March 16, 2008, 09:56:45 AM
in flashchat/inc/config.php
Title: Re: FlashChat Integration Error
Post by: aaaall on March 18, 2008, 10:06:44 PM
I am about to purchase this Flashchat, but was first install the demo to see how it works, I have 2 errors:
12. Execute Modification ./chat/inc/flashChatTag.php File not found
13. Execute Modification ./chat/inc/cmses/smfCMS2.php File not found
, I deleted and reinstalled again, same problem. I looked into my folder, didn't see those files anywhere, not even the folder Chat, or INC, or cmses. Please help
I am using 1.1.4
Title: Re: FlashChat Integration
Post by: perplexed on March 19, 2008, 07:52:54 AM
Quote from: aaaall on March 18, 2008, 10:06:44 PM
I am about to purchase this Flashchat, but was first install the demo to see how it works, I have 2 errors:
12. Execute Modification ./chat/inc/flashChatTag.php File not found
13. Execute Modification ./chat/inc/cmses/smfCMS2.php File not found
, I deleted and reinstalled again, same problem. I looked into my folder, didn't see those files anywhere, not even the folder Chat, or INC, or cmses. Please help
I am using 1.1.4

There is no demo.  There is Flashchat chat software and Flashchat Mod for SMF forums.  Flashchat program and the flashchat mod are two different things.  You must purchase - and have working - Flashchat from Tufat for $5 before you install this Flashchat mod (which links the flashchat program to your forum) or it will not work and will throw up the errors you are reporting now - it is looking for files from Flashchat program and will not work until you install the Flashchat program itself. 

Read the readme file, the first page in this topic or the information on the Mod page which explains in more detail.  Go to tufat.com and purchase Flashchat software.  Install it following the detailed instructions that come with the software, test it is working, and then install the SMF Flashchat Mod which integrates Flashchat program with your forum :)
Title: Re: FlashChat Integration
Post by: Kindred on March 19, 2008, 05:39:24 PM
for the flashchat to automatically bridge, you will need to install (ie.e add the chat directory) as a subdirectory of your forum.

Is your forum at /home/ ?
What is your forum directory?
Title: Re: FlashChat Integration in another language (Ex Vietnamese)
Post by: aaaall on March 19, 2008, 11:09:35 PM
I am using SMF1.1.4, Flashchat 4.712, integration 1.0a. The Chat works fine in English, but when I switch to Vietnamese, the "chat" tap, all the options setup on the Admin are gone. Only see "# member" in Chat (it didn't show the word " in chat" either) on the home page.

I just found it. If your Chat didn't show when you switch to your language, back up first, then add these lines into the file "Modifications.<your language>.php"
Change the txt (inside the ' ' ) to your language.
This file is located under the folder:/Themes/default/languages

// --- Begin FlashChat Integration ---
$txt['fc_chat'] = 'Chat';
$txt['fc_flashchat'] = 'FlashChat';
$txt['fc_flashchat_settings'] = 'FlashChat Integration Settings';
$txt['fc_in_chat'] = 'in Chat';
$txt['fc_not_found'] = 'FlashChat does not appear to be installed!';
$txt['fc_no_guests'] = 'Sorry, guests aren\'t allowed to use the chat!';
$txt['fc_private_room'] = '<i>private room</i>';
$txt['fc_users_online'] = 'Users currently in chat';
// For 'Who's Online' page
$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';

// Settings for admin panel
$txt['fc_height2'] = 'Height';
$txt['fc_inForum'] = 'Display chat window "inside" forum?';
$txt['fc_newWindow'] = 'Open chat in new window?';
$txt['fc_showUsers'] = 'Display Users in Chat at top of forum?';
$txt['fc_showUserCount'] = 'Show number of users on Chat button?';
$txt['fc_size_desc'] = 'The height and width may be an integer (eg. 600 for 600 pixels) or a percentage (eg. a width of 100% will fill the whole screen horizontally)<br /><strong>Note:</strong> If "' . $txt['fc_inForum'] . '" is turned on, please do not use a percentage for the height. It will not work correctly!';
$txt['fc_width'] = 'Width';
// --- End FlashChat Integration ---
Title: Re: FlashChat Integration
Post by: Kindred on March 20, 2008, 12:08:14 AM
yes... you figured it out...  please do not serial post like that, however. Modify your previous post if no one has repsonded.
Title: Re: FlashChat Integration
Post by: simpleuser on March 26, 2008, 09:59:45 AM
Can anybody show me a demo pls, there isnt´s any chat on daniel´s forum!
Title: Re: FlashChat Integration
Post by: aaaall on March 26, 2008, 02:09:59 PM
Could anyone Please help me. I have 2 problems.

1. When I select OPTION - TEXT - select FONTSIZE to larger size when screen is full, I won't able to see "new" text send or receive anymore. The side scroll bar seem doesn't reach to the bottom?

2. Log out (click red button) OK, but when I close the browser or logout forum, I have a popup "INTERNAL SERVER ERROR". (URL shows: /dologout.php?id=8ccb45e49b630f94cbd21705b9db2bb4)


I searched on these 36 pages, but didnot see any similar thread (hope I didn't miss it). I appreciated for all your help!.

SMF1.14
FlashChat 4.7.12

Looks like I posted in the wrong room? or no one ever have  had this problem?
Title: Re: FlashChat Integration
Post by: aaaall on March 27, 2008, 03:13:58 PM
Quote from: simpleuser on March 26, 2008, 09:59:45 AM
Can anybody show me a demo pls, there isnt´s any chat on daniel´s forum!
The screenshots is on the first page of this topic
Title: Re: FlashChat Integration
Post by: DartaWeb on March 30, 2008, 11:23:02 PM
Please, I need to ban 2 groups from the chat (group 4 and 14). Which code  i have to modify? And in which way?

I would like the users of groups 4 and 14 not able to log in the chat  :-X
Title: Re: FlashChat Integration
Post by: en_shua on April 03, 2008, 11:38:10 AM
I am trying to remember if this mod/solution had AIML support so we could have a relatively intelligent robot for users to interact with.  Am I right that this solution does?
Title: Re: FlashChat Integration
Post by: MegaTinkerCoder on April 03, 2008, 11:43:48 AM
FlashChat does support AIML, it uses a variant based on ProgramE. ProgramE is not updated, but the FlashChat community tend to keep the AIML support in Flashchat working. If you have Flash Chat 4.7.1 be sure to grab the support pack from :http://www.tufat.com/resources.php?id_num=2&start=25 (http://www.tufat.com/resources.php?id_num=2&start=25) to your bot.

You will want to make the robot only appear if one person is in the room, if it appears and everyone is in the room it will try to talk to everyone which gets quite confusing. I usually set it to leave the room if more then one person is in the room. You could also only let it talk to certain people.

Enjoy!
Title: Re: FlashChat Integration
Post by: en_shua on April 03, 2008, 12:02:39 PM
Quote from: MegaTinkerCoder on April 03, 2008, 11:43:48 AM
FlashChat does support AIML, it uses a variant based on ProgramE. ProgramE is not updated, but the FlashChat community tend to keep the AIML support in Flashchat working. If you have Flash Chat 4.7.1 be sure to grab the support pack from :http://www.tufat.com/resources.php?id_num=2&start=25 (http://www.tufat.com/resources.php?id_num=2&start=25) to your bot.

You will want to make the robot only appear if one person is in the room, if it appears and everyone is in the room it will try to talk to everyone which gets quite confusing. I usually set it to leave the room if more then one person is in the room. You could also only let it talk to certain people.

Enjoy!
Excellent.  Which version of FlashChat should I use?  4.7.x or the beta 4.8.x?
Title: Re: FlashChat Integration
Post by: en_shua on April 03, 2008, 05:29:12 PM
If a user does not wish for their username to be shown in the Users Online area, will it show up in the User In Chat section?
Title: Re: FlashChat Integration
Post by: Kindred on April 03, 2008, 07:07:41 PM
yes
Title: Button
Post by: Stef001 on April 03, 2008, 08:16:37 PM
This mod works fine.
I have just one problem.
Before the button i see some code: <>
see: http://www.kaartenleggen.nl/
i use the classic theme

Is someone know how i can remove that.

Thanks.
Title: Re: FlashChat Integration
Post by: en_shua on April 03, 2008, 10:24:15 PM
I have a problem creating a menu item for this mod.  My forum is bridged into Joomla, so the URL for the chat for my site would actually look a lot like this:
http://www.DOMAINNAME.com/index.php?option=com_smf&Itemid=31&action=chat
Unfortunately, when we try to use that link, the chat part doesn't actually come up.  Just a blank page.  However, if we were to manually type in the following in the address bar, then it works:
http://www.DOMAINNAME.com/forum/index.php?action=chat

Now, to further confuse things, I created two buttons for my theme, using the following code:
// the [Chat] button
if ($context['allow_smfgallery_view'])
echo '<a href="', $scripturl, '?action=chat">Chat1</a> | ';
// the [Chat] button
if ($context['allow_smfgallery_view'])
echo '<a href="http://www.DOMAINNAME.com/forum/index.php?action=chat">Chat2</a> | ';


However, even though both of them are different, when I look at the actual link through my browser, both of them say this:
http://www.DOMAINNAME.com/index.php?option=com_smf&Itemid=31&action=chat

Any ideas?
Title: Re: FlashChat Integration
Post by: Kindred on April 04, 2008, 07:38:02 AM
this mod is not intended to be used in bridged forums...   and, quite honestly it is silly to do so.

in my joomla and mambo bridged forums, I have flashchat installed sub to SMF, but I never bothered with this mod, I just call site.com/chat//flashchat.php
Title: Re: FlashChat Integration
Post by: en_shua on April 04, 2008, 07:57:05 AM
Quote from: Kindred on April 04, 2008, 07:38:02 AM
this mod is not intended to be used in bridged forums...   and, quite honestly it is silly to do so.

in my joomla and mambo bridged forums, I have flashchat installed sub to SMF, but I never bothered with this mod, I just call site.com/chat//flashchat.php

Out of idle curiosity (and possibly ignorance), why do you say it's silly to use this mod in a bridged forum?

I got around the link issue by using a different hard coding.  Now the link is as follows: // the [Chat] button
if ($context['allow_smfgallery_view'])
echo '<a href="/forum/index.php?action=chat">Chat</a> | ';
Title: Re: FlashChat Integration
Post by: en_shua on April 04, 2008, 08:00:27 AM
Quote from: Normally on April 03, 2008, 08:16:37 PM
This mod works fine.
I have just one problem.
Before the button i see some code: <>
see: http://www.kaartenleggen.nl/
i use the classic theme

Is someone know how i can remove that.

Thanks.

Is the <> part of the link?  If so then it could be in your language file.  Have you looked in \forum\Themes\classic\index.template.php to see if you that that there?
Title: Re: FlashChat Integration
Post by: Stef001 on April 04, 2008, 10:00:01 AM
Quote from: en_shua on April 04, 2008, 08:00:27 AM
Is the <> part of the link?  If so then it could be in your language file.  Have you looked in \forum\Themes\classic\index.template.php to see if you that that there?

Hello en_shua,
It is not part of the link and i can`t find it in the index.template.php.
Do you have any other suggestion.

Thanks,
Stef.
Title: Re: FlashChat Integration
Post by: en_shua on April 04, 2008, 10:09:42 AM
Quote from: Normally on April 04, 2008, 10:00:01 AM
Quote from: en_shua on April 04, 2008, 08:00:27 AM
Is the <> part of the link?  If so then it could be in your language file.  Have you looked in \forum\Themes\classic\index.template.php to see if you that that there?

Hello en_shua,
It is not part of the link and i can`t find it in the index.template.php.
Do you have any other suggestion.

Thanks,
Stef.
Silly question, but if you uninstall this mod, do those characters go away?
Title: Re: FlashChat Integration
Post by: perplexed on April 04, 2008, 10:16:26 AM
Quote from: Normally on April 04, 2008, 10:00:01 AM
Quote from: en_shua on April 04, 2008, 08:00:27 AM
Is the <> part of the link?  If so then it could be in your language file.  Have you looked in \forum\Themes\classic\index.template.php to see if you that that there?

Hello en_shua,
It is not part of the link and i can`t find it in the index.template.php.
Do you have any other suggestion.

Thanks,
Stef.

you are missing a chat button for your theme, you will have to add an image so that you don't see the 'chat' link.  Doing that might make th <> go away :)
Title: Re: FlashChat Integration
Post by: Stef001 on April 04, 2008, 10:28:23 AM
Quote from: quiteperplexed on April 04, 2008, 10:16:26 AM
Quote from: Normally on April 04, 2008, 10:00:01 AM
Quote from: en_shua on April 04, 2008, 08:00:27 AM
Is the <> part of the link?  If so then it could be in your language file.  Have you looked in \forum\Themes\classic\index.template.php to see if you that that there?

Hello en_shua,
It is not part of the link and i can`t find it in the index.template.php.
Do you have any other suggestion.

Thanks,
Stef.

you are missing a chat button for your theme, you will have to add an image so that you don't see the 'chat' link.  Doing that might make th <> go away :)

Where in the code do i have to put the button?
Title: Re: FlashChat Integration
Post by: Kindred on April 04, 2008, 10:31:36 AM
Quote from: en_shua on April 04, 2008, 07:57:05 AM
Quote from: Kindred on April 04, 2008, 07:38:02 AM
this mod is not intended to be used in bridged forums...   and, quite honestly it is silly to do so.

in my joomla and mambo bridged forums, I have flashchat installed sub to SMF, but I never bothered with this mod, I just call site.com/chat//flashchat.php

Out of idle curiosity (and possibly ignorance), why do you say it's silly to use this mod in a bridged forum?

I got around the link issue by using a different hard coding.  Now the link is as follows: // the [Chat] button
if ($context['allow_smfgallery_view'])
echo '<a href="/forum/index.php?action=chat">Chat</a> | ';


So, you bypass the bridge completely...   This won't work if you have added code into your smf's index.php to redirect/prevent access to your stand-alone forum.

The reason I say it is silly is:
Joomla -> wraps SMF -> wraps Flashchat
It is silly to double-wrap.
Also...  there's not really any need for the chat button, since you can just add a menu item to the joomla menu. (most bridged sites that I use remove the smf menu anyway)
Title: Re: FlashChat Integration
Post by: en_shua on April 04, 2008, 10:37:41 AM
Gotcha.  Mine isn't wrapped in each other.  Just share a common user base.  Thanks.
Title: Re: FlashChat Integration
Post by: en_shua on April 04, 2008, 10:47:55 AM
Quote from: Normally on April 04, 2008, 10:28:23 AM
Quote from: quiteperplexed on April 04, 2008, 10:16:26 AM
you are missing a chat button for your theme, you will have to add an image so that you don't see the 'chat' link.  Doing that might make th <> go away :)

Where in the code do i have to put the button?

Have you read this thread?
http://www.daniel15.com/forum/index.php/topic,1203.0.html
Title: Re: FlashChat Integration
Post by: perplexed on April 04, 2008, 10:59:36 AM
Quote from: Normally on April 04, 2008, 10:28:23 AM
Quote from: quiteperplexed on April 04, 2008, 10:16:26 AM
Quote from: Normally on April 04, 2008, 10:00:01 AM
Quote from: en_shua on April 04, 2008, 08:00:27 AM
Is the <> part of the link?  If so then it could be in your language file.  Have you looked in \forum\Themes\classic\index.template.php to see if you that that there?

Hello en_shua,
It is not part of the link and i can`t find it in the index.template.php.
Do you have any other suggestion.

Thanks,
Stef.

you are missing a chat button for your theme, you will have to add an image so that you don't see the 'chat' link.  Doing that might make th <> go away :)

Where in the code do i have to put the button?

put it where you have the others eg where you have this one
http://www.kaartenleggen.nl/Themes/kaartenleggen/images/dutch/calendar.gif
Title: Re: FlashChat Integration
Post by: Stef001 on April 04, 2008, 11:02:15 AM
Quote from: en_shua on April 04, 2008, 10:47:55 AM
Quote from: Normally on April 04, 2008, 10:28:23 AM
Quote from: quiteperplexed on April 04, 2008, 10:16:26 AM
you are missing a chat button for your theme, you will have to add an image so that you don't see the 'chat' link.  Doing that might make th <> go away :)

Where in the code do i have to put the button?

Have you read this thread?
http://www.daniel15.com/forum/index.php/topic,1203.0.html

Yes i have read, but there is nothing about where i put the button.
I have mine own button, where do i pace it.
Title: Re: FlashChat Integration
Post by: perplexed on April 04, 2008, 11:04:27 AM
here

put it where you have the others eg where you have this one
http://www.kaartenleggen.nl/Themes/kaartenleggen/images/dutch/calendar.gif
Title: Re: FlashChat Integration
Post by: Stef001 on April 04, 2008, 11:07:21 AM
This is the flashChat code:
// FlashChat
echo '
<', $current_action == 'chat' ? ' id="actief"' : '', '><a href="', $scripturl, '?action=chat"', (!empty($GLOBALS['modSettings']['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($GLOBALS['modSettings']['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>', $context['menu_separator'];


and this is the code for the calander:
// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];


as you can see, in the code for the calander there is: /calendar.gif"
But in the code for flashChat is nothing about that.
Title: Re: FlashChat Integration
Post by: Kindred on April 04, 2008, 11:17:18 AM
your flashchat button code does not include anything to do with an image...


in other words, (as has alreayd been stated 1201 times, this mod adds the flashchat link/"button" into the DEFAULT theme...   YOUR theme uses different coding.

I'd suggest something more along the lines of:
(note: no promise that this will work exactly as typed)


// [FlashChat]!
echo '
<a href="', $scripturl, '?action=chat', (!empty($GLOBALS['modSettings']['fc_newWindow']) ? ' target="_blank"' : ''), '>', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['fc_chat'] . (!empty($GLOBALS['modSettings']['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : '') . '" border="0" />' : $txt['fc_chat']), (!empty($GLOBALS['modSettings']['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>', $context['menu_separator'];
Title: Re: FlashChat Integration
Post by: kevinhannan on April 04, 2008, 11:28:15 AM
Does anyone have a modification to allow this Mod towork in v2 of SMF, please?

Kind regards
Kevin Hannan
Title: Re: FlashChat Integration
Post by: Kindred on April 04, 2008, 11:44:42 AM
1- this mod has not been updated for smf v2.0
2- Flashchat has not been updated to work with SMF v2.0


In other words,  if you want to keep running flashchat, do not upgrade to 2.0
Title: Re: FlashChat Integration
Post by: Stef001 on April 04, 2008, 12:11:06 PM
I have put out this line of code:
<', $current_action == 'chat' ? ' id="actief"' : '', '>
This solved the problem.

The button i put in modifiactions.dutch.php.

Thanks for the help all.

Stef.
Title: Re: FlashChat Integration
Post by: MegaTinkerCoder on April 05, 2008, 12:31:26 PM
To the person on the previous page that asked would AIML work with 4.8 and smf.

I wouldn't rec. 4.8 flash chat beta, as it might not work as expected with aiml and smf in the beta, though if you want to try it my guess is no one would be able to support help with it..
Title: Re: FlashChat Integration
Post by: en_shua on April 09, 2008, 02:04:18 PM
This installed fine on my development site, but I am having problems with my production site.  I installed FlashChat on my Production system last week, and some users have been using it just fine.  Today I tried to install this integration mod, and when someone tries to go to the index, all they get back is a white page.  In the Forum Log, I get an error that says something to the extent of
QuoteDatabase Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.smf_fc_connections AS fc
LEFT JOIN `database`.smf_members AS mem ON (mem.I' at line 6
File: /var/www/vhosts/domainname/httpdocs/forum/Sources/Subs.php
Line: 3320

Any ideas?

Thanks.
Title: Re: FlashChat Integration
Post by: chrisb on April 12, 2008, 12:59:01 AM
i am getting the following errors on the site

QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.41 Server at yourlifetimeofmemories.com Port 80


When i click on any of the buttons i get the error message

    Home       Help       Arcade       Search            Admin            Profile       My Messages       Calendar       Chat       Members       GoogleTagged       Links       Gallery       Contact       Logout      

i get the same error

i am using the following forum 1.1.4

how do i fix these errors, now i have to do a backup of the site

:'(
Title: Re: FlashChat Integration
Post by: perplexed on April 12, 2008, 05:56:02 AM
silly question but did you install the flashchat program first (the one you have to download from tufat.com for $5) before installing the flashchat integration mod?
Title: Re: FlashChat Integration
Post by: ApplianceJunk on April 12, 2008, 11:15:37 AM
Quote from: Tick on May 15, 2007, 04:02:06 PM
That is the setup I had.  I had the coppermine before the flashchat mod.  Now the flash chat works fine intergrated with the forum but when the flash chat mod is installed it conflicts.  The way I set it up was following flashchats instruction.  The way I put it in my fourm is I use the custom actions mod and create a action for the flash chat and put it in a iframe.  Works the same way it just doesn't add the stats to the bottom of the forum.  I solved that by putting the stats in a tp block.


Just what I want to do, but how? :)

Title: Re: FlashChat Integration
Post by: redhare on April 12, 2008, 11:28:35 AM
i love the flash chat! very cool!
Title: Re: FlashChat Integration
Post by: r4b on April 21, 2008, 11:57:14 AM
Hi

I am hoping someone can help.

We have a member who gets a message saying she has been banned from chat. She hasn't been. How do I unban someone? I cannot find a ban list on the admin chat panel.

Thanks
Title: Re: FlashChat Integration
Post by: Kindred on April 21, 2008, 12:17:31 PM
Thois has been discussed ad infinitum on the tufat support forums


in SMFcms2.php change
if($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;

to
if($status == 0 || ($status > 3 && $status < 99 )) return ROLE_USER;

Title: Re: FlashChat Integration
Post by: r4b on April 21, 2008, 12:24:08 PM
where are they?

thanks
Title: Re: FlashChat Integration
Post by: r4b on April 21, 2008, 12:25:40 PM
sorry - found it

thanks
Title: Re: FlashChat Integration
Post by: DASBEAN on April 23, 2008, 08:20:55 PM
Hey all,

I've noticed that if a user closes the "logging out" pop up window of flash chat, that they remained logged into the chat, even if they log off the forums.

Is there a way to fix this? Say auto log out after X minutes? Also, is there a way I can forcefully log a user out of chat?

Thanks all!
Title: Re: FlashChat Integration
Post by: perplexed on April 24, 2008, 06:13:13 AM
I don't know about the first one but if the user isnt really in chat but it just shows they are in chat ( because they havent hit the big red close button) then if you go into chat, and logout, it will clear their name off the 'who's in chat' list
Title: Re: FlashChat Integration
Post by: chrisb on April 24, 2008, 08:36:26 AM
Quote from: accweb on December 26, 2007, 07:28:51 PM
Can I recommend the following mod "Chatroom Button" by Jake1981.

http://custom.simplemachines.org/mods/index.php?mod=827 (http://custom.simplemachines.org/mods/index.php?mod=827)

It's a modified version of his Website Button. All you need to do is add the URL of the PHP file for it to work with FlashChat on the Babylon theme.

Alison

We have Used this program and we are able to get this to work on our site and if you are having issues with Flash chat intergaration, always you can try this program
Title: Re: FlashChat Integration
Post by: Kindred on April 24, 2008, 09:15:31 AM
Promoting another mod in a specific mod's thread is bad form guys.

That mod may be good,  but it does not add the full integration that this mod does. That mod just adds a button... nothing more (something that would take 30 second to do by hand anyway).

This mod actually adds admin settings into SMF to let you set up the Flashchat display from the SMF admin. It also corrects a few issues that exist in flashchat as distributed.
Title: Re: FlashChat Integration
Post by: cruisearound.ie on April 24, 2008, 11:15:32 AM
Just wondering would this work with the current smf I am using which is  version: SMF 1.1.4,I am using the black/orange theme and I already havea  shoutbox installe but doe not work with this theme.
Title: Re: FlashChat Integration
Post by: Kindred on April 24, 2008, 11:39:38 AM
this one will install just fine on 1.1.4, but, like all mods that actually affect the theme, will require you to manually apply the mod to your own theme.

(mods only install automatically into the dfeault theme and english language... this is true of the shoutbox mod as well)
Title: Re: FlashChat Integration
Post by: MissyNL on April 25, 2008, 10:17:05 AM
Hi there, i have the dutch translation for the help.dutch.php file:

// --- Begin FlashChat Integration ---
$helptxt['fc_inForum'] = 'Als je chat aanvinkt dan zal de chatbox in het forum openen met gebruik van je header en footer. Als je hem niet aan vinkt dan zal Flash Chat schermvullend, extern openen (zoals de standaard installatie van Flashchat)';
$helptxt['fc_showUserCount'] = 'Laat het aantal actieve gebruikers zien in de chat op de chat button in het menu. In plaats van  "Chat" zal het "Chat [2 Users]" zeggen. (ervanuitgaande dat er 2 gebruikers online zijn in de chat)<br /> Noteer dat als je deze functie wilt gebruiken, je theme compatible moet zijn.';
// --- End FlashChat Integration ---
Title: Re: FlashChat Integration
Post by: MissyNL on April 25, 2008, 11:55:17 AM
hi, i have translated the files for the modification.english.php  page:

// --- Begin FlashChat Integration ---
$txt['fc_chat'] = 'Chat';
$txt['fc_flashchat'] = 'FlashChat';
$txt['fc_flashchat_settings'] = 'FlashChat integratie instellingen';
$txt['fc_in_chat'] = 'in Chat';
$txt['fc_not_found'] = 'Flashchat lijkt niet te zijn geinstalleerd!';
$txt['fc_no_guests'] = 'Sorry, gasten kunnen geen gebruik maken van de chat.';
$txt['fc_private_room'] = '<i>Prive kamer</i>';
$txt['fc_users_online'] = 'gebruikers momenteel in de chat';
// For 'Who's Online' page
$txt['whoall_chat'] = 'in de <a href="' . $boardurl . '?action=chat">Chatroom</a>';

// Settings for admin panel
$txt['fc_height2'] = 'Hoogte';
$txt['fc_inForum'] = 'Plaats het chat scherm "in" het forum?';
$txt['fc_newWindow'] = 'Open chat in een nieuw scherm?';
$txt['fc_showUsers'] = 'Laat de gebruikers zien aan het begin van het forum?';
$txt['fc_showUserCount'] = 'Laat het aantal gebruikers zien op de chat button?';
$txt['fc_size_desc'] = 'The hoogte en breedte mogen absoluut (eg. 600 for 600 pixels) of een percentage zijn. (eg. een breedte van 100% zal het scherm horizontaal volledig vullen)<br /><strong>Note:</strong> Als "' . $txt['fc_inForum'] . '" is ingeschakeld, gebruik dan alstublieft geen percentage voor de hoogte. Het zal niet naar behoren werken!';
$txt['fc_width'] = 'breedte';
// --- End FlashChat Integration ---

I you find something missing,

Please tell me!  Great MOD!!

Bey Bey  :D :D :D
Title: Re: FlashChat Integration
Post by: weightman on April 25, 2008, 02:15:04 PM
QuoteHey all,

I've noticed that if a user closes the "logging out" pop up window of flash chat, that they remained logged into the chat, even if they log off the forums.

Is there a way to fix this? Say auto log out after X minutes? Also, is there a way I can forcefully log a user out of chat?

Yes, there is a setting in the config file which will log them out automatically if they are inactive for the time you set. Change 64x24x24 to just 24x24 and they will be logged out if they do nothing for an hour.
Title: Re: FlashChat Integration
Post by: lawnmowertech on April 25, 2008, 03:09:08 PM
this is what i  have  right now  1.1.4  version  babylon  theme   i am wanting to  put  a  flash chat   mod  on  it  and also  put  a    google  adwords  on it as well   how do  i  do  this   i also want to  add  paypal  donations  to it  as  well  but  i have no  program  experience what so ever  as  far as  html   php   etc.   

if  you  can help me  achieve this goal with   instructions i can  understand   i  be more than  pleased   and thankful  to finally get this  taken care of   

thank you 
calvin

if someone can send me  a private message that will be ok  with me   thanks

Title: Re: FlashChat Integration
Post by: Kindred on April 25, 2008, 03:29:17 PM
run the mods through the mod parser and then manually do the changes to the babylon theme files.
Title: Re: FlashChat Integration
Post by: lawnmowertech on April 25, 2008, 03:50:08 PM
can you post a   example what i need to  look for   what code do i use  etc. 

Title: Re: FlashChat Integration
Post by: ApplianceJunk on April 25, 2008, 03:57:39 PM
Quote from: lawnmowertech on April 25, 2008, 03:50:08 PM
can you post a   example what i need to  look for   what code do i use  etc. 



That is just what the mod parser does for you. :)
Title: Re: FlashChat Integration
Post by: lawnmowertech on April 25, 2008, 04:05:27 PM
mod  parser  can you  tell me  where this  is  at  ?
Title: Re: FlashChat Integration
Post by: ApplianceJunk on April 25, 2008, 04:10:09 PM
Quote from: lawnmowertech on April 25, 2008, 04:05:27 PM
mod  parser  can you  tell me  where this  is  at  ?

Go to the mod page.

http://custom.simplemachines.org/mods/index.php?mod=611

Top right hand corner you will see "Manual Install Instructions for SMF" pick your smf version from the drop down box and click the Submit button.



Title: Re: FlashChat Integration
Post by: lawnmowertech on April 25, 2008, 04:36:32 PM
Note that you MUST have already installed FlashChat into the chat directory (as per the instructions for integrating with SMF), and it must be working! Also note that you do not need to edit index.template.php to add a button (like the instructions say to), as this mod does that automatically.

where do i go  to  acess the  chat directory  is there  one on  babylon  theme ?

Title: Re: FlashChat Integration
Post by: Kindred on April 25, 2008, 04:46:07 PM
did you install flashchat?

It needs to be installed in YourForumDir/chat

that has nothing to do with the theme.
Title: Re: FlashChat Integration
Post by: lawnmowertech on April 25, 2008, 05:18:25 PM
Quote from: Kindred on April 25, 2008, 04:46:07 PM
did you install flashchat?

It needs to be installed in YourForumDir/chat

that has nothing to do with the theme.



i just made a   folder on my   forum sites  folders  myforum/chat   so  i need to know where to  get  flashchat at  to  install it on the server   thanks
Title: Re: FlashChat Integration
Post by: weightman on April 25, 2008, 05:20:26 PM
LOL.

"YourForumDir" means replace this directory with the name of YOUR forum. The link to purchase flashchat is, I am sure, on the mod home page.
Title: Re: FlashChat Integration
Post by: lawnmowertech on April 25, 2008, 05:27:57 PM
Quote from: weightman on April 25, 2008, 05:20:26 PM
LOL.

"YourForumDir" means replace this directory with the name of YOUR forum. The link to purchase flashchat is, I am sure, on the mod home page.

i know  its   at   http://www.cmsmallengines.info/chat    is  that  the correct  path ?
Title: Re: FlashChat Integration
Post by: Kindred on April 25, 2008, 05:32:00 PM
yes. Now install flashchat in that directory - and make sure you set it up integrated with smf 1.1.x
Title: Re: FlashChat Integration
Post by: lawnmowertech on April 25, 2008, 05:56:48 PM
ok its  loaded in the  directory  now  what do i do ?
Title: Re: FlashChat Integration
Post by: lawnmowertech on April 25, 2008, 06:02:33 PM
problem i  try to  install using  http://www.cmsmallengines.info/chat/install.php   it  brings up  a   404 error  what must i do to correct this ?
Title: Re: FlashChat Integration
Post by: Kindred on April 25, 2008, 06:48:59 PM
ok.  This thread is for support on the flashchat integration mod.

If you are having issues installing or anything else specifically to do with flashchat, please ask over on the flashchat support forums (forums.tufat.com)
Title: Re: FlashChat Integration
Post by: lawnmowertech on April 25, 2008, 09:15:27 PM
ok i  got to certain point   and  when i  clicked on   integrate  to   simple machines  1.1   and click enter  it  gives me this  message 
Warning: include(/home/cmsmalle/public_html/cmsmallenginesinfo/smf/Settings.php) [function.include]: failed to open stream: No such file or directory in /home/cmsmalle/public_html/cmsmallenginesinfo/smf/chat/inc/cmses/smfCMS2.php on line 17

Warning: include() [function.include]: Failed opening '/home/cmsmalle/public_html/cmsmallenginesinfo/smf/Settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cmsmalle/public_html/cmsmallenginesinfo/smf/chat/inc/cmses/smfCMS2.php on line 17

Warning: include(/home/cmsmalle/public_html/cmsmallenginesinfo/smf/Sources/Load.php) [function.include]: failed to open stream: No such file or directory in /home/cmsmalle/public_html/cmsmallenginesinfo/smf/chat/inc/cmses/smfCMS2.php on line 18

Warning: include() [function.include]: Failed opening '/home/cmsmalle/public_html/cmsmallenginesinfo/smf/Sources/Load.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cmsmalle/public_html/cmsmallenginesinfo/smf/chat/inc/cmses/smfCMS2.php on line 18

Warning: include(/home/cmsmalle/public_html/cmsmallenginesinfo/smf/Sources/Subs-Auth.php) [function.include]: failed to open stream: No such file or directory in /home/cmsmalle/public_html/cmsmallenginesinfo/smf/chat/inc/cmses/smfCMS2.php on line 19

Warning: include() [function.include]: Failed opening '/home/cmsmalle/public_html/cmsmallenginesinfo/smf/Sources/Subs-Auth.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cmsmalle/public_html/cmsmallenginesinfo/smf/chat/inc/cmses/smfCMS2.php on line 19

Warning: include(/home/cmsmalle/public_html/cmsmallenginesinfo/smf/Sources/LogInOut.php) [function.include]: failed to open stream: No such file or directory in /home/cmsmalle/public_html/cmsmallenginesinfo/smf/chat/inc/cmses/smfCMS2.php on line 20

Warning: include() [function.include]: Failed opening '/home/cmsmalle/public_html/cmsmallenginesinfo/smf/Sources/LogInOut.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cmsmalle/public_html/cmsmallenginesinfo/smf/chat/inc/cmses/smfCMS2.php on line 20

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'cmsmalle'@'localhost' (using password: NO) in /home/cmsmalle/public_html/cmsmallenginesinfo/smf/chat/inc/classes/db.php on line 15
Translate: Spanish | German | Dutch | French | Portuguese | Chinese | Japanese
FlashChat 4.7.12 Installer
Step 2: Database Configuration
The FlashChat installer needs some information about your database to finish the installation. If you do not know this information, then please contact your website host or administrator. Please note that this is probably NOT the same as your FTP login information!

You have indicated that you wish to integrate FlashChat with Simple Machines 1.1. Please refer to the full integration instructions located in the TUFaT.com Wiki. There are additional steps to complete after this installer is finished.

Configuration Error!

FlashChat was unable to detect your MySQL login setting from the Simple Machines 1.1 configuration file. You must correct this before FlashChat can finish its installation. Please refer to the integration Instructions in the TUFaT.com Wiki to ensure that the FlashChat files were correctly uploaded to your server.

Possible Reasons for this error may include:

1) FlashChat was uploaded to an incorrect server location.
2) The CMS system that you are using is unsupported by FlashChat.
3) Your server has incompatible settings which may have been undetected in Step 1 of the FlashChat installer. For example, specific security restrictions which are not typical of most PHP/MySQL setups.
Database Name:    
Database User:    
Database Password:    
Database Host:    
Table Prefix:    
This prefix will be prepended to any table names that the FlashChat installer creates.
Room List (separated by commas):    
     is  this  cause i need to  edit some  files in  smf   before  i  go  with this  install  ? 

Title: Re: FlashChat Integration
Post by: perplexed on April 26, 2008, 04:27:08 AM
Quote from: Kindred on April 25, 2008, 06:48:59 PM
ok.  This thread is for support on the flashchat integration mod.

If you are having issues installing or anything else specifically to do with flashchat, please ask over on the flashchat support forums (forums.tufat.com)


^^^ lawnmowertech  read the above post - you need to purchase flashchat for $5 and install it before installing the flashchat mod.  They are two different things. 
Title: Re: FlashChat Integration
Post by: lawnmowertech on April 26, 2008, 03:52:25 PM
i  created a  database for  it  and it  loaded onto that  database without  a problem  and  actually  works    here is  the  link   
 
http://www.cmsmallengines.info/smf/chat/flashchat.php (http://www.cmsmallengines.info/smf/chat/flashchat.php)


now my  question is  i  tryed  installing that to  config  with  simple machines  1.1  version  first  and it still  showed them  error  msgs  so i  went back  and  reinstalled  it  and  created a   database  and  installed the program to that  database   

but my  question is  how do i get this  to  work with smf    since it is on the  server  now in its own database   thanks 
keep i n  mind  i  have   babylon  theme  and   1.1.4   version 

thanks
calvin
Title: Re: FlashChat Integration
Post by: Skjeldur on April 26, 2008, 09:13:13 PM
I am having the worst time trying to get the chat to show in the actual forums.  Can anyone help me out with that?

My theme utilizes the Default theme for SMF so if anyone has an already modified board.index.php file that they'd like to share then I'd be grateful!
Title: Re: FlashChat Integration
Post by: perplexed on April 27, 2008, 05:13:02 AM
lawnmowertech -  If you followed the instructions that came with the $5 flashchat exactly then it should work. I don't think then instructions tell you to create a database for it.  It also tells you to check the option for using Flashchat with your cms or forum and then you select SMF 1.1.   If you installed the flashchat mod before installing the flashchat chat program, and then had to remove it, you need to check that it removed all the code that it installed in the files.

Always check if a mod installs correctly with no test failed on any files and do not proceed if it has test fails unless you know what you are doing and what files to modify.

Mods only install on the default CORE theme, you are using a different theme then you will have to modify your theme's files to get it to show up in your forum (assuming that everything else you did before that was successful)


Skjeldur- did you purchase and install the $5 flashchat program before installing the flashchat modification? Are you using another language other than regular plain English (English-UTF8) is a different language.  When you installed the flashchat mod, did it install successfully or did you get any warnings of 'test failed' on any of the files?
Title: Re: FlashChat Integration
Post by: Kindred on April 27, 2008, 01:22:52 PM
lawnmowertech - Flashchat will *NOT * work as an integrated system if it is in a different database. It *MUST* be installed in the same database as SMF (just use a different prefix)
Title: Re: FlashChat Integration
Post by: Stigmartyr on April 30, 2008, 04:16:51 PM
I searched this post first for my keywords so here I go with a (new?) question:

I want to be able to admin folks in my SMF integrated chat room, or at least give them KICK and BAN permissions WITHOUT making them admins on my SMF site.  How can I do this?
Title: Re: FlashChat Integration
Post by: perplexed on April 30, 2008, 06:06:12 PM
read this thread on the tufat flashchat forum  (http://forum.tufat.com/showthread.php?t=12059&highlight=groups&page=2)
Title: Re: FlashChat Integration
Post by: Stigmartyr on April 30, 2008, 07:00:59 PM
Quote from: quiteperplexed on April 30, 2008, 06:06:12 PM
read this thread on the tufat flashchat forum  (http://forum.tufat.com/showthread.php?t=12059&highlight=groups&page=2)

Word up G. ~_^

You're a huge help fo tha shizzle!  This totally helped me solve how to modify/change my member groups
Title: Re: FlashChat Integration
Post by: _Anthony_ on April 30, 2008, 07:14:25 PM
Does this work with SMF 2 BETA 3?
Title: Re: FlashChat Integration
Post by: kvan73 on April 30, 2008, 10:14:31 PM
I can't find it in this thread as it's long, so here I go. I have smf 1.1.4, I used the installer. I do not get a chat button up top, it does not display Users currently in chat: at the botton. I am using default theme, and language is english, not english-ut whatever . I does not pull up the chat using http://domain.com/forum/index.php?action=chat  I briefly looked through the files it moded, and it looks the same as on this site. Any help would be great. Thanks in advance.
Title: Re: FlashChat Integration
Post by: jossanaijr on April 30, 2008, 10:26:08 PM
Was FlashChat installed before and working?
Title: Re: FlashChat Integration
Post by: kvan73 on April 30, 2008, 10:31:32 PM
yep. I just don't have the links in the forum. This works still http://domain.com/forum/chat/flashchat.php
Title: Re: FlashChat Integration
Post by: jossanaijr on April 30, 2008, 10:33:35 PM
ok, and do you use english default theme?
Title: Re: FlashChat Integration
Post by: kvan73 on April 30, 2008, 10:46:39 PM
yes, english only, not english-utf8 or whatever

edit: Fixed it

Originally it was set for english-utf8, so I ftp'd into site and changed to english before my original post. As settings.php was set for ready only, chmod settings.php to 777 and used the drop down to change to English and it worked.
Title: Re: FlashChat Integration
Post by: Kindred on May 01, 2008, 12:46:03 AM
mr money... no. neither Flashchat nor this mod have been updated to work with 2.0

kvan...
If you are indeed using English and the default theme, then I would say that the mod never actually fully installed.
Title: Re: FlashChat Integration
Post by: _Anthony_ on May 01, 2008, 10:39:35 AM
Damn i didn't notice.
Thanks anyways
Title: Re: FlashChat Integration
Post by: oasiscritter on May 01, 2008, 11:19:09 AM
can you make it for SMF2 Beta 3, please?

thx
Title: Re: FlashChat Integration
Post by: Kindred on May 01, 2008, 12:28:57 PM
flashchat itself does not run with SMF 2.0 yet (well, not without manual tweaking)
Title: Re: FlashChat Integration
Post by: nwind1 on May 01, 2008, 02:17:00 PM
Quote from: kvan73 on April 30, 2008, 10:14:31 PM
I can't find it in this thread as it's long, so here I go. I have smf 1.1.4, I used the installer. I do not get a chat button up top, it does not display Users currently in chat: at the botton. I am using default theme, and language is english, not english-ut whatever . I does not pull up the chat using http://domain.com/forum/index.php?action=chat  I briefly looked through the files it moded, and it looks the same as on this site. Any help would be great. Thanks in advance.


I am having the SAME problem with FlashChat Inegration and 1.1.4 of SMF.

Is there anyone who has had this problem and solved it? how?  It seems to be a 1.1.4 issue.
Title: Re: FlashChat Integration
Post by: Kindred on May 01, 2008, 02:46:27 PM
the person who had this problem was still using english utf-8

I have the flashchat mod working perfectly well on 1.1.4 (and now 1.1.5)
Title: Re: FlashChat Integration
Post by: nwind1 on May 01, 2008, 05:32:28 PM
Quote from: Kindred on May 01, 2008, 02:46:27 PM
the person who had this problem was still using english utf-8

I have the flashchat mod working perfectly well on 1.1.4 (and now 1.1.5)

Not sure what that is or if I am using it too.

How did you get the mod to work? I tried to install it through the SMF ADMIN-PACKAGES-DOWNLOAD PACKAGES-Simple Machines Third-party Mod Site

and when I did it said something like it was not compatible with my version.

So, I looked at manual installs and edited the files as per the instructions at: http://custom.simplemachines.org/mods/index.php?action=parse;mod=611;attach=37032;smf_version=1.1.4

Still having problems. There are no chat buttons, no integration, nothing.

How did you install yours?

Title: Re: FlashChat Integration
Post by: jossanaijr on May 01, 2008, 05:41:16 PM
Quote from: nwind1 on May 01, 2008, 05:32:28 PM
Quote from: Kindred on May 01, 2008, 02:46:27 PM
the person who had this problem was still using english utf-8

I have the flashchat mod working perfectly well on 1.1.4 (and now 1.1.5)

Not sure what that is or if I am using it too.

How did you get the mod to work? I tried to install it through the SMF ADMIN-PACKAGES-DOWNLOAD PACKAGES-Simple Machines Third-party Mod Site

and when I did it said something like it was not compatible with my version.

So, I looked at manual installs and edited the files as per the instructions at: http://custom.simplemachines.org/mods/index.php?action=parse;mod=611;attach=37032;smf_version=1.1.4

Still having problems. There are no chat buttons, no integration, nothing.

How did you install yours?


Hi nwind1,
does your chat work alone?  I mean if you go to your chat directory and try to enter in FlashChat does it work fine?
Title: Re: FlashChat Integration
Post by: nwind1 on May 01, 2008, 05:57:48 PM
Quote from: jossanaijr on May 01, 2008, 05:41:16 PM
Hi nwind1,
does your chat work alone?  I mean if you go to your chat directory and try to enter in FlashChat does it work fine?

Yes, it works fine: http://forums.nwindianatheatre.org/chat/

Darren
Title: Re: FlashChat Integration
Post by: jossanaijr on May 01, 2008, 06:05:03 PM
ok, are you using English default theme?

edit: yes, ok , I checked.

So I suggest you to compare your files with parser.
Title: Re: FlashChat Integration
Post by: perplexed on May 01, 2008, 06:11:58 PM
when you installed your flashchat program did you check the box that said you wanted to integrate it with smf?  Just checking
Title: Re: FlashChat Integration
Post by: nwind1 on May 01, 2008, 10:35:33 PM
Quote from: quiteperplexed on May 01, 2008, 06:11:58 PM
when you installed your flashchat program did you check the box that said you wanted to integrate it with smf?  Just checking
Yes, but it is good that you asked anyway.
Title: Re: FlashChat Integration
Post by: nwind1 on May 01, 2008, 10:36:53 PM
Quote from: jossanaijr on May 01, 2008, 06:05:03 PM
So I suggest you to compare your files with parser.

What is a parser? I am assuming it is what is here: http://custom.simplemachines.org/mods/index.php?action=parse;mod=611;attach=37032;smf_version=1.1.4

Correct?

If that is the case, I don't fully understand it. I did the File Edits and the File Operations, but toward the bottom of that page is also:
Code
add_settings.php
This file should be able to execute standalone.

File Operations
Move the included file "Chat.php" to "./Sources".
Move the included file "Chat.template.php" to "./Themes/default".
Move the included file "dologout.php" to "the root directory".


I don't know where the add_settings.php is. Should I have uploaded all the files? To what directory (I have my chat in    / public_html / forums / chat /)

I don't see a add_settings.php anywhere.

Thanks,
Darren

BTW, Everybody LOVES the SMF software. I run a website for a small group of community theatres. They just love the forums.

Title: Re: FlashChat Integration
Post by: jossanaijr on May 01, 2008, 11:14:26 PM
Hi nwind1,
I'm in my job right now so I cannot check how is my site but basically is that what you wrote.
Check (I always download to my pc from my forum using FTP those files to be checked / edited manually; made a backup; change them if necessary and upload them again).  And you need those files chat.php..., as it is explained.  Sorry I cannot check add_settings.php right now but I will do it tomorrow morning if you cannot solve it.
Title: Re: FlashChat Integration
Post by: nwind1 on May 02, 2008, 11:05:54 AM
Quote from: jossanaijr on May 01, 2008, 11:14:26 PM
And you need those files chat.php..., as it is explained.  Sorry I cannot check add_settings.php right now but I will do it tomorrow morning if you cannot solve it.

Yes, I added chat.php, chat.template.php, and dologout.php to the areas where it says to.

I just don't know where add_settings.php is or what I should do with it.
Title: Re: FlashChat Integration
Post by: jossanaijr on May 02, 2008, 09:48:22 PM
Well, I did not know too... so I asked ... ;)

http://www.simplemachines.org/community/index.php?topic=237155.0
Title: Re: FlashChat Integration
Post by: nwind1 on May 03, 2008, 10:52:55 AM
Quote from: jossanaijr on May 02, 2008, 09:48:22 PM
Well, I did not know too... so I asked ... ;)

http://www.simplemachines.org/community/index.php?topic=237155.0

Thanks, you did not have to do that. That was very kind of you.

I will see if that works....plus I will go through all the files I manually changed and see if I made any mistakes.

Title: Re: FlashChat Integration: FlashChat 4.7.12 Installer: Simple Machines 1.1
Post by: stageducky on May 03, 2008, 08:07:54 PM
1) I have downloaded Flash Chat and installed the Chat Folder to my folder in the server.
2) I open the install.php files and met the requirement.
3) Under the selection of bulletin and cms to intergret with there is only the choice of simple machine 1.0 and 1.1

My question is, if I chose the closest simple machine 1.1 will it be smoothly intergrated if I am running simple machine 1.1.5 as my forum?

Please let me know. Because I won't install and then cause errors to the forum. To uninstall I need to uninstall database etc, its too troublesome.
Title: Re: FlashChat Integration
Post by: stageducky on May 03, 2008, 08:56:17 PM
QuoteI just installed the flashChat mod and everything seemed to go just fine but I have one kind of weird problem.

When I exit the mod or if I chose any other menu item I get disconnected from the chat and the closing window says   "The website cannot display the page" and when I try to log in again it says another user is logged in with the same name. But when I typed in my forum username and password I was logged into the chatroom again. Any fix for this?

I did a little further research and found the parser for SMF 1.1.5. My question now is:

May I install the FlashChatSMF_1-0a.zip of this mod and then make the files operation as instructed

Move the included file "Chat.php" to "./Sources".
Move the included file "Chat.template.php" to "./Themes/default".
Move the included file "dologout.php" to "the root directory".

Will doing these correct the logout issue?
Title: Re: FlashChat Integration
Post by: jossanaijr on May 03, 2008, 08:59:18 PM
Are you using the red button upper right to exit the chat?
Title: Re: FlashChat Integration
Post by: Krysia on May 04, 2008, 01:41:23 PM
This is a fabulous mod and works marvelously.

I do have one suggestion:
It'd be great if the Admins/Global Moderators/Moderators could see who was in the chat by either hovering over the "CHAT [1 Member]" link, or by looking in the "Who's Online (in Chat)" list, without having to actually enter the chat to do so.

Kind of like the "Board Viewers" mod.

:)
Title: Re: FlashChat Integration
Post by: jossanaijr on May 04, 2008, 01:53:18 PM
You can display using adm/features and options/basic/chat setup



   Display Users in Chat at top of forum?     
Help    Show number of users on Chat button?    
Help    Display chat window "inside" forum?    
   Open chat in new window?    
   Width    
   Height
The height and width may be an integer (eg. 600 for 600 pixels) or a percentage (eg. a width of 100% will fill the whole screen horizontally)
Note: If "Display chat window "inside" forum?" is turned on, please do not use a percentage for the height. It will not work correctly!
Title: Re: FlashChat Integration
Post by: Krysia on May 04, 2008, 02:34:18 PM
I have that setting on -- it only shows that there are X number of members in the chat. It doesn't show who they are.
Title: Re: FlashChat Integration
Post by: jossanaijr on May 04, 2008, 02:39:29 PM
It shows to me the names in the top and also in the user`s online...
Title: Re: FlashChat Integration
Post by: Krysia on May 04, 2008, 07:11:26 PM
I'm talking about on the Board Index row of buttons, as shown in the screencap below.
Title: Re: FlashChat Integration
Post by: jossanaijr on May 04, 2008, 07:18:03 PM
ok.
It`s because I`m using default theme and it shows in welcome area and in users online area.
Title: Re: FlashChat Integration
Post by: Krysia on May 04, 2008, 08:09:12 PM
I don't think I'm being understood.

It shows in the users online area and it shows in the board index area.

But I would like it to show who is in there without having to enter the chat, not just show how many people are in the chat before one enters the chat.

The Board Viewers mod enables one to see who's viewing a forum simply by clicking the link of the "2 viewing" on the Board Index. That's what I'm talking about, only I would like to have it restricted to only staff being able to see who's inside chat without having to enter the chat.
Title: Re: FlashChat Integration
Post by: jossanaijr on May 04, 2008, 08:18:10 PM
Ok, attached some pictures how it is shown in my forum.
Title: Re: FlashChat Integration
Post by: Krysia on May 04, 2008, 08:45:25 PM
Hmm... Okay, now I see what you're saying. I'm looking into my thing now, and trying to find what I didn't do correctly.

I'm also wondering why a non-Admin has an "Option" button for the screen -- I'd rather they not be able to change the chatroom appearance - it took me a long time to customize it to coordinate with the forum.
Title: Re: FlashChat Integration
Post by: Krysia on May 04, 2008, 08:46:27 PM
Plus, there are 2 in chat and only 1 shows...

ETA: Now it shows 2, but it kicked me off the board and I had to relogin.
Title: Re: FlashChat Integration
Post by: Krysia on May 04, 2008, 08:50:19 PM
Okay, I selected the "show users in chat" button in the admin section.

It still doesn't show who is in the chat.

In addition, for the non-Admin member in chat, it doesn't say which room she's in, it says "[null]". Nor does it show in the drop down menu that there are 2 rooms available.

On mine, it says "[General Chat]" after "you have entered", plus the dropdown menu works and shows the rooms available.
Title: Re: FlashChat Integration
Post by: Krysia on May 04, 2008, 08:52:59 PM
She also tells me that on her screen, it still shows no one in the chat at all, even though she's in there.
Title: Re: FlashChat Integration
Post by: Krysia on May 04, 2008, 08:57:54 PM
Quote
In addition, for the non-Admin member in chat, it doesn't say which room she's in, it says "[null]". Nor does it show in the drop down menu that there are 2 rooms available.

On mine, it says "[General Chat]" after "you have entered", plus the dropdown menu works and shows the rooms available.
I see. Figured that out. It wasn't made "public" in the chat panel thing.
Title: Re: FlashChat Integration
Post by: Krysia on May 04, 2008, 09:01:24 PM
But it still doesn't list the members inside the chat. :(
Title: Re: FlashChat Integration
Post by: jossanaijr on May 04, 2008, 09:16:21 PM
Sorry I really cannot help you because I`m not an expert in finding this error...
Title: [solved] Re: FlashChat Integration: Manual Install issue
Post by: stageducky on May 05, 2008, 05:26:18 AM
I used the parser and selected version 1.1.5

I had to look for these scripts in the ssi.php file but I can't find the exact script.
./ss1.php

To find
Quote$return['num_users'] = count($return['users']) + $return['hidden'];
   $return['total_users'] = $return['num_users'] + $return['guests'] + ($modSettings['ob_googlebot_count_most_online'] ? $return['num_spiders'] : 0);

Closest I found was:
   
Quote$return['num_users'] = count($return['users']) + $return['hidden'];
   $return['total_users'] = $return['num_users'] + $return['guests'];

   if ($output_method != 'echo')
      return $return;

   echo '
      ', $return['guests'], ' ', $return['guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $return['num_users'], ' ', $return['num_users'] == 1 ? $txt['user'] : $txt['users'];
Than how?

I found the problem. when I select the parser there's a little radio button to select version 10a with and without google bot. mine was without google bot so I couldn't find the exact script...now I can. sorry.
Title: Re: FlashChat Integration [New Issue]
Post by: stageducky on May 05, 2008, 10:23:23 AM
QuoteMove the included file "Chat.php" to "./Sources".
Move the included file "Chat.template.php" to "./Themes/default".
Move the included file "dologout.php" to "the root directory".

May I know where to locate:

Chat.php [or should it be flashchat.php]
Chat.template.php

Where should my root folder be? if my forum addy is as below.

http://forum.singaporetheatre.-productions.com/singapore/chat/flashchat.php

Anyhelp would be great. I'm at the last part of my integration.


Title: Re: FlashChat Integration
Post by: Kindred on May 05, 2008, 10:27:29 AM
chat.php and cat.template.php are in the mod package.

your "root directory" would be where ever you have your FORUM installed.
Title: Re: FlashChat Integration: Error in sub.php
Post by: stageducky on May 05, 2008, 10:41:47 AM
Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/singapp4/public_html/forum/singapore/Sources/Subs.php on line 3547

This is the code
Quote
   // Remove special accented characters - ie. s?
   $clean_name = strtr($filename, '妿殲熇谅媚徘壬仕掏蜗岩釉罩刭谯茌噌忏溴玷殛腱眍锺蝮趱鲽?', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
   $clean_name = strtr($clean_name, array('? => 'TH', '? => 'th', '? => 'DH', '? => 'dh', '? => 'ss', '? => 'OE', '? => 'oe', '? => 'AE', '? => 'ae', '? => 'u'));

The whole forum is down, can't access, its replaced by the row of parse text. Phew....HELP.
Title: Re: FlashChat Integration
Post by: Kindred on May 05, 2008, 10:46:00 AM
???

What's with the chinese characters?

You obviously did something wrong.  What program were you using to edit the files?

Oh, and please don't double post.... 2 minutes, sheesh.
Title: Re: FlashChat Integration
Post by: stageducky on May 05, 2008, 11:19:46 AM
I have no idea, I never did change any code except what I was instructed to do. Then voila this happen. Infact this is not the first time this line of code give me problem. The last time it happened I have to reinstall the whole forum. So this really freak me out.

To answer your question.

NO idea about the chinese text. I use dreamweaver.
Title: Re: FlashChat Integration
Post by: Kindred on May 05, 2008, 12:52:46 PM
Quote from: stageducky on May 05, 2008, 11:19:46 AM
I use dreamweaver.

There's your problem.  You should never try to edit php files in dreamweaver.   Use a text editor, like ConText, TextEdit, UltraEdit, Notepad++, etc....

You need to edit that line (and any other screwed up lines) back to what they should be.
Title: Re: FlashChat Integration
Post by: en_shua on May 07, 2008, 10:26:46 AM
I'm getting errors like this:
QuoteDatabase Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.smf_fc_connections AS fc
LEFT JOIN `DATABASENAME`.smf_members AS mem ON (mem.I' at line 6
File: /var/www/vhosts/DOMAINNAME/httpdocs/forum/Sources/Subs.php
Line: 3336
Of course this is referring to the following code in subs.php: $result = db_query("
SELECT
fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
fr.name AS roomName, fr.ispublic,
mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
mg.ID_GROUP, mg.groupName
FROM {$fc_prefix}connections AS fc
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$fc_prefix}rooms AS fr ON (fc.roomid = fr.id)
WHERE fc.userid IS NOT NULL
AND mem.ID_MEMBER != 0
ORDER BY mem.realName ASC", __FILE__, __LINE__);


As far as I can tell, I am running MySQL 4.1.21.  And, the really weird thing is that if I go into phpMyAdmin and enter in this query (of course replacing the variables), then the SQL processes just fine and I get results. Can someone help me debug what is going wrong here?
Title: Re: FlashChat Integration
Post by: Kindred on May 07, 2008, 10:31:29 AM
1- do you actually have flashchat installed and configured to bridge with smf?
2- are your smf and flashchat installed in two separate databases?
Title: Re: FlashChat Integration
Post by: en_shua on May 07, 2008, 10:42:31 AM
1) Yes.  I actually had FlashChat installed and running for a month before I tried to run this integration script.
2) Same physical database.

Now, to further, I took the very same code that I got to work in phpMyAdmin and put that in subs.php.  Yes, that means there are no variables in the statement at all.  Once I uploaded that new subs.php to the Sources folder, the error messages went away and the Who's Online section properly states who is in the Chat room, no errors in the Forum Error Log, etc.
Title: Re: FlashChat Integration
Post by: yakk on May 19, 2008, 10:57:43 PM
Hello, first off I'm a newbie to SMF and php scripting in general... I am trying to integrate Flashchat into my SMF 1.1 installation and I have some script errors between Step 1 and Step 2.  I have already FTP'd the chat folder to the root of my server.

I start the install.php script and check the box for integration in Step 1.  In Step 1a I choose Simple Machines 1.1 and then get this error on the next page...

****************
Warning: main(/home/content/y/a/k/yakfisher/html/Settings.php): failed to open stream: No such file or directory in /home/content/y/a/k/yakfisher/html/chat/inc/cmses/smfCMS2.php on line 17

Warning: main(/home/content/y/a/k/yakfisher/html/Settings.php): failed to open stream: No such file or directory in /home/content/y/a/k/yakfisher/html/chat/inc/cmses/smfCMS2.php on line 17

Warning: main(): Failed opening '/home/content/y/a/k/yakfisher/html/Settings.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/y/a/k/yakfisher/html/chat/inc/cmses/smfCMS2.php on line 17

Warning: main(/home/content/y/a/k/yakfisher/html/Sources/Load.php): failed to open stream: No such file or directory in /home/content/y/a/k/yakfisher/html/chat/inc/cmses/smfCMS2.php on line 18

Warning: main(/home/content/y/a/k/yakfisher/html/Sources/Load.php): failed to open stream: No such file or directory in /home/content/y/a/k/yakfisher/html/chat/inc/cmses/smfCMS2.php on line 18

Warning: main(): Failed opening '/home/content/y/a/k/yakfisher/html/Sources/Load.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/y/a/k/yakfisher/html/chat/inc/cmses/smfCMS2.php on line 18

Warning: main(/home/content/y/a/k/yakfisher/html/Sources/Subs-Auth.php): failed to open stream: No such file or directory in /home/content/y/a/k/yakfisher/html/chat/inc/cmses/smfCMS2.php on line 19

Warning: main(/home/content/y/a/k/yakfisher/html/Sources/Subs-Auth.php): failed to open stream: No such file or directory in /home/content/y/a/k/yakfisher/html/chat/inc/cmses/smfCMS2.php on line 19

Warning: main(): Failed opening '/home/content/y/a/k/yakfisher/html/Sources/Subs-Auth.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/y/a/k/yakfisher/html/chat/inc/cmses/smfCMS2.php on line 19

Warning: main(/home/content/y/a/k/yakfisher/html/Sources/LogInOut.php): failed to open stream: No such file or directory in /home/content/y/a/k/yakfisher/html/chat/inc/cmses/smfCMS2.php on line 20

Warning: main(/home/content/y/a/k/yakfisher/html/Sources/LogInOut.php): failed to open stream: No such file or directory in /home/content/y/a/k/yakfisher/html/chat/inc/cmses/smfCMS2.php on line 20

Warning: main(): Failed opening '/home/content/y/a/k/yakfisher/html/Sources/LogInOut.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/y/a/k/yakfisher/html/chat/inc/cmses/smfCMS2.php on line 20

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/y/a/k/yakfisher/html/chat/inc/classes/db.php on line 15
Translate: Spanish | German | Dutch | French | Portuguese | Chinese | Japanese
FlashChat 4.7.12 Installer
Step 2: Database Configuration
The FlashChat installer needs some information about your database to finish the installation. If you do not know this information, then please contact your website host or administrator. Please note that this is probably NOT the same as your FTP login information!

You have indicated that you wish to integrate FlashChat with Simple Machines 1.1. Please refer to the full integration instructions located in the TUFaT.com Wiki. There are additional steps to complete after this installer is finished.

Configuration Error!

FlashChat was unable to detect your MySQL login setting from the Simple Machines 1.1 configuration file. You must correct this before FlashChat can finish its installation. Please refer to the integration Instructions in the TUFaT.com Wiki to ensure that the FlashChat files were correctly uploaded to your server.

Possible Reasons for this error may include:

1) FlashChat was uploaded to an incorrect server location.
2) The CMS system that you are using is unsupported by FlashChat.
3) Your server has incompatible settings which may have been undetected in Step 1 of the FlashChat installer. For example, specific security restrictions which are not typical of most PHP/MySQL setups.

Database Name:    
Database User:    
Database Password:    
Database Host:    
Table Prefix:    
This prefix will be prepended to any table names that the FlashChat installer creates.
Room List (separated by commas):    
*************     

Supposedly my database name and related info should be retrieved but I'm not sure where the error has taken place...

Any help is much appreciated.

yakk
Title: Re: FlashChat Integration
Post by: Kindred on May 20, 2008, 12:21:14 AM
is SMF installed in /home/content/y/a/k/yakfisher/html (aka your web root)?
Title: Re: FlashChat Integration
Post by: yakk on May 20, 2008, 05:49:36 PM
I've managed to install smf in the root, ie.    NOT www.website.com/smf/chat    but rather www.website.com/chat   

Which scripts do I have to edit?  I realize now I've screwed up but if I can still integrate without too much of a runaround and a little help from you all I'd really like to get it working...

Thanks much
yakk
Title: Re: FlashChat Integration
Post by: Kindred on May 20, 2008, 05:51:28 PM
re-run the flashchat installer.

And please note: This topic is not for support of flashchat...  only for support of the smf package that adds some flashchat infomration (button, who's in chat, admin tools) to the smf framework.
Title: Re: FlashChat Integration
Post by: yakk on May 20, 2008, 07:55:02 PM
My bad, many apologies... if I run the installer again I'll just get the same errors, no?
Title: Re: FlashChat Integration
Post by: Kindred on May 20, 2008, 08:23:26 PM
not if you corrected the paths.

Chat must be installed in a subdirectory of the forum...

i.e.
/whateveryourforumdirectoryis/chat
Title: Re: FlashChat Integration
Post by: Impsat-1 on May 24, 2008, 11:37:33 AM
Hi... exist this MOD for SMF 1.1.5??? please I'need this MOD Thanks, and sorry by my english I' From argentina Thanks
Title: Re: FlashChat Integration
Post by: weightman on May 26, 2008, 03:18:53 PM
I'm getting this error in the logs every once in a while, running SMF 1.1.5, bridged with Mambo via Ortsio's bridge, with tons of mods (~20):

8: Undefined index: num_chat
File: /home/xxxxxx/public_html/smf/Themes/default/BoardIndex.template.php
Line: 413
?action=links

Line 412-413 of BoardIndex.template.php:

echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'], ', ';


Thanks for any help.
Title: Re: FlashChat Integration
Post by: roberto174 on May 26, 2008, 05:36:19 PM
Hy, i have SMF1.1.4 with FlashChat, installed using its own brigding mode, then used this mod, but i have a problem, every time a user enters the chat and lets say close the window, or hit the Back button and leave without manually log-off, that user is displayed in Users In Chat area in Index for ever, the only sollution is to enter the chat again and hit the X button to exot, is there a way to automatically log off the user when he\she exists the Chat, cause i have seen that on some SMF forums.
Sorry if that was already posted here, i have only read some pages, there are 42 so, if anyone knows, ill apreciate that.

Thanks
Roberts
Title: Re: FlashChat Integration
Post by: LadyC on May 28, 2008, 01:33:15 AM
i have a slightly unusual problem. first let me say i have this successfully installed on two other forums. but NOW, i'm having problems.

i have set up a third forum for someone, and when i install the flashchat integration, i get nothing. no button on the menu, no user list on the forum, and nothing in the features and options section of the admin menu. but i've checked the index.template.php and board.index.php or whatever those two files are, and it DID write the code where it was supposed to be.

ok, the stuff on the main board was a ut8 or utf or whatever ut issue. fixed that. BUT, it's still not showing up in the admin panel, and to top it all off, i now have TWO chat buttons... go figure. i really need the admin stuff, so any help would still be appreciated.

now, i should mention that i have installed the newest version of flashchat, and that i've installed flashchat and the integration mod onto smf 1.1.5.

i can't imagine that the version of flashchat would effect whether or not the integration mod works. i see other people are getting errors when they install this onto 1.1.5, but i haven't gotten any error messages... i just get nothing at all!

any suggestions?
Title: Re: FlashChat Integration
Post by: Twysted on May 28, 2008, 08:28:40 AM
Quote from: roberto174 on May 26, 2008, 05:36:19 PM
Hy, i have SMF1.1.4 with FlashChat, installed using its own brigding mode, then used this mod, but i have a problem, every time a user enters the chat and lets say close the window, or hit the Back button and leave without manually log-off, that user is displayed in Users In Chat area in Index for ever, the only sollution is to enter the chat again and hit the X button to exot, is there a way to automatically log off the user when he\she exists the Chat, cause i have seen that on some SMF forums.
Sorry if that was already posted here, i have only read some pages, there are 42 so, if anyone knows, ill apreciate that.

Thanks
Roberts
the way i have fixed that is if the user is idle x amount of time the system auto bans them for 30 seconds that way it forces the system to log them off
Title: Re: FlashChat Integration
Post by: Sandmansa on May 28, 2008, 11:19:17 PM
Sorry if someone may have already asked this question, I just don't care to look through 42+ pages of this thread to find it.

Anyway, I am using smf 1.1.5 with the DilberMC (http://custom.simplemachines.org/themes/index.php?lemma=80) theme.  I got it all working just fine but the button shows up differently then all the rest.  You can see what I mean by checking out my fiance's site here.  http://www.angieskidney.com/smfbb  I tried to modify it on my own but I am not having much luck.  Here is my current button code.

// The [FlashChat] button
if ($context['user']['is_logged'])
echo'
<td align="center" class="memubg' , $current_action == 'chat' ? '2' : '' , '">
<a href="', $scripturl, '?action=chat"', (!empty($GLOBALS['modSettings']['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($GLOBALS['modSettings']['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
</td>';


What can I do to make this button appear correctly?
Title: Re: FlashChat Integration
Post by: Kindred on May 28, 2008, 11:37:42 PM
well....  first of all, telling us your too lazy to look for the answer is hardly a good way to start asking for help.

second, you'll have to copy the way your specific theme does buttons...
(the mod installs the button the same way the default theme handles it...
Title: Re: FlashChat Integration
Post by: Sandmansa on May 28, 2008, 11:57:45 PM
Quote from: Kindred on May 28, 2008, 11:37:42 PM
well....  first of all, telling us your too lazy to look for the answer is hardly a good way to start asking for help.

My apologies.  It's just that looking through every one of that many pages seemed a bit excessive.

Quote from: Kindred on May 28, 2008, 11:37:42 PM
second, you'll have to copy the way your specific theme does buttons...
(the mod installs the button the same way the default theme handles it...

Okay, here are a few examples.
Home button
// Show the [home] button.
echo'
<td align="center" class="menubg' , $current_action == 'home' ? '2' : '' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>';

Arcade button
// The [Arcade] button.
        echo'
    <td align="center" class="menubg' , $current_action == 'arcade' ? '2' : '' , '">
    <a href="', $scripturl, '?action=arcade">' , $txt['arcade'] , '</a>
    </td>';

PM center button
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo'
<td align="center" class="menubg' , $current_action == 'pm' ? '2' : '' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
</td>';
Title: Re: FlashChat Integration
Post by: Angie on Dialysis on May 29, 2008, 12:10:27 AM
Yeah we did a search and found nothing so it isn't like we didn't try to look.

After reading through all the search results the closest things didn't answer our question :(

The only other thing we could do was manually read every post in this thread .. so that was why he said what he did.

Here are the only related things I could find anyway:

Chat Button Question (http://www.simplemachines.org/community/index.php?topic=231733.msg1510153#msg1510153)

I need a little help on creating a button etc in a theme for chat (http://www.simplemachines.org/community/index.php?topic=228908.msg1470547#msg1470547)

Flashchat Button (http://www.simplemachines.org/community/index.php?topic=226324.msg1452062#msg1452062)

and NONE of them answer our question :(

I am really greatful to Sandman's help but now we need external help as both of us have tried everything :(.

With looking at threads though we fixed other issues ;) Just need this help now :)
Title: Re: FlashChat Integration
Post by: Twysted on May 29, 2008, 05:59:42 AM
does it show when you are logged in? if so post a screen shot plz
Title: Re: FlashChat Integration
Post by: Kindred on May 29, 2008, 07:47:01 AM
hmmm... how does it show up "different" from the others?  (since only logged i users can see it, we can't see by visiting the site)
Title: Re: FlashChat Integration
Post by: Twysted on May 29, 2008, 08:37:22 AM
Quote from: Kindred on May 29, 2008, 07:47:01 AM
hmmm... how does it show up "different" from the others?  (since only logged i users can see it, we can't see by visiting the site)
exactly why i asked for a screen shot, i don't feel like joining another site right now.
Title: Re: FlashChat Integration
Post by: Sandmansa on May 29, 2008, 08:21:51 PM
Quote from: Twysted on May 29, 2008, 05:59:42 AM
does it show when you are logged in? if so post a screen shot plz

Okay, here is how it appears.  Notice with the first pic how Calendar and Members are all caps and bold white?  That is how they are suppose to appear.  But Chat is not bolded or in caps and matches the theme color.  The 2nd image shows that there is someone in chat and I would like to retain that feature if possible.

So what do you think?  Can you help me?
Title: Re: FlashChat Integration
Post by: Kindred on May 29, 2008, 11:44:11 PM
you mistyped...

you have class="memubg' in the chat...   it should be class="menubg'

you typed m instead of n, so you don't get the right CSS
Title: Re: FlashChat Integration
Post by: Sandmansa on May 29, 2008, 11:51:33 PM
 :-[  Oh gezzz.  I can't believe I overlooked that.  ::)

Thank you Kindred.  That got it.
Title: Re: FlashChat Integration
Post by: LadyC on May 30, 2008, 06:15:17 PM
ok, i've got a weird problem. chat is installed. chat is working. integrated chat is installed. i'm the ONLY person who is able to see the chat link in the menu, even though everybody is using the core/default theme. even the other admins can't see the chat link. the only time they can access chat is if someone else is in there, and then it shows who is chatting and they can get in.

i've got this installed on several other boards and have never had this problem. the only difference between this installation and the other boards is that i installed the newest version of flashchat instead of the previous version.

can someone help?
Title: Re: FlashChat Integration
Post by: Sandmansa on May 30, 2008, 09:14:31 PM
I know this sounds like a silly question but have you checked the permissions for all member groups?
Title: Re: FlashChat Integration
Post by: LadyC on May 30, 2008, 09:59:25 PM
there is no permission setting for the flashchat integration... wish there was. but that's not the issue because even the other admins can't see it, and admins have access to everything.

here's a weird thing i just noticed. any new members that register after the chat was installed, can see the link. anyone registered prior to the installation can not.
Title: Re: FlashChat Integration
Post by: LadyC on May 31, 2008, 11:20:08 AM
any suggestions?

here's something else. another mod i installed, the "remove inbox label" mod, is doing the same thing. nobody but me can see the option in their profile. they CAN see the check box, but not the words indicating what it is.

it's almost like THEY are viewing the board with english-ut8 instead of regular english. i did change that board setting after having installed the chat. is it possible that it didn't change it for those who were already registered? and is there a fix for this?
Title: Re: FlashChat Integration
Post by: LadyC on May 31, 2008, 07:08:23 PM
fixed it! i found the answer in the welcome-topic mod thread. i didn't realize i had it set so that users could choose their own language settings, and they WERE all stuck in ut8.
Title: Re: FlashChat Integration
Post by: butchjax on June 03, 2008, 12:57:57 AM
I've searched all over this forum and can't find how to actually get this mod to work properly with the classic Yabb SE theme.  The directions don't exactly match what you expect to find in the files I have, and when I install it, it doesn't really work properly.  Here is a screenshot:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi31.photobucket.com%2Falbums%2Fc379%2Fbutchjax%2Fscreenshot.jpg&hash=19a903053bbf63786997e6bb14c1be6781268db5)

Perhaps just updated instructions as apply to my theme?  Considering it's one of the standards installed automatically with SMF I'm surprised to see no information about it. 

*edit* To be more specific, I can't figure out where to add the last bit of code seen in the instructions here: http://www.daniel15.com/forum/index.php/topic,856.html (http://www.daniel15.com/forum/index.php/topic,856.html).  This part doesn't exist in my theme's code.
Quote// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
So I can't figure out where to add the next bit of code.
Quote// --- Begin FlashChat Integration ---
// Do we need to display a list of the users in the chat?
// Are there users online?
if (!empty($modSettings['fc_showUsers']) && !empty($context['users_chat']))
echo '
', $txt['fc_users_online'], ': ', implode(', ', $context['list_users_chat']), '<br />';
// --- End FlashChat Integration ---
I guessed before and it didn't seem to work.  This last step appears to be the one that's screwing it up though.  Any ideas?
Title: Re: FlashChat Integration
Post by: sorosh1 on June 03, 2008, 04:44:26 AM
Can someone help me?! I have installed the script and after that i installed the mod and everyting works good but i have the fallowing problem:

If i go to a other tab (menu option) like "my messages" then it gives me this message as a pop up:

QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/1.3.41 Server at forum.mysite.com Port 80

How can i resolve this? I really need help with this one! :'(
Title: Re: FlashChat Integration
Post by: shegeeks on June 05, 2008, 01:26:17 AM
We have installed flashchat and have it working. We have the mod installed and all is working except we have no button. Can someone tell us how to get the button for the Absado theme? We are using 1.1.5.

Another question- before installing this mod, the who's online link was only available for admins. Now it's available to all members. We prefer to remove that option and keep it solely for administrators. What do we need to fix to undo that change?

Thanks in advance for any help you can offer.
Jewels
Title: Re: FlashChat Integration
Post by: Kindred on June 05, 2008, 08:18:23 AM
you'll have to change your theme's index.template.php

and probably boardindex.template.php (for the who's online list/link)
Title: Re: FlashChat Integration
Post by: shegeeks on June 05, 2008, 02:57:41 PM
Quote from: Kindred on June 05, 2008, 08:18:23 AM
you'll have to change your theme's index.template.php

and probably boardindex.template.php (for the who's online list/link)

Thank you Kindred. Can you tell me perhaps what we need to add to the index.template.php as I can't find any instructions on what to add there to create the chat button on the absado theme.

And any hint on what we need to edit in the boardindex.template so the who's online is not clickable for members?

Thanks again for your assistance.  :)
Title: Re: FlashChat Integration
Post by: Kindred on June 05, 2008, 04:03:02 PM
look at how the other buttons are handled in your theme...  (i.e. look at Calendar or Logout)

As for the boardindex...   you'll have to add an if (is_admin) { ...} in there...
(If you had this before, you must have done this before as well)
Title: Re: FlashChat Integration
Post by: sorosh1 on June 05, 2008, 04:55:13 PM
Kindred   could you please help me with this one also?

thanks in advance.


Quote from: sorosh1 on June 03, 2008, 04:44:26 AM
Can someone help me?! I have installed the script and after that i installed the mod and everyting works good but i have the fallowing problem:

If i go to a other tab (menu option) like "my messages" then it gives me this message as a pop up:

QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/1.3.41 Server at forum.mysite.com Port 80

How can i resolve this? I really need help with this one! :'(
Title: Re: FlashChat Integration
Post by: Kindred on June 05, 2008, 07:16:32 PM
without looking at your code, I'm not really sure...
Title: Re: FlashChat Integration
Post by: sorosh1 on June 05, 2008, 07:27:13 PM
thanks for your repley.

Witch file do you need, so i can post it in attachment (i am not that good with coding ect sorry :))
Title: Re: FlashChat Integration
Post by: butchjax on June 05, 2008, 07:32:19 PM
No ideas on my questions?  I posted code and references to what is causing a problem...
Title: Re: FlashChat Integration
Post by: en_shua on June 06, 2008, 07:44:47 AM
Quote from: butchjax on June 05, 2008, 07:32:19 PM
No ideas on my questions?  I posted code and references to what is causing a problem...
The only problem that I see with what you have done is that the "Users In Chat" test doesn't appear before the :.  Is that what you are talking about?
Title: Re: FlashChat Integration
Post by: butchjax on June 06, 2008, 09:00:09 AM
That is part of it.  But also, there is a whole chunk of code that the directions say need to be included but I don't know where to put it, nor do I know exactly what it does.  The fact that the text doesn't show up tells me there is more going on because this has worked for so many other people.
Title: Re: FlashChat Integration
Post by: en_shua on June 06, 2008, 09:42:44 AM
The code does basically two things.  One, it helps instruct you how to put the button on your menu.  The second is the little block that you're referring to in the screenshot.  The modification instructions won't be perfect for every user because themes have different code in them.  My theme doesn't have code anywhere like what was in the instructions, so I had to figure it out as well.  In the end, I decided that the button needed to just be a simple button and didn't need the extra things that are being accomplished in the instructions, so I disregarded that part.  But, I made sure the block in your screenshot worked.  From your screenshot, some part of the MOD doesn't look like it did quite right to me, else the text would be appearing.  In your ./Themes/default/languages/Modifications.english.php please check to make sure that you have the FlashChat integration entries.  If for some reason your modified theme has a language file, check it as well.  Also, could you verify that the mod is actually working in the default theme?
Title: Re: FlashChat Integration
Post by: shegeeks on June 06, 2008, 03:53:48 PM
Quote from: Kindred on June 05, 2008, 04:03:02 PM
look at how the other buttons are handled in your theme...  (i.e. look at Calendar or Logout)

As for the boardindex...   you'll have to add an if (is_admin) { ...} in there...
(If you had this before, you must have done this before as well)

Thank you kindred, I have tried creating the button using the code from one of my other buttons, along with some instructions found on daniel15's forum (which appears to not be very active) and I have failed miserably - hence I am here asking for assistance creating the button for my theme.

Regarding the boardindex - no, we never edited that to make the whos online only available to admins, it was just set that way (out of the box I guess), so I have no clue how to get it back to that state-unless someone can explain how to do so.
Title: Re: FlashChat Integration
Post by: en_shua on June 06, 2008, 04:02:47 PM
Quote from: shegeeks on June 06, 2008, 03:53:48 PM
Regarding the boardindex - no, we never edited that to make the whos online only available to admins, it was just set that way (out of the box I guess), so I have no clue how to get it back to that state-unless someone can explain how to do so.
Is that a setting of the theme in the admin control panel?
Title: Re: FlashChat Integration
Post by: sorosh1 on June 06, 2008, 06:14:05 PM
Quote from: sorosh1 on June 05, 2008, 04:55:13 PM
Kindred   could you please help me with this one also?

thanks in advance.


Quote from: sorosh1 on June 03, 2008, 04:44:26 AM
Can someone help me?! I have installed the script and after that i installed the mod and everyting works good but i have the fallowing problem:

If i go to a other tab (menu option) like "my messages" then it gives me this message as a pop up:

QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/1.3.41 Server at forum.mysite.com Port 80

How can i resolve this? I really need help with this one! :'(

Quote from: Kindred on June 05, 2008, 07:16:32 PM
without looking at your code, I'm not really sure...
Quote from: sorosh1 on June 05, 2008, 07:27:13 PM
thanks for your repley.

Witch file do you need, so i can post it in attachment (i am not that good with coding ect sorry :))


Anybody a idea witch file is needed?
Thank in advance.
Title: Re: FlashChat Integration
Post by: shegeeks on June 06, 2008, 06:41:45 PM
Quote from: en_shua on June 06, 2008, 04:02:47 PM
Quote from: shegeeks on June 06, 2008, 03:53:48 PM
Regarding the boardindex - no, we never edited that to make the whos online only available to admins, it was just set that way (out of the box I guess), so I have no clue how to get it back to that state-unless someone can explain how to do so.
Is that a setting of the theme in the admin control panel?

No the admin panel only allows you to turn it on or off- not to modify it in any way.
Title: Re: FlashChat Integration
Post by: butchjax on June 07, 2008, 12:35:25 AM
Thanks en_shua.  I verified all of the other files that should have been modified by the installation and they were fine.  I copied over the files that were in the dafault theme directory in case they were needed and it didn't do anything.  So I'm left with thinking it's something small that is causing the text to not be displayed. 

Has anyone else had this problem?  I'll have to attach my files later otherwise and see if that is helpful. 
Title: Re: FlashChat Integration
Post by: en_shua on June 07, 2008, 10:00:42 AM
Quote from: butchjax on June 07, 2008, 12:35:25 AM
Thanks en_shua.  I verified all of the other files that should have been modified by the installation and they were fine.  I copied over the files that were in the dafault theme directory in case they were needed and it didn't do anything.  So I'm left with thinking it's something small that is causing the text to not be displayed. 

Has anyone else had this problem?  I'll have to attach my files later otherwise and see if that is helpful. 
Well, since those aren't coming across for some reason, for now I'd probably go through the code on your theme and replace the variables with the actuals.
Title: Re: FlashChat Integration
Post by: butchjax on June 07, 2008, 08:05:24 PM
That's what I ended up doing.  I figured out how to do it, and it works for now.  I'd really like to move that little snippet of code to the top, but it keeps producing an error so I'm just going to leave this for a later time.  Thanks for the help.
Title: Re: FlashChat Integration
Post by: Halfhidden on June 09, 2008, 03:46:21 PM
Hi I just installed you mod and it seems to be half working. I'm missing the button that should be on the forum main page. At the bottom of the page I have the correct stats showing who's in the chat, and I see the settings in the admin.server.settings.
What have I done wrong please?
Regards,
Steff
Oops just re read the install guide. I see that this works only with the default theme... I'm using post by Cript.
I've looked through the posts but cannot see a clear set of instructions to add a button like the one in default theme to my theme.
Can any one help please?
Title: Re: FlashChat Integration
Post by: Halfhidden on June 09, 2008, 06:41:27 PM
Not to worry.... I've worked it out.

I used this code to create a button for my theme:

// Show the [FlashChat] button
   if ($context['user']['is_logged'])
   echo'
            <td align="center" class="menubg' ,

$current_action == 'chat' ? '2' : '' , '">
               <a href="', $scripturl, '?action=chat"',

(!empty($GLOBALS['modSettings']['fc_newWindow']) ? '

target="_blank"' : ''), '>', $txt['fc_chat'],

(!empty($GLOBALS['modSettings']['fc_showUserCount']) &&

!empty($context['num_chat']) ? ' [<strong>' .

$context['num_chat'] . ' ' . ($context['num_chat'] == 1 ?

$txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
            </td>';

Thanks anyway.
Title: Re: FlashChat Integration
Post by: Kindred on June 10, 2008, 04:00:04 PM
1- use code tags next time.
2- that is specific to your own theme...  everyone with a non-default theme will have to do something slightly different.
Title: Re: FlashChat Integration
Post by: neotan on June 14, 2008, 04:43:24 AM
Quote from: Jaybird on March 05, 2008, 10:35:59 AM
Maybe I didn't ask my question right.  Let me start over.  I don't have the default theme on.  How do I go about getting the users to show up along with the chat button on the menu with the template (Black Rain v.2) that I'm using.  Could someone please tell me what I need to write in.  Thanks!

JayBird,

I am running Black Rain as well and I need the code for the Chat button in index.template.php

Hi all,

The theme is http://custom.simplemachines.org/themes/index.php?lemma=118 (http://custom.simplemachines.org/themes/index.php?lemma=118)

I have attached my index.template.php

Please assist .. thanks

I had this before ( need to reinstall due to virus injection)

I used :

    // FlashChat
   echo ' <li', $current_action == 'chat' ? ' id="active"' : '', '><a href="', $scripturl, '?action=chat" ><span>', $txt['fc_chat'] , '</span></a></li>';


- but it opens a blank page
Title: Re: FlashChat Integration
Post by: neotan on June 14, 2008, 10:56:23 AM
Recap of FlashChat installation steps:

1. Ensure Flashchat is working fine:

- http://goshopjapan.com/forum/chat/flashchat.php  [ ok ]

2. Perform manual edits of the files ( as some files were not writable ; Package manager gave some errors during installation)

a) ./index.php  - OK

b) ./SSI.php - OK

c) ./Sources/ModSettings.php  - OK

d) ./Sources/Subs.php - OK

e) ./Themes/default/BoardIndex.template.php [ used custom theme) -  OK

f) ./Themes/default/index.template.php [used custom theme]


(ii) Used instead:


// FlashChat
   echo ' <li', $current_action == 'chat' ? ' id="active"' : '', '><a href="', $scripturl, '?action=chat" ><span>', $txt['fc_chat'] , '</span></a></li>';

g) ./Themes/default/languages/Modifications.english.php

- OK

h) ./Themes/default/languages/Help.english.php

- OK

i) ./chat/inc/flashChatTag.php  - OK

j) ./chat/inc/cmses/smfCMS2.php -OK


k)

Code
add_settings.php
This file should be able to execute standalone.

>>> copied to /forum . ensure it's 755 - OK

File Operations
Move the included file "Chat.php" to "./Sources". - OK
Move the included file "Chat.template.php" to "./Themes/default".

>> copied to both custom and default

Move the included file "dologout.php" to "the root directory".



Results : when I clicked on the Chat button , I don't see the flashchat room

- please advise




Title: Re: FlashChat Integration
Post by: Acans on June 14, 2008, 08:25:57 PM
how do you install it so that your regestered forum members can log in
Title: Re: FlashChat Integration
Post by: Halfhidden on June 14, 2008, 08:37:17 PM
Quote from: Basicallyimjesus on June 14, 2008, 08:25:57 PM
how do you install it so that your registered forum members can log in
When you install Flashchat you choose integrate with smf (choose the version you are using) and the registration and login's are handled by smf rather than FlashChat.
You'll need a button to fully integrate this with your smf forum and this is the thread to find it.
Hope this helps?
Title: Re: FlashChat Integration
Post by: Acans on June 14, 2008, 09:16:28 PM
what do i put in these so that it works???
Title: Re: FlashChat Integration
Post by: Halfhidden on June 15, 2008, 02:37:24 PM
OK, firstly we are both going to get told off because this really isn't an smf question, really it's a Flashchat question and should be asked on the Flashchat forum. This would explain why you haven't had a reply from anyone else on this forum.
Secondly I'm pretty sure that the settings you have shown are the manual settings needed to integrate Flashchat with a forum if you set your forum up different than the standard fashion (for instance named tables differently than default or have moved tables or share more than one database).
Go back to the first part of the installation and look for the radio button that allows you to choose the version of smf you use to be integrated with. The wizard does the rest.
Title: Re: FlashChat Integration
Post by: Acans on June 15, 2008, 06:21:36 PM
i tryed but it doesnt support SMF 1.1.5, i lclick on the SMF 1.1 but it just goes back to the first page. Well lucky it only cost $5
Title: Re: FlashChat Integration
Post by: Halfhidden on June 15, 2008, 06:28:55 PM
Trust me it supports 1.1.5. I've been running it for a while now (and many others are doing so on here) as a private chat (administrators only) recently I used this threat to identify how to create the button needed in my theme.
Remove the script and start over again.
But if you are having difficulties with the installation of Flashchat, then post on their forum.
Title: Re: FlashChat Integration
Post by: MissyNL on June 16, 2008, 03:43:16 PM
Quote from: Simplemachines Cowboy on February 03, 2007, 11:41:32 PM
To solve the log out pop-up problem:

Find the dologout.php file in your chat folder.
Make a copy, and place the copy in your main SMF root folder.
Edit the 2nd line of the file to reflect the proper path.
This is mine; FlashChat is in the /chat folder.
require_once('chat/inc/common.php');



Hello... this seems veryyyyyyyy dumb... but i have the same problem and when i wanted to copy the file in the main smf root map there was already a dologout.php present with only


<?php
// Let's go to the right place...
require('chat/dologout.php');
?>


should i change that line?  or should i copy the file in the chat map and place it in the main map en change the line in that file..


Thanks!

Title: Re: FlashChat Integration
Post by: neotan on June 18, 2008, 11:46:43 AM
Quote from: neotan on June 14, 2008, 04:43:24 AM
Quote from: Jaybird on March 05, 2008, 10:35:59 AM
Maybe I didn't ask my question right.  Let me start over.  I don't have the default theme on.  How do I go about getting the users to show up along with the chat button on the menu with the template (Black Rain v.2) that I'm using.  Could someone please tell me what I need to write in.  Thanks!

JayBird,

I am running Black Rain as well and I need the code for the Chat button in index.template.php

Hi all,

The theme is http://custom.simplemachines.org/themes/index.php?lemma=118 (http://custom.simplemachines.org/themes/index.php?lemma=118)

I have attached my index.template.php

Please assist .. thanks

I had this before ( need to reinstall due to virus injection)

I used :

    // FlashChat
   echo ' <li', $current_action == 'chat' ? ' id="active"' : '', '><a href="', $scripturl, '?action=chat" ><span>', $txt['fc_chat'] , '</span></a></li>';


- but it opens a blank page


anyone?
Title: Re: FlashChat Integration
Post by: jamesk on June 18, 2008, 12:11:12 PM
EDIT:  Never mind -- I wasn't really paying attention to the code...

Title: Re: FlashChat Integration
Post by: neotan on June 18, 2008, 12:43:25 PM
Could you elaborate ?


In the meantime, I changed the button code to:

// FlashChat
   echo ' <li', $current_action == 'chat' ? ' id="active"' : '', '><a href="http://goshopjapan.com/forum/chat/chat.php" ><span>', $txt['fc_chat'] , '</span></a></li>';

- which is pretty lame ....

Title: Re: FlashChat Integration
Post by: Kindred on June 18, 2008, 02:13:03 PM
???


if action=chat is not working, then that implies that the mod was never actually/fully installed
Title: Re: FlashChat Integration
Post by: neotan on June 18, 2008, 02:21:24 PM
Quote from: Kindred on June 18, 2008, 02:13:03 PM
???


if action=chat is not working, then that implies that the mod was never actually/fully installed


It's working. Actually, I like it this way . Just modified it to open to a new tab instead of a windows.
Title: Re: FlashChat Integration
Post by: Col on June 19, 2008, 11:11:59 AM
Hi,

I'm having some problems with this in a new theme. I cannot get the number of members logged into chat showing up the menu bar, or the names of those in chat listed on Who's Online.

I did add the code to the boardindex.template, and index.template, but it made no difference. However, of course, the code is missing from the new theme's Modsettings.php file - would this stop the numbers and names from displaying?

What's the best solution? The problem is that the template files for the theme are very different from the default theme (the theme I've been using is based upon the default theme). I'm trying to get this to work with the Alak theme.

Thanks.
Title: Re: FlashChat Integration
Post by: neotan on June 19, 2008, 11:16:48 AM
Quote from: Col on June 19, 2008, 11:11:59 AM
Hi,

I'm having some problems with this in a new theme. I cannot get the number of members logged into chat showing up the menu bar, or the names of those in chat listed on Who's Online.

I did add the code to the boardindex.template, and index.template, but it made no difference. However, of course, the code is missing from the new theme's Modsettings.php file - would this stop the numbers and names from displaying?

What's the best solution? The problem is that the template files for the theme are very different from the default theme (the theme I've been using is based upon the default theme). I'm trying to get this to work with the Alak theme.

Thanks.

HI,

Mine is working fine with Dark Rain (w/ 1.1.5) ....The only issue is that I can't get it to run it within the forum. Check back on my postings as I pretty much pasted the entire steps of customization for this Flashchat

2 Guests, 1 User, 1 User in Chat
Users active in past 15 minutes:
NeoTan
Users currently in chat:
NeoTan (Parenting)
Title: Re: FlashChat Integration
Post by: The Saviour on June 19, 2008, 05:01:34 PM
This Mod is awesome!  I'd like to thank you for it, Daniel...

I have everything working as it should, but I have only one minor problem...you'll have to take a look at the attached image.  It's from the Admin interface...

It would seem the horizontal rule is in the wrong location...and I don't know where to start to even try and fix it.

Is there anyone who may be able to help me with the coding, so the horizontal rule appears where it's supposed to?

I appreciate any and all replies...thanks in advance!

-Steve
Title: Re: FlashChat Integration
Post by: Kindred on June 19, 2008, 06:01:52 PM
I think that is in admin.template.php
Title: Re: FlashChat Integration
Post by: Col on June 19, 2008, 06:04:49 PM
Hi,

Thanks Neotan, but although I appear to have all the code in place, the text does not appear. I have added the language strings, but the names of those logged in, the txt strings, and the number of those logged into chat does not display. I am receiving no errors in the logs.

This is part what should be added to indextemplate.php


// FlashChat!
global $modSettings;
if ($context['user']['is_logged'])
  echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
    <td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
     <a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
    </td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
]]></add>
  </operation>


I tried altering it; I think it is correct. But, nothing shows up:


<?php
// Version: 1.1.3; index
/* This template is, perhaps, the most important template in the theme. It
 contains the main template layer that displays the header and footer of
 the forum, namely with main_above and main_below. It also contains the
 menu sub template, which appropriately displays the menu; the init sub
 template, which is there to set the theme up; (init can be missing.) and
 the linktree sub template, which sorts out the link tree.
 The init sub template should load any data and set any hardcoded options.
 The main_above sub template is what is shown above the main content, and
 should contain anything that should be shown up there.
 The main_below sub template, conversely, is shown after the main content.
 It should probably contain the copyright statement and some other things.
 The linktree sub template should display the link tree, using the data
 in the $context['linktree'] variable.
 The menu sub template should display all the relevant buttons the user
 wants and or needs.
 For more information on the templating system, please see the site at:
 http://www.simplemachines.org/
*/
// Initialize the template... mainly little settings.
function template_init()
{
 global 
$context$settings$options$txt;
 
/* Use images from default theme when using templates from the default theme?
  if this is 'always', images from the default theme will be used.
  if this is 'defaults', images from the default theme will only be used with default templates.
  if this is 'never' or isn't set at all, images from the default theme will not be used. */
 
$settings['use_default_images'] = 'never';
 
/* What document type definition is being used? (for font size and other issues.)
  'xhtml' for an XHTML 1.0 document type definition.
  'html' for an HTML 4.01 document type definition. */
 
$settings['doctype'] = 'xhtml';
 
/* The version this template/theme is for.
  This should probably be the version of SMF it was created for. */
 
$settings['theme_version'] = '1.1.3';
 
/* Set a setting that tells the theme that it can render the tabs. */
 
$settings['use_tabs'] = false;
 
/* Use plain buttons - as oppossed to text buttons? */
 
$settings['use_buttons'] = false;
 
/* Show sticky and lock status seperate from topic icons? */
 
$settings['seperate_sticky_lock'] = true;
}
// The main sub template above the content.
function template_main_above()
{
 global 
$context$settings$options$scripturl$txt$modSettings;
 
// Show right to left and the character set for ease of translating.
 
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
 <meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
 <meta name="description" content="'
$context['page_title'], '" />
 <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?11"></script>
 <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
  var smf_theme_url = "'
$settings['theme_url'], '";
  var smf_images_url = "'
$settings['images_url'], '";
  var smf_scripturl = "'
$scripturl'";
 // ]]></script>
 <title>'
$context['page_title'], '</title>';
 
// The ?11 part of this link is just here to make sure browsers don't cache it wrongly.
 
echo '
 <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?11" media="screen" />
 <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/print.css?11" media="print" />
 <!--[if lte IE 6]>
  <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/ie6lte.css" />
 <![endif]-->
 <!--[if IE 7]>
  <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/ie7.css" />
 <![endif]-->'
;
 
 
// The stylesheet for the right-to-left languages
    
if (!empty($context['right_to_left']))
  echo 
'
    <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/rtl.css?11" media="screen" />';
 
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
  Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
  Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
  Standards compliance mode happens when you use xhtml... */
 
if ($context['browser']['needs_size_fix'])
  echo 
'
 <link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';
 
// Show all the relative links, such as help, search, contents, and the like.
 
echo '
 <link rel="help" href="'
$scripturl'?action=help" target="_blank" />
 <link rel="search" href="' 
$scripturl '?action=search" />
 <link rel="contents" href="'
$scripturl'" />';
 
// If RSS feeds are enabled, advertise the presence of one.
 
if (!empty($modSettings['xmlnews_enable']))
  echo 
'
 <link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';
 
// If we're viewing a topic, these should be the previous and next topics, respectively.
 
if (!empty($context['current_topic']))
  echo 
'
 <link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
 <link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';
 
// If we're in a board, or a topic for that matter, the index will be the board's index.
 
if (!empty($context['current_board']))
  echo 
'
 <link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';
 
// We'll have to use the cookie to remember the header...
 
if ($context['user']['is_guest'])
  
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
 
// Fix for help styles
 
$context['html_headers'] = str_replace('<link rel="stylesheet" type="text/css" href="../localhost/smf11/Themes/default/help.css" />''''<link rel="stylesheet" type="text/css" href="../localhost/smf11/Themes/default/help.css" />');
 
// Output any remaining HTML headers. (from mods, maybe?)
 
echo $context['html_headers'], '
 <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
  var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';
  function shrinkHeader(mode)
  {'
;
 
// Guests don't have theme options!!
 
if ($context['user']['is_guest'])
  echo 
'
   document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
 else
  echo 
'
   smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';
 echo 
'
   document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
   document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
   document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";
   current_header = mode;
  }
 // ]]></script>'
;
 
    echo 
'
</head>
<body>
 <div id="header">
  <div id="container">'
;
  
    
// These two links have been added for accesibility, they will not be shown under normal circumstances
 
echo '
       <h2>'
$txt['forsakenlad_access'], '</h2>
   <ul id="access">
    <li><a href="#topnav">'
$txt['forsakenlad_access_nav'], '</a></li>
    <li><a href="#bodyarea">'
$txt['forsakenlad_access_con'], '</a></li>
   </ul>'
;
  
 
// Show a random news item? (or you could pick one from news_lines...)
 
echo '
        <div id="forum-news">
         <h2>'
$txt[102], ':</h2>
         <p>'
$context['random_news_line'], '</p>
        </div>'
;
 
//BBo logo
 
echo '
   <div id="bbo-logo">
   <a href="


Any ideas as to why this is happening?
Title: Re: FlashChat Integration
Post by: The Saviour on June 19, 2008, 06:38:02 PM
Quote from: Kindred on June 19, 2008, 06:01:52 PM
I think that is in admin.template.php

Thanks for replying, Kindred...

I did some searching of the templates I had to edit and found the problem was located in this template:  ./Sources/ModSettings.php

I made the simple fix...just had to rearrange some '', code...and the problem was resolved.

Thanks, again...
Title: Re: FlashChat Integration
Post by: neotan on June 19, 2008, 07:03:46 PM
Quote from: Col on June 19, 2008, 06:04:49 PM
Hi,

Thanks Neotan, but although I appear to have all the code in place, the text does not appear. I have added the language strings, but the names of those logged in, the txt strings, and the number of those logged into chat does not display. I am receiving no errors in the logs.

This is part what should be added to indextemplate.php


// FlashChat!
global $modSettings;
if ($context['user']['is_logged'])
  echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
    <td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
     <a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
    </td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
]]></add>
  </operation>


I tried altering it; I think it is correct. But, nothing shows up:


<?php
// Version: 1.1.3; index
/* This template is, perhaps, the most important template in the theme. It
 contains the main template layer that displays the header and footer of
 the forum, namely with main_above and main_below. It also contains the
 menu sub template, which appropriately displays the menu; the init sub
 template, which is there to set the theme up; (init can be missing.) and
 the linktree sub template, which sorts out the link tree.
 The init sub template should load any data and set any hardcoded options.
 The main_above sub template is what is shown above the main content, and
 should contain anything that should be shown up there.
 The main_below sub template, conversely, is shown after the main content.
 It should probably contain the copyright statement and some other things.
 The linktree sub template should display the link tree, using the data
 in the $context['linktree'] variable.
 The menu sub template should display all the relevant buttons the user
 wants and or needs.
 For more information on the templating system, please see the site at:
 http://www.simplemachines.org/
*/
// Initialize the template... mainly little settings.
function template_init()
{
 global 
$context$settings$options$txt;
 
/* Use images from default theme when using templates from the default theme?
  if this is 'always', images from the default theme will be used.
  if this is 'defaults', images from the default theme will only be used with default templates.
  if this is 'never' or isn't set at all, images from the default theme will not be used. */
 
$settings['use_default_images'] = 'never';
 
/* What document type definition is being used? (for font size and other issues.)
  'xhtml' for an XHTML 1.0 document type definition.
  'html' for an HTML 4.01 document type definition. */
 
$settings['doctype'] = 'xhtml';
 
/* The version this template/theme is for.
  This should probably be the version of SMF it was created for. */
 
$settings['theme_version'] = '1.1.3';
 
/* Set a setting that tells the theme that it can render the tabs. */
 
$settings['use_tabs'] = false;
 
/* Use plain buttons - as oppossed to text buttons? */
 
$settings['use_buttons'] = false;
 
/* Show sticky and lock status seperate from topic icons? */
 
$settings['seperate_sticky_lock'] = true;
}
// The main sub template above the content.
function template_main_above()
{
 global 
$context$settings$options$scripturl$txt$modSettings;
 
// Show right to left and the character set for ease of translating.
 
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
 <meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
 <meta name="description" content="'
$context['page_title'], '" />
 <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?11"></script>
 <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
  var smf_theme_url = "'
$settings['theme_url'], '";
  var smf_images_url = "'
$settings['images_url'], '";
  var smf_scripturl = "'
$scripturl'";
 // ]]></script>
 <title>'
$context['page_title'], '</title>';
 
// The ?11 part of this link is just here to make sure browsers don't cache it wrongly.
 
echo '
 <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?11" media="screen" />
 <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/print.css?11" media="print" />
 <!--[if lte IE 6]>
  <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/ie6lte.css" />
 <![endif]-->
 <!--[if IE 7]>
  <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/ie7.css" />
 <![endif]-->'
;
 
 
// The stylesheet for the right-to-left languages
    
if (!empty($context['right_to_left']))
  echo 
'
    <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/rtl.css?11" media="screen" />';
 
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
  Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
  Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
  Standards compliance mode happens when you use xhtml... */
 
if ($context['browser']['needs_size_fix'])
  echo 
'
 <link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';
 
// Show all the relative links, such as help, search, contents, and the like.
 
echo '
 <link rel="help" href="'
$scripturl'?action=help" target="_blank" />
 <link rel="search" href="' 
$scripturl '?action=search" />
 <link rel="contents" href="'
$scripturl'" />';
 
// If RSS feeds are enabled, advertise the presence of one.
 
if (!empty($modSettings['xmlnews_enable']))
  echo 
'
 <link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';
 
// If we're viewing a topic, these should be the previous and next topics, respectively.
 
if (!empty($context['current_topic']))
  echo 
'
 <link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
 <link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';
 
// If we're in a board, or a topic for that matter, the index will be the board's index.
 
if (!empty($context['current_board']))
  echo 
'
 <link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';
 
// We'll have to use the cookie to remember the header...
 
if ($context['user']['is_guest'])
  
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
 
// Fix for help styles
 
$context['html_headers'] = str_replace('<link rel="stylesheet" type="text/css" href="../localhost/smf11/Themes/default/help.css" />''''<link rel="stylesheet" type="text/css" href="../localhost/smf11/Themes/default/help.css" />');
 
// Output any remaining HTML headers. (from mods, maybe?)
 
echo $context['html_headers'], '
 <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
  var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';
  function shrinkHeader(mode)
  {'
;
 
// Guests don't have theme options!!
 
if ($context['user']['is_guest'])
  echo 
'
   document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
 else
  echo 
'
   smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';
 echo 
'
   document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
   document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
   document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";
   current_header = mode;
  }
 // ]]></script>'
;
 
    echo 
'
</head>
<body>
 <div id="header">
  <div id="container">'
;
  
    
// These two links have been added for accesibility, they will not be shown under normal circumstances
 
echo '
       <h2>'
$txt['forsakenlad_access'], '</h2>
   <ul id="access">
    <li><a href="#topnav">'
$txt['forsakenlad_access_nav'], '</a></li>
    <li><a href="#bodyarea">'
$txt['forsakenlad_access_con'], '</a></li>
   </ul>'
;
  
 
// Show a random news item? (or you could pick one from news_lines...)
 
echo '
        <div id="forum-news">
         <h2>'
$txt[102], ':</h2>
         <p>'
$context['random_news_line'], '</p>
        </div>'
;
 
//BBo logo
 
echo '
   <div id="bbo-logo">
   <a href="


Any ideas as to why this is happening?


This part is specific to the template 's code . See what you have fpr Calendar , Home , etc buttons. Or you can visit Daniel15's website ... there are some examples there for various templates

Title: Re: FlashChat Integration
Post by: Col on June 19, 2008, 07:21:31 PM
I've just realised that I missed out:


  global $modSettings;


From 'Chat' entry on the menu bar. The number of members in chat is now displayed. However, the list of who's in chat is still missing. Is there some similar code I should be adding to make the names show up? There is nothing indicated in the modification file.

I'll visit Danial's website. I did have look before, and found nothing that seemed related. I'll make a post instead.

Thanks.
Title: Re: FlashChat Integration
Post by: Col on June 19, 2008, 08:41:20 PM
Hi Neotan,

I was about to post at Daniel's forum, but daniel has not even logged in there for nearly a month. I guess he has better things to do these days - fair enough, I guess.

So, does anyone know of any obvious reasons why the list of the members logged into chat might not show up in Who's Online?
Title: Re: FlashChat Integration
Post by: neotan on June 19, 2008, 09:16:05 PM
Quote from: Col on June 19, 2008, 08:41:20 PM
Hi Neotan,

I was about to post at Daniel's forum, but daniel has not even logged in there for nearly a month. I guess he has better things to do these days - fair enough, I guess.

So, does anyone know of any obvious reasons why the list of the members logged into chat might not show up in Who's Online?

Not sure. You must have missed out certain functions etc. Run thru the edits  again
Title: Re: FlashChat Integration
Post by: Col on June 20, 2008, 09:46:19 AM
I guess I was too tired to think straight. I looked at it again just now, and although I made no 'mistakes', I should have noticed that when copying the code from Daniel's site, the line returns become messed up for some reason, so that some of the code was being treated as comment. It is odd behaviour, as I only copied it to Notepad, so it should have been safe. I've just tried it again, and the same messing-up of line returns occurs. Well, it is fixed now.

Thanks.
Title: Re: FlashChat Integration
Post by: neotan on June 20, 2008, 09:59:24 AM
Great !!
Quote from: Col on June 20, 2008, 09:46:19 AM
I guess I was too tired to think straight. I looked at it again just now, and although I made no 'mistakes', I should have noticed that when copying the code from Daniel's site, the line returns become messed up for some reason, so that some of the code was being treated as comment. It is odd behaviour, as I only copied it to Notepad, so it should have been safe. I've just tried it again, and the same messing-up of line returns occurs. Well, it is fixed now.

Thanks.


Great !!!
Title: Re: FlashChat Integration
Post by: shegeeks on June 20, 2008, 10:29:17 PM
Well after multiple attempts messing with this darn chat button I finally got it to show up in our Absado theme. But of course- it doesn't work! (Hey it's says chat and looks nice so I'm halfway there right???) When you click the button it's going to she-geeks.com/forum/chat. I need it to go to she-geeks.com/forum/chat/flashchat. And of course I have no clue where to make that change. :(

Can anyone advise me what file I need to fix now?
Thanks

Edit: holy toledo I got it working using something neotan posted (thank you!). But my issue now is, it's not opening the chat in a new tab or window-no matter how many times I check that box for it. And also it is forcing you to login, when aren't you supposed to be logged in already? Can anyone help me with those issues? And if someone could help me with disabling the who's online for everyone but admins--I'll be a real happy camper! ;D
Title: Re: FlashChat Integration
Post by: Kindred on June 22, 2008, 07:11:32 AM
1- it sounds like you did not install flashchat bridged to SMF
2- by modifying the button code, you probably removed the ability to define "new window or same window"

(in what directory did you install flashchat?)

disabling the who's online where?
Title: Re: FlashChat Integration
Post by: GMCbris on June 24, 2008, 11:51:54 AM
I also am having trouble with my button on a custom theme... I have searched Daniels site (But he hasnt responded to the 20 or so similar requests there) and I am now asking for the assistance of the very helpful SMF community

I have a text button that looks ugly

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpix.nofrag.com%2F7%2F2%2Fc%2F3197de619b70379e3e96a710373e8.jpg&hash=de1c7b184ef9a47a35ecd935c92a1ed879358f24) (http://pix.nofrag.com/7/2/c/3197de619b70379e3e96a710373e8.html)

So I have been trying to make it look like the other buttons next to it... I have had a go at the code and came up with this... and it almost works.. it just sends the uses to the left hadnd side of the screen and the CHAT name is no where near the image I made for it

// FlashChat!
   global $modSettings;
   if ($context['user']['is_logged'])
      echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td>',($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/chatbutton.GIF" alt="' . $txt[182] . '"/>' : ''),'
            </td><td>&nbsp;<a href="', $scripturl, '?action=chat">Chat</a></td>', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
            </td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


This is what the rest of the buttons look like... well the code for them anyway

   // How about the [search] button?
   if ($context['allow_search'])
      echo '<td>',($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/esearch.gif" alt="' . $txt[182] . '"/>' : ''),'
            </td><td>&nbsp;<a href="', $scripturl, '?action=search">Explore</a></td>';


This is the code that they gave me that didnt look great

// FlashChat! global $modSettings; if ($context['user']['is_logged']) echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , ' <td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '"> <a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a> </td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


ANY HELP IS APPRECIATED...


GMC
Title: Re: FlashChat Integration
Post by: Nugget on June 24, 2008, 01:47:32 PM
I have FlashChat working in SMF 1.05 using a modified default theme - no real major problems.
The only small thing I noticed is that if a user closes their browser without logging out they appear to stay logged in - hence the user count is wrong. The user count can say (3) for example on the forum heading but there will be nobody in there. I think this is becasue of the way Flashchat works, not a fault of the SMF mod.

I wish Flashchat had better admin features - I'd like to be able to prevent users from creating rooms, set colors for user groups, delete history, lock themes and a few other things.

Nugget ><>
Title: Re: FlashChat Integration
Post by: Kindred on June 24, 2008, 02:28:58 PM
you can do most of those things in Flashchat... go to the flashchat forums and ask about them.
Title: Re: FlashChat Integration
Post by: Nugget on June 24, 2008, 02:44:11 PM
Yes - I should have said without editing the config file - I think they should be options in Admin.

Nugget ><>
Title: Re: FlashChat Integration
Post by: Kindred on June 24, 2008, 04:57:31 PM
of course, with a bridged/integrated flashchat, none of those permission features would be usable anyway... (Flashchat uses the forums permission/user features)
Title: Re: FlashChat Integration
Post by: Nugget on June 24, 2008, 05:08:53 PM
I have modified it to do all I want - and what I dont want user to be able to do, by editing the inc/layout/user.php file

It would nice to have all those options in an admin panel with tick boxes... :)
Title: Re: FlashChat Integration
Post by: Kindred on June 24, 2008, 05:35:46 PM
but then there would be more database queries...

by setting it in a file that sets the values once, flashchat cuts down on server usage.
Title: Re: FlashChat Integration
Post by: unome on June 25, 2008, 09:41:45 AM
anyone know if this will be updated for version 2 ?
Title: Re: FlashChat Integration
Post by: shegeeks on June 25, 2008, 11:38:24 AM
Quote from: Kindred on June 22, 2008, 07:11:32 AM
1- it sounds like you did not install flashchat bridged to SMF
2- by modifying the button code, you probably removed the ability to define "new window or same window"

(in what directory did you install flashchat?)

disabling the who's online where?

Thank you kindred. When we did the installation, we did use the installation instructions to bridge it with SMF. We installed it in forum/chat directory.

As to who's online - the link used to be available to admins only. Since the flashchat installation it is now available to all members. We don't particularly like members being able to click the link and be taken to a list of what everyone is doing on the forum. So we would like to disable that feature except for admins.

Can you look at my button code and tell me if I accidentally disabled the new window option somehow?

Thanks again
jewels


// The [chat]!
if ($context['user']['is_logged'])
echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
<a href="http://www.she-geeks.com/forum/chat/flashchat"' , (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
</td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Title: Re: FlashChat Integration
Post by: Acans on June 26, 2008, 07:59:05 AM
Hey, how do i make more membergroups Admin or Mod on the flashchat besides Administrator and Global Moderator
Title: Re: FlashChat Integration
Post by: Kindred on June 26, 2008, 05:26:35 PM
again... this sort of question belongs over on the flashchat support fourms.
Short answer: modify smfcms2.php
Title: Re: FlashChat Integration
Post by: GMCbris on June 27, 2008, 12:39:28 AM
Quote from: GMCbris on June 24, 2008, 11:51:54 AM
I also am having trouble with my button on a custom theme... I have searched Daniels site (But he hasnt responded to the 20 or so similar requests there) and I am now asking for the assistance of the very helpful SMF community

I have a text button that looks ugly

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpix.nofrag.com%2F7%2F2%2Fc%2F3197de619b70379e3e96a710373e8.jpg&hash=de1c7b184ef9a47a35ecd935c92a1ed879358f24) (http://pix.nofrag.com/7/2/c/3197de619b70379e3e96a710373e8.html)

So I have been trying to make it look like the other buttons next to it... I have had a go at the code and came up with this... and it almost works.. it just sends the uses to the left hadnd side of the screen and the CHAT name is no where near the image I made for it

// FlashChat!
   global $modSettings;
   if ($context['user']['is_logged'])
      echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td>',($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/chatbutton.GIF" alt="' . $txt[182] . '"/>' : ''),'
            </td><td>&nbsp;<a href="', $scripturl, '?action=chat">Chat</a></td>', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
            </td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


This is what the rest of the buttons look like... well the code for them anyway

   // How about the [search] button?
   if ($context['allow_search'])
      echo '<td>',($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/esearch.gif" alt="' . $txt[182] . '"/>' : ''),'
            </td><td>&nbsp;<a href="', $scripturl, '?action=search">Explore</a></td>';


This is the code that they gave me that didnt look great

// FlashChat! global $modSettings; if ($context['user']['is_logged']) echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , ' <td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '"> <a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a> </td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


ANY HELP IS APPRECIATED...


GMC

Can some one point me in the right direction?
Title: Re: FlashChat Integration
Post by: hack3rs on June 27, 2008, 07:17:44 AM
When i install this mod and go to my homepage the homepage goes blank and white  nuthing loads up why?

i am using FS Gray Theme and smf 1.1.5
Title: Re: FlashChat Integration
Post by: Acans on June 28, 2008, 03:56:19 AM
Quote from: hack3rs on June 27, 2008, 07:17:44 AM
When i install this mod and go to my homepage the homepage goes blank and white  nuthing loads up why?

i am using FS Gray Theme and smf 1.1.5

congrationlations, you stuffed it up, its happened to me twice
Title: Re: FlashChat Integration
Post by: trenchteam on July 02, 2008, 05:32:59 PM
Is it possible to give permissions for the chatroom?  I would like only certain membergroups to enter.
Title: Re: FlashChat Integration
Post by: Johno69 on July 02, 2008, 09:39:48 PM
Hi,

I have SMF + Joomla wrapped. I have had Flash Chat for a long time now but it was an addon for the Joomla side of things.

Is there a way I can show how many are chatting in flashchat in my SMF stats without installing the full mod?

Thanks.
Title: Re: FlashChat Integration
Post by: Kindred on July 02, 2008, 09:52:59 PM
of course there is...   you'll just have to get the code in yourself...

or use something like the whosonline2 module that I made for the bridge....
Title: Re: FlashChat Integration
Post by: Johno69 on July 03, 2008, 12:51:29 AM
I do use that, although it doesnt seem to show any chatters ever (even when there is some)

But I was hoping to get the info into the forum info ceter, as per this mod.
Title: Re: FlashChat Integration
Post by: Kindred on July 03, 2008, 12:26:31 PM
ah... that is because the whosonline2 module assumes
#1 you have the smf-joomla bridge installs
#2  you have integrated Flashchat to SMF.

You'll noticed I said:
Quote from: Kindred on July 02, 2008, 09:52:59 PM
or use something like the whosonline2 module that I made for the bridge....
Title: Re: FlashChat Integration
Post by: Johno69 on July 03, 2008, 06:38:43 PM
Quote from: Kindred on July 03, 2008, 12:26:31 PM
#1 you have the smf-joomla bridge installs
#2  you have integrated Flashchat to SMF.

I have # 1 but not # 2 as I said here:

Quote from: Johno69 on July 02, 2008, 09:39:48 PM
I have had Flash Chat for a long time now but it was an addon for the Joomla side of things.

Quote from: Kindred on July 03, 2008, 12:26:31 PM
You'll noticed I said:

Yes I did notice thanks. I'm not really worried about the chatters in the module but looking for a solution to get them listed in the info center.

I will keep looking for a way.

Thanks
Title: Re: FlashChat Integration
Post by: Kindred on July 03, 2008, 07:43:28 PM
look at the code that I used....   or look at the code the way this mod does it...  or look at the code provided on the tufat forums. All three places have examples that you can modify to work with your set up.
Title: Re: FlashChat Integration
Post by: ssufian on July 07, 2008, 03:37:04 AM
I have this weird problem...

I have installed Flash Chat in my SMF 1.1.5 and integrate it with my forum together with this mod

The weird is most of my forum members get banned from chat but when I check there was no one in the ban list

How to solve this problem?



Title: Re: FlashChat Integration
Post by: Kindred on July 07, 2008, 02:52:30 PM
the ban list from chat is not the problem.

Also please note that FLASHCHAT problems should be brought up on the FLASHCHAT support forums, this thread is for support of a specific mod package for SMF, not for general flashchat questions.

That being said...
Please use search?
Your question has been answered boith here and on the tufat support fourms.
You have to modify smf2cms.php to include your extra membergroup ID#s
Title: Re: FlashChat Integration
Post by: Acans on July 13, 2008, 06:29:58 AM
Question, will this be converted to SMF 2.0.3.1, i've installed one and would love to see this in SMF 2.0.3.1
Title: Re: FlashChat Integration
Post by: MoreBloodWine on July 13, 2008, 05:24:54 PM
Edit: I just checked and the open in new window and show number of users on the button both features work fine in the default theme so something about my custom theme is preventing them from working even with all the edits properly coded in. So damned if I know whats up lol... but I would like to be able to get those two options to work with my custom theme if I can.

I'm having some issues with a couple of the options for this mod... This (Display Users in Chat at top of forum?) & (Display chat window "inside" forum?) seem to work ok but the following doesnt appear to work at al and I know for a fact I did all the edits for my theme right.

1. When I set the option (Open chat in new window?) it doesnt seem to want to open it in a new window, it uses the existing window regardless of how that options set.

2. The option (Show number of users on Chat button?) doesnt seem to be working either, but then I noticed this, what does it mean ?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.choice-online-gaming.com%2Fimages%2Fchatbutton.jpg&hash=7fbb5d149621927e44e798b183bf2cc5e1ab3a59)
Title: Re: FlashChat Integration
Post by: Acans on July 14, 2008, 01:27:34 AM
its not really need, it just sayes on the tab like this "2chat" or "3Chat" but if you have the show users on top of forums its not needed
Title: Re: FlashChat Integration
Post by: MoreBloodWine on July 14, 2008, 01:33:58 AM
I want what I want simply because I want it and the mods supposed to have it...
Title: Re: FlashChat Integration
Post by: MoreBloodWine on July 14, 2008, 03:08:14 AM
Ok so I fixed the problem with the popup and the number thing not showing on the button. It seems the edit was right but entered wrong in my index.template.php file...

It was like this...

// FlashChat!   global $modSettings;

I bumped the global line down...

// FlashChat!   
   global $modSettings;

Also, how do I get it to stop showing the room name under users online, right now it looks like this.

Users currently in chat:
MoreBloodWine (EoJ Lounge)

Since I only have one room it doesnt make sense to have the room name listed, that and it makes things the user online section really huge if you have alot of people logged into chat because for every user it lists the room name.

Edit: Other than the above I've just one last curiosity question. When no ones in chat and you have the button set to show the number of users it just says Chat. Well, what do I need to do to get it to show ( Chat [0 Users] ) when no ones in it. I know thats kind of a stupid question because generally if no ones in it nothing will show but still what do I need to change to get it to show [0 Users] on the button when no ones logged in.
Title: Re: FlashChat Integration
Post by: TheEdgeGER on July 31, 2008, 06:43:22 PM
Looks like these two files cannot be found as I tried to install it:
12.         ./chat/inc/flashChatTag.php     File not found
13.        ./chat/inc/cmses/smfCMS2.php    File not found
Title: Re: FlashChat Integration
Post by: Kindred on July 31, 2008, 09:24:16 PM
you have to install flashchat FIRST, before you can install this mod.
Title: Re: FlashChat Integration
Post by: TheEdgeGER on August 01, 2008, 09:42:05 AM
Ok, thougt i can manage that in the settings later. I'd already installed it, but in another directory.
Title: Re: FlashChat Integration
Post by: zeta4 on August 01, 2008, 11:21:35 AM
Hello Everyone. I have a few things that I need help with. I apologize if its been ocvered, but I can't seem to locate a direct answer per say...

I am using smf 1.1.5 and flashchat. The installed worked without a problem, there is a chat button at the top of my forum and it directs me to the chat room. However my user can not log on automatically from the forum.

Does anyone have a solution for the following:

What do I need to correct to get them to log into the chatroom lobby w/out having to re-enter their user ID

Also what file/table do I have to amend so I can see how many people are in the chat room as mention in this thread

Also, does anyone know how to put passwords on the rooms I created in the chatroom

Thanks you in advance for your help.

zeta
Title: Re: FlashChat Integration
Post by: Kindred on August 01, 2008, 04:29:02 PM
you have to re-install flashchat bridged to SMF.   That will handle your login problems.

seeing how many people in the chat is part of this mod...

Creating PW protected rooms is done through FC admin
Title: Re: FlashChat Integration
Post by: zeta4 on August 01, 2008, 06:07:03 PM
 :(  Do I have to uninstall it and then reinstall it?.. and How do I get to ----> FC admin.. also I want to make sure I am installing the correct mod.. is it the mod in the first post of this thread?...thanks
Title: Re: FlashChat Integration
Post by: Kindred on August 01, 2008, 06:12:32 PM
there is no FC uninstall.

Just run FC install again and choose SMF 1.1 to integrate with....

FC admin is usually  ....chat/admin.php
Title: Re: FlashChat Integration
Post by: zeta4 on August 01, 2008, 08:42:10 PM
Quote from: Kindred on August 01, 2008, 06:12:32 PM
there is no FC uninstall.

Just run FC install again and choose SMF 1.1 to integrate with....

FC admin is usually  ....chat/admin.php

Kindred - thanks so much.. this worked just like you said.. the only problem I have now is that it didn;t give me the option to check the box to see how many people are in chat.. is there way to fixed that...

and again thanks for all of your help..

Title: Re: FlashChat Integration
Post by: Kindred on August 01, 2008, 09:11:58 PM
THAT box is in the MOD config (SMF admin)
Title: Re: FlashChat Integration
Post by: zeta4 on August 01, 2008, 09:30:55 PM
Quote from: Kindred on August 01, 2008, 09:11:58 PM
THAT box is in the MOD config (SMF admin)

Don't shoot me.. but how do I get there..  :o
Title: Re: FlashChat Integration
Post by: JimM on August 01, 2008, 10:21:25 PM
Admin > Features and Options > Basic Features

You may need to scroll down a bit but the setting are right there.
Title: Re: FlashChat Integration
Post by: zeta4 on August 01, 2008, 11:51:55 PM
Quote from: JimM on August 01, 2008, 10:21:25 PM
Admin > Features and Options > Basic Features

You may need to scroll down a bit but the setting are right there.

I Looked.. it wasn't there.. any other options...

Message edited to read... wasn't in lieu of was...
Title: Re: FlashChat Integration
Post by: tk2012 on August 02, 2008, 12:20:27 AM
There are options in the FC Admin Panel.  You have to access it from a link. 

If you want technical info for FC, they have a great forum and cover the FC end of things. (along with some info about specific forums like 1.1.X) 
Title: Re: FlashChat Integration
Post by: Kindred on August 03, 2008, 02:14:46 PM
note...   removed message that was a thinly veiled promotion of another system/mod. Doesn't belong in this thread.
Title: Re: FlashChat Integration
Post by: zeta4 on August 03, 2008, 08:41:55 PM
Quote from: JimM on August 01, 2008, 10:21:25 PM
Admin > Features and Options > Basic Features

You may need to scroll down a bit but the setting are right there.

Reposting due to typo... I checked there and the option wasn't there. Anymore suggestions... thanks in advance
Title: Re: FlashChat Integration
Post by: JimM on August 04, 2008, 11:10:30 AM
Did you find any of the FlashChat options there?
Title: Re: FlashChat Integration
Post by: zeta4 on August 05, 2008, 11:32:08 AM
Yes.. I located all of the, except for that option..
Title: Re: FlashChat Integration
Post by: JimM on August 05, 2008, 03:54:36 PM
So you have all the other options but not the one with the arrow pointing to it?  Is there a blank there?
Title: Re: FlashChat Integration
Post by: @L3 on August 09, 2008, 08:14:03 AM
Now it's possible to install the new version 5.0.2 stable,......how to remove the recent 4.7.12 and post the final release?!?!? :(
I have made of the tests in local but not there are successful! :(

Title: Re: FlashChat Integration
Post by: MoreBloodWine on August 10, 2008, 05:06:25 AM
Quote from: MoreBloodWine on July 14, 2008, 03:08:14 AM
Ok so I fixed the problem with the popup and the number thing not showing on the button. It seems the edit was right but entered wrong in my index.template.php file...

It was like this...

// FlashChat!   global $modSettings;

I bumped the global line down...

// FlashChat!   
   global $modSettings;

Also, how do I get it to stop showing the room name under users online, right now it looks like this.

Users currently in chat:
MoreBloodWine (EoJ Lounge)

Since I only have one room it doesnt make sense to have the room name listed, that and it makes things the user online section really huge if you have alot of people logged into chat because for every user it lists the room name.

Edit: Other than the above I've just one last curiosity question. When no ones in chat and you have the button set to show the number of users it just says Chat. Well, what do I need to do to get it to show ( Chat [0 Users] ) when no ones in it. I know thats kind of a stupid question because generally if no ones in it nothing will show but still what do I need to change to get it to show [0 Users] on the button when no ones logged in.
Title: Re: FlashChat Integration
Post by: pcmpete on August 15, 2008, 10:03:58 PM
I have Flashchat 5.0.4 installed and running, but when I try to install the mod into SMF 1.1.5 but I get the following error:

./chat/inc/flashChatTag.php  Test failed

What do I do to solve this problem?

Thanks
Title: Re: FlashChat Integration
Post by: Kindred on August 16, 2008, 12:54:59 PM
There is a chance that the 5.x series of flashchcat changed the files that were included...    This mod was designed to work with SMF 1.1.x and flashchat 4.x
Title: Re: FlashChat Integration
Post by: mcalan2001 on August 23, 2008, 05:54:08 AM
SMF 1.1.5  FC 4.7.12

Two common problems are login names being displayed rather than pubic name and some groups being banned from chat.
I couldn't find the answers here or on the Tufat forum, so worked it out for myself. These mods seem to work, but be careful because I don't fully understand what I'm doing.

The file to modify is:
\chat\inc\cmses\smfCMS2.php

To change the displayed name (this might make a mess in non-english character sets):
Replace
$this->getUserStmt   = new Statement("SELECT ID_MEMBER AS id, memberName AS login, ID_GROUP as status, gender, additionalGroups FROM {$GLOBALS['db_prefix']}members WHERE ID_MEMBER=? LIMIT 1");
$this->getPhotoStmt  = new Statement("SELECT filename FROM {$GLOBALS['db_prefix']}attachments WHERE ID_MEMBER=? LIMIT 1");
$this->getUsersStmt  = new Statement("SELECT ID_MEMBER as id, memberName as login FROM {$GLOBALS['db_prefix']}members");

With
$this->getUserStmt   = new Statement("SELECT ID_MEMBER AS id, realName AS login, ID_GROUP as status, gender, additionalGroups FROM {$GLOBALS['db_prefix']}members WHERE ID_MEMBER=? LIMIT 1");
$this->getPhotoStmt  = new Statement("SELECT filename FROM {$GLOBALS['db_prefix']}attachments WHERE ID_MEMBER=? LIMIT 1");
$this->getUsersStmt  = new Statement("SELECT ID_MEMBER as id, realName as login FROM {$GLOBALS['db_prefix']}members");


This is the bit of code that controls which groups can access the chatroom:
This isn't a bit of code to paste in, you must adapt it to what you want.
//  if($status == 0 || ($status > 3 && $status < 99 )) return ROLE_USER;
  if(in_array(14, $additionalGroups)) return ROLE_USER;

//  if(in_array(0, $additionalGroups)) return ROLE_USER;

If the first line wasn't commented out, it would allow all groups to access chat. You just need to change the '9' to '99' if you have any problems with groups being excluded.
The next line I added. Group '14' is the additional group on my board, that I wanted to have access to chat. So only admins, moderators and members of this additional group can see the chatroom.
The last line also needs commenting out, if you are restricting access.
Title: Re: FlashChat Integration
Post by: Kindred on August 23, 2008, 09:24:27 AM
both of these issues have been covered, in detail over on tufat forums...
Title: Re: FlashChat Integration
Post by: mcalan2001 on August 23, 2008, 09:35:46 AM
Quote from: Kindred on August 23, 2008, 09:24:27 AM
both of these issues have been covered, in detail over on tufat forums...
Where? Because I couldn't find them.
There are plenty of posts in this thread that also say they can't find them, but no links.
Just trying to be helpful.
Title: Re: FlashChat Integration
Post by: Kindred on August 23, 2008, 12:07:35 PM
not sure exactly where... but I know they are there, because I (among others) have posted them
Title: Re: FlashChat Integration
Post by: tk2012 on August 24, 2008, 12:01:19 AM
This one talks about the diplay name / login name on the other forum:

http://forum.tufat.com/showthread.php?t=50984
Title: Re: FlashChat Integration
Post by: DistantJ on August 25, 2008, 06:39:53 AM
Is it possible to set permissions with this thing? I'd like it so that only certain membergroups can enter the chat.
Title: Re: FlashChat Integration
Post by: Kindred on August 25, 2008, 07:54:11 AM
Quote from: DistantJ on August 25, 2008, 06:39:53 AM
Is it possible to set permissions with this thing? I'd like it so that only certain membergroups can enter the chat.

holy mackeral...    didn't you even bother to read one page back? This was just discussed
http://www.simplemachines.org/community/index.php?topic=139769.msg1672764#msg1672764

no, there is no way to do it within the admin interface... but you can modify the code.
Title: Re: FlashChat Integration
Post by: DistantJ on August 25, 2008, 08:41:54 AM
Of course I didn't, this is a 49 page topic. Thanks for the help though.
Title: Re: FlashChat Integration
Post by: Kindred on August 25, 2008, 05:23:24 PM
(so what if it is a 49 page topic?    It's your responsibility to use Search and read through the topic, ESPECIALLY in a 49 (or more) page topic in which your questions has likely already been answered.)

Even if you're too lazy to do the whole topic, reading at least the previous page would be a start.
Title: Re: FlashChat Integration
Post by: dpiffy on August 25, 2008, 06:13:07 PM
Ok before anyone gets upset, I have searched on here, and gone back to I believe page 46, about the time where the topics posted are about June, which would be before the new FlashChat 5.04 was even released. I didnt find what I am looking for.

Obviously there is no new updated mod for Flashchat integration of the new 5.04 version for the new version of SMF 2.0 Beta 3.1. I uploaded and tried the integration mod, but it says right away that its not compatible with the latest SMF beta version. I did the advanced install settings and changed the version of SMF to appear as 1.1.5, then it let me click the "Apply Mod" link, however, there are way too many failed tests for it to install, it cant find several tags in such files as "Index.template.php" for example. I went through the manual install through tufats.com integration support (although it is for an older SMF version). I opened the "index.template.php" file, searched for what it tells me to search for, but the coding in SMF 3.1 beta is totally different apparently.

Any ideas on a new mod release that supports beta 3.1? or anyone know a basic way i can manually integrate and what files and what I need to search for and replace and add, etc.???

Any help appreciated.
Title: Re: FlashChat Integration
Post by: Kindred on August 25, 2008, 08:38:30 PM
I know several people have this working with smf 2.0. If I recall there are 3 lines of code to change, but I'm not certain of that...   I think I saw the updates posted over on tufat...

but there is no official update of this mod for 2.0 or flashchat 5.x
Title: Re: FlashChat Integration
Post by: dpiffy on August 25, 2008, 09:37:32 PM
Well i just went back there on Tufat forum for the 3rd time, and cant find this. I have searched his site, which is a bit harder cause it requires 4 character minimum search word (SMF=3) lol. Ive tried all variations in searching it, recent posts.

The closest thing I found that had to do with SMF 2.0 beta was a code someone came up with to change the greeting from being username to the display name instead. not what im looking for. perhaps you have a direct link that you can post for that, or any other tip to find it better and easier?

thanks again.
Title: Re: FlashChat Integration
Post by: dpiffy on August 27, 2008, 06:48:37 PM
well.... anyone??
Title: Re: FlashChat Integration
Post by: dpiffy on August 29, 2008, 01:45:23 AM
Kindred?   :-\
Title: Re: FlashChat Integration
Post by: Mr.IT on August 31, 2008, 07:08:00 PM
Can i use Flash Chat Integration on Version 1.1.5 . How to use it !
Title: Re: FlashChat Integration
Post by: dpiffy on September 04, 2008, 07:09:05 PM
It's been over a week. I looked at all the other sites again and still am not fiding anything for working or at least code to work with the latest flashchat version for the smf 2.0 beta 3.

anyone else have any luck or no any more than i do? thanks in advance.
Title: Re: FlashChat Integration
Post by: cryptoknight on September 10, 2008, 12:18:43 AM
I'm running into the same problem.

12.   Execute Modification   ./chat/inc/flashChatTag.php   Test failed

Obviously I'm using Flash Chat v5... has anybody figured out what we have to do to make it work with FC 5?
Title: Re: FlashChat Integration
Post by: Kindred on September 10, 2008, 07:44:14 AM
well, since the changes to flashchat were done to fix some errors, I assume flashchat5 has corrected those errors and you don't have to make them any more.
Title: Re: FlashChat Integration
Post by: cryptoknight on September 10, 2008, 08:07:08 AM
Actually no... if I use this mod with fc 5... it kills my board... so I went back to 4.71.2

However... I now appear to have it installed... minus one problem.

My button is missing...

BUT, if I doing ?action=chat on the url.. it works... which makes me think that the mod missed the language edits (which would be consistent with the fact that the admin config panel is blank but has the fc_ check marks).

So... since I'm using the default template... where would I edit the language tags?

In phpbb I'd go into languages\english and edit the common language file... is there an equivalent for SMF?
Title: Re: FlashChat Integration
Post by: cryptoknight on September 10, 2008, 09:59:49 AM
Yup... since I'm utf-8 I had to add the settings to modifications.english-utf8.php

Now it works... at least with 4.71.2
Title: Re: FlashChat Integration
Post by: chinaren on September 14, 2008, 01:04:56 AM
Ah.  Some of these posts tell me why I had so much trouble trying to make this work with my 1.1.6 board. 

I've looked all over for some help on this, and I guess there's just no integration for them.  :(
Title: Re: FlashChat Integration
Post by: Rasyr on September 22, 2008, 07:27:08 AM
Can somebody please give some advice on making the Integration mod work with SMF 1.1.6?

Title: Re: FlashChat Integration
Post by: Kindred on September 22, 2008, 07:32:06 AM
what version of flashchat?
Title: Re: FlashChat Integration
Post by: Rasyr on September 22, 2008, 07:46:05 AM
I am using 4.7.12 version of flashchat (and it works nicely -- not extremely interested in updating it -- at least not soon)
Title: Re: FlashChat Integration
Post by: Kindred on September 22, 2008, 04:23:54 PM
then the mod should work fine with smf 1.1.6 and flashchat 4.7.12

You might have to use ;emulate=1.1.5
Title: Re: FlashChat Integration
Post by: Rasyr on September 22, 2008, 04:47:30 PM
Quote from: Kindred on September 22, 2008, 04:23:54 PM
then the mod should work fine with smf 1.1.6 and flashchat 4.7.12

You might have to use ;emulate=1.1.5

what is that?
Title: Re: FlashChat Integration
Post by: Kindred on September 22, 2008, 05:37:03 PM
it's a command that you can add to the url to make your installation think it's a different version for the installation of mods.

Alternatively, you could open the mod and modify the install.xml file to include 1.1.6
Title: Re: FlashChat Integration
Post by: Rasyr on September 22, 2008, 07:24:37 PM
ahh.....  thanks... That might help me with one or two other mods as well...
Title: Re: FlashChat Integration
Post by: rollingrock on September 23, 2008, 10:53:52 AM
Does this mod work with SMF 1.1.5 and TP?

I am considering loading flashchat

Thanks...RR

Title: Re: FlashChat Integration
Post by: Dhekelian on September 26, 2008, 01:32:08 PM
I'm using 1.1.6. I altered the xml file to show 1.1.6 and it showed in my package manager then I got this,

Installing this package will perform the following actions:  Type Action Description
1. Extract File ./Sources/Chat.php 
2. Extract File ./Themes/default/Chat.template.php 
3. Extract File ./dologout.php 
4. Execute Modification ./index.php Test successful
5. Execute Modification ./SSI.php Test successful
6. Execute Modification ./Sources/ModSettings.php Test successful
7. Execute Modification ./Sources/Subs.php Test successful
8. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
9. Execute Modification ./Themes/default/index.template.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
11. Execute Modification ./Themes/default/languages/Help.english.php Test successful
12. Execute Modification ./chat/inc/flashChatTag.php Test failed
13. Execute Modification ./chat/inc/cmses/smfCMS2.php Test successful
14. Execute Code add_settings.php 


Not sure what to do the failed file. I am not good at all with PHP but I do have a go. I did ignore this once and installed it just to see what would happen. It doesn't create a button on the menu, I am using a skin, black and blue115 so that might be it. The options in the Admin are there but when you return to the forum it crashes and a blank page with the 500 error is there. I had to remove the mod sharpish to get back to normality but I do need this to work if possible.

The chat program itself works fine, apart from 1 member apparently being banned which is odd, but it works great so I've had to put an icon on the forum and link it to the chat page. it looks untidy so I would be grateful for any help
Title: Re: FlashChat Integration
Post by: JimM on September 26, 2008, 01:43:47 PM
The key to making FlashChat work is to be sure it works stand-alone before you attempt the integration. 

The file that failed is one that comes with the FlashChat program and would have to be there even for it to work stand-alone.  You may need to install FlashChat again.

Like most all mods, they install only on the default theme.  You will need to manually do the edits to your theme's BoardIndex.template and index.template files.
Title: Re: FlashChat Integration
Post by: Kindred on September 26, 2008, 02:01:16 PM
also... this mod only work with flashchat 4.7.12 and earlier.
Title: Re: FlashChat Integration
Post by: Dhekelian on September 26, 2008, 02:13:43 PM
Hi I am using the latest version 5 or whatever so that is probably it then. it is working as a stand alone and works quite well. Although there are a few weird things going on.

Do you suggest I delete this and start again? Do I just delete the chat folder and download the 4.7.12 version if I am allowed to?
Title: Re: FlashChat Integration
Post by: JimM on September 26, 2008, 04:53:24 PM
The failure you are getting was a bug fix that this mod took care of.  It's possible that the new version doesn't have the bug or it has already been fixed.  I am still using the 4.7.12 version.

You will have to edit your themes index.template file in order for a button to be added.  If you installed this mod, it would have added the button to the default theme (the theme named "default"). 
Title: Re: FlashChat Integration
Post by: TW1ST3D on September 26, 2008, 08:07:07 PM
<<Removed by User>>
Title: Re: FlashChat Integration
Post by: filippodei on October 04, 2008, 04:23:35 AM
hello to all. i have installed smf 116 and the flash chat 4.7.12 with the package integration. all ok. but my forum have the default smf theme installed also in italian and now i have the possibility to see the chat integration button only in english language theme default. also, i have setted italian in  my pref, but i see only in english the forum...
how and where i must edit someelse?thanks

Title: Re: FlashChat Integration
Post by: Kindred on October 04, 2008, 07:50:12 AM
as most mods, this only installs in english.

Modify modifications.italian.php to add the italian versions of the english text strings.
Title: Re: FlashChat Integration
Post by: esber on October 08, 2008, 10:43:52 AM
so what files do you need to install this? the chat and then the intergration file or is it just 1 file to install?
Title: Re: FlashChat Integration
Post by: Kindred on October 08, 2008, 03:39:59 PM
you must have a valid and correctly installed copy of flashchat and SMF before you can run this mod.
Title: Re: FlashChat Integration
Post by: esber on October 08, 2008, 05:55:08 PM
i have smf 1.1.5 which version of the chat do i download?
Title: Re: FlashChat Integration
Post by: MoreBloodWine on October 08, 2008, 06:56:07 PM
Quote from: esber on October 08, 2008, 05:55:08 PM
i have smf 1.1.5 which version of the chat do i download?
4.7.12 which as of right now is the only stable version of flashchat... but you have to pay $5 to get it, but you get unlimited downloads/updates after buyin it.
Title: Re: FlashChat Integration
Post by: cafenubia on October 20, 2008, 10:52:25 AM
Hello,
Ive installed the flashchat mod on smf 1.1.6 and flashchat 4.7.12
It works fine except for the users online feature ,it doesnt record users who connect to the chat from the smf menu,it only shows users who log in outside of the smf forum.

Has anyone had this problem or know a fix for it,ive searched this thread without  finding a answer. 
Title: Re: FlashChat Integration
Post by: The Saviour on October 20, 2008, 11:05:00 AM
Is this what you're looking for?

http://www.tufat.com/docs/flashchat/whos_chatting_smf.html
Title: Re: FlashChat Integration
Post by: cafenubia on October 20, 2008, 11:53:37 AM
Quote from: The Saviour on October 20, 2008, 11:05:00 AM
Is this what you're looking for?

http://www.tufat.com/docs/flashchat/whos_chatting_smf.html


im not quite sure

what im talking about is the users online in the smf menu bar that comes up from the mod being installed,check out my attachment ,it says chat 1 user,that user actually is the admin who logged into the chat outside of my smf forum.

when ever a user clicks chat from the menu they show up in the usersonline users in chat(second attachment) but the menu doesnt change to say chat 2 users.
Title: Re: FlashChat Integration
Post by: cafenubia on October 20, 2008, 01:33:17 PM
 :-[ Sorry disregard my previous posts its working ,im not sure why but i think its because i was trying to log into the chat with 2 users on the same computer when i logged my admin and test in on two different computers it showed up correct.
Thanks.........
Title: Re: FlashChat Integration
Post by: chakotay2 on October 21, 2008, 08:20:40 AM
Quote from: Kindred on September 22, 2008, 05:37:03 PM
it's a command that you can add to the url to make your installation think it's a different version for the installation of mods.

Alternatively, you could open the mod and modify the install.xml file to include 1.1.6

What in the file needs modified?  Trying to use 1.1.6 and 5.0 flashchat (the 5.0 flashchat works great on its own, its just that I need to add menus into 1.1.6 to get to it)
Title: Re: FlashChat Integration
Post by: Kindred on October 21, 2008, 05:23:20 PM
and one more time....   this mod only works with flashchat 4.7.x
Title: Re: FlashChat Integration
Post by: chakotay2 on October 21, 2008, 11:18:36 PM
Thanks.   :-[
Title: Re: FlashChat Integration
Post by: ke4obt on January 04, 2009, 09:55:25 PM

Hey All,

I understand that this mod only works with F.C. 4.7.x but will it work with
SMF 1.1.7 ? So far all i've seen is SMF 1.1.6 and SMF 2.0 talked about.

     Thanks Lots,
     Flip - KE4OBT
     The Blind Ham
Title: Re: FlashChat Integration
Post by: JimM on January 04, 2009, 09:59:09 PM
Yes, it works fine with my 1.1.7.  Of course I installed it back when I was running 1.1.5.

[offtopic]CQ CQ CQ de KT4JK[/offtopic]
Title: Re: FlashChat Integration
Post by: Mick. on January 04, 2009, 10:11:11 PM
Yeah this mod is for chat 4.7.x but tufats version is at 5.?

Will this still work?
Title: Re: FlashChat Integration
Post by: JimM on January 04, 2009, 10:15:22 PM
@BlueDevil - no this mod will not work with FlashChat version 5.x
Title: Re: FlashChat Integration
Post by: Mick. on January 04, 2009, 10:16:29 PM
Quote from: JimM on January 04, 2009, 10:15:22 PM
@BlueDevil - no this mod will not work with FlashChat version 5.x

cool.  thnx for the quick reply.
Title: Re: FlashChat Integration
Post by: aishaweb on January 05, 2009, 12:00:47 PM
Cool, i have an old copy of flashchat (v.4.7.12).  Just installed it and it works great.
Title: Re: FlashChat Integration
Post by: Halfhidden on January 05, 2009, 12:43:16 PM
Can anyone help? I get these errors when I tried to uninstall the package.

Execute Modification     ./index.php     Test failed
Execute Modification     ./Themes/default/index.template.php  Test failed
Execute Modification  ./Themes/default/languages/Modifications.english.php  Test failed
Execute Modification     ./chat/inc/flashChatTag.php     Test failed
Execute Modification     ./chat/inc/cmses/smfCMS2.php     Test failed
Title: Re: FlashChat Integration
Post by: Kindred on January 05, 2009, 12:57:36 PM
you'll have to manually uninstall...
Title: Re: FlashChat Integration
Post by: Halfhidden on January 05, 2009, 01:13:06 PM
Thanks Kindred.... I'll take a look through the forum and try to find out how this is done! Hopefully it wont affect the other packages :D
Title: Re: FlashChat Integration
Post by: Halfhidden on January 06, 2009, 01:28:41 PM
Quote from: Kindred on January 05, 2009, 12:57:36 PM
you'll have to manually uninstall...
Just to share the information with others. I used the SMF Package Parser to work out what files had been altered and how to edit those files to undo the changes that the package did when installing. It worked a treat!
Title: Re: FlashChat Integration
Post by: djrem on January 22, 2009, 11:33:08 AM
Is there a way to allow guests to log into the chat as well as members?
Title: Re: FlashChat Integration
Post by: Kindred on January 22, 2009, 05:39:17 PM
no...   and that is a limitation of flashchat, not SMF or the integration.
You either have it use a memberlist or you make it free-for-all...  you can't have both.
Title: Re: FlashChat Integration
Post by: danishj on January 23, 2009, 11:43:35 PM
Hello,

I'm using flashchat with smf 1.1.7, when we are in chatroom. It shows users login names in right side online users list. I want it to show Users Display name instead of Login names.

is there anyone can tell me how to do it??
Title: Re: FlashChat Integration
Post by: Kindred on January 24, 2009, 12:45:28 AM
this has been discussed several times over on the tufat forums...  I think it's actually in one of my sticky posts over there.

basically, you change the smfcms file to user "realName" instead of "memberName"
Title: Re: FlashChat Integration
Post by: kdoul on January 27, 2009, 10:00:04 AM
is there any way to install this mod on smf 2.0 beta 4 ?
Title: Re: FlashChat Integration
Post by: Acans on January 27, 2009, 03:08:12 PM
Quote from: kdoul on January 27, 2009, 10:00:04 AM
is there any way to install this mod on smf 2.0 beta 4 ?

No. Oldiesmann is making a mod for 2.0
Title: Re: FlashChat Integration
Post by: kdoul on January 28, 2009, 08:15:51 AM
ok I will wait until then....
Title: Re: FlashChat Integration
Post by: skyshroud on January 31, 2009, 03:56:04 PM
here's an odd question, perhaps - and I know you guys didn't code the flashchat, so I am not expecting support on that, but I have run into an issue which I think the SMF 1.1.4 forum is controlling. I am upgrading to version 5.09 flashchat. During the upgrade process, existing flashchat tables are listed.

I have used the admin uninstall option from within flashchat to remove those tables. I have completely deleted the old chat folders and all files associated with it. I have opened SQL admin to manually remove the tables.

But, every time I run the install, the tables are in place already. Is it possible that they are being protected by settings accessible within SMF? I have looked in the maintenance section and can see no options to directly manipulate the database tables or permission... any suggestions?
Title: Re: FlashChat Integration
Post by: Kindred on January 31, 2009, 05:34:45 PM
uninstalling flashchat does not remove any tables as far as I know...

if you feel that you must remove tables, then use myphpadmin

but you should not have to remove tables to upgrade either...  I didn't.
Title: Re: FlashChat Integration
Post by: skyshroud on January 31, 2009, 05:50:23 PM
that's the thing - I have gone as far as manually removing them using phpmyadmin... but they keep popping back up, once I log out of the database admin control panel and log back in. It is almost as if the tables are are being backed-up and re-introduced by the forum software.

I have dropped the forum into maintenance mode, played with the database driven session settings, etc.. all to no avail
Title: Re: FlashChat Integration
Post by: Kindred on January 31, 2009, 05:51:18 PM
what tables are you deleting?

because SMF will not ever do anything with fc_*** tables.
Title: Re: FlashChat Integration
Post by: skyshroud on January 31, 2009, 06:31:52 PM
the tables are standard from the flashchat install, and integrate with SMF... they pop up in the optimization results frequently... for example:

Your database contains 116 tables.
Attempting to optimize your database...
Optimizing smf_fc_bot... 0.000000 kb optimized.
Optimizing smf_fc_bots... 0.000000 kb optimized.
Optimizing smf_fc_config... 0.000000 kb optimized.
Optimizing smf_fc_config_chats... 0.000000 kb optimized.
Optimizing smf_fc_config_instances... 0.000000 kb optimized.
Optimizing smf_fc_config_main... 0.000000 kb optimized.
Optimizing smf_fc_config_values... 0.000000 kb optimized.
Optimizing smf_fc_connections... 0.000000 kb optimized.
Optimizing smf_fc_messages... 0.000000 kb optimized.
Optimizing smf_fc_patterns... 0.000000 kb optimized.
Optimizing smf_fc_rooms... 0.082031 kb optimized.
Optimizing smf_fc_templates... 0.000000 kb optimized.

Title: Re: FlashChat Integration
Post by: skyshroud on January 31, 2009, 06:33:44 PM
at this point I have installed yet again, and the bot is still inoperative, so unless bad settings are being automatically backed up and reintroduced during the table installation, then it is a moot point.

something else is going on, and I am not sure what it might be... unfortunately, bot support is somewhat hit and miss.
Title: Re: FlashChat Integration
Post by: skyshroud on February 01, 2009, 03:39:50 PM
so.. Kindred... off of the top of your head, can you list a few basic files or settings I should be checking if the bot has stopped communication? Got the login box working and the mp3 player functioning again.... but seems like I am being forced to make a trade-off (just kidding)

Title: Re: FlashChat Integration
Post by: Kindred on February 01, 2009, 08:30:16 PM
I don't use the bots...    but I would say you really need to ask that question over on tufat forums
Title: Re: FlashChat Integration
Post by: fmofmpls on February 03, 2009, 09:12:43 AM
Quote from: Kindred on October 21, 2008, 05:23:20 PM
and one more time....   this mod only works with flashchat 4.7.x

How can one purchase the earlier version (4.7x)? It appears the only version offered is the current one - 5.0.10.
Title: Re: FlashChat Integration
Post by: djrem on February 03, 2009, 11:03:18 AM
There are numerous copies of old flashchat on megaupload.
Just need to ask in the right places or use google :)

I have a question.  Is there any way of pulling messages from the chatroom and displaying elsewhere like a preview to guests?
Title: Re: FlashChat Integration
Post by: Kindred on February 03, 2009, 05:38:35 PM
Ask that over on tufat, but my answer would be... probably not easily...   messages are erased from the chatroom after a short time anyway.
Title: Re: FlashChat Integration
Post by: fmofmpls on February 04, 2009, 10:23:02 AM
I noticed over at the FlashChat web site that the current version 5.0.10 is compatible with SMF 1x with integration instructions showing how one can have a "chat" link embedded in the SMF menu. It's done with some simple code edit to index.template.php 

Can someone please explain what this mod offers that the above integration process doesn't? 
Title: Re: FlashChat Integration
Post by: Kindred on February 04, 2009, 07:02:14 PM
this mod offers the option to enclose the chat within the forum header/footer and puts the chat admin into the smf admin section
Title: Re: FlashChat Integration
Post by: LadyC on February 07, 2009, 12:10:44 PM
just my two cents here... with the old version, the chat admin never seemed to work in the smf admin. i felt like i had no control over the chatroom at all.  i atually like this newer one with it's stand alone admin much better, and have worked around some of the drawbacks by embedding the chat page into one of the "bakers dozen" pages, and including the "who's chatting info" iframe code within the news area of the forum. (i modified the height of the iframe so that it only displayed the first line.)
Title: Re: FlashChat Integration
Post by: Kindred on February 07, 2009, 12:22:55 PM
iframe is bad process....
Title: Re: FlashChat Integration
Post by: b4pjoe on February 07, 2009, 12:25:28 PM
Quote from: Kindred on February 07, 2009, 12:22:55 PM
iframe is bad process....

What would be a better way for this info?
Title: Re: FlashChat Integration
Post by: LadyC on February 07, 2009, 01:18:16 PM
i used iframe because on the tufat site in his documents on integrating it, he uses iframe to pull the information into the bottom of the page. i could find no other solution as to get it at the top of the page, and in firefox, it blends seemlessly. (IE displays the background of the iframe as white, so it doesn't look quite as nice.)
Title: Re: FlashChat Integration
Post by: Kindred on February 07, 2009, 01:35:08 PM
just incorporate it into the smf template, as the mod used to do...
Title: Re: FlashChat Integration
Post by: LadyC on February 07, 2009, 02:49:03 PM
begs
can you post the code and where to put it for dummies like me?
Title: Re: FlashChat Integration
Post by: Kindred on February 07, 2009, 05:21:17 PM
I don't have the code handy right now...   but essentially, you do the same thing as the iframe, but do it directly in the code of index.template.php (if you want it on every page) or boardindex.template.php (if you want it only on the index page of the forum.

Title: Re: FlashChat Integration
Post by: fmofmpls on February 07, 2009, 06:45:26 PM
I am using 4.7.12 with SMF 1.7. Installed FlashChat and then installed the mod here. Everything seems to be working fine except when I leave the forum by clicking on any of the menu tabs. I end with an Internal Error message 404. This only happens with Firefox and Safari browsers. It doesn't happen when using IE? Anybody else experience this issue?
Title: Re: FlashChat Integration
Post by: b4pjoe on February 09, 2009, 01:58:07 AM
Quote from: Kindred on February 07, 2009, 05:21:17 PM
I don't have the code handy right now...   but essentially, you do the same thing as the iframe, but do it directly in the code of index.template.php (if you want it on every page) or boardindex.template.php (if you want it only on the index page of the forum.

Here is the FlashChat code for the iframe that I presently have underneath the Users Online section. How would I change it so it is included in the Users Online Section?

/*****Begin flashchat who is*/

echo '
<tr>
<td class="catbg" colspan="2" align="center">Chat Users</td>
</tr>
<tr>
<td class="windowbg">&nbsp;</td>
<td class="windowbg2" width="100%"><iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], '/chat/info_embedded.php" style="width: 100%; margin: 0; padding: 25; border: 0; overflow: hidden;" scrolling="no" border="1" allowtransparency="true"></iframe></td>
</tr>';

/*****End flashchat who is*/
Title: Re: FlashChat Integration
Post by: Kindred on February 09, 2009, 07:23:42 AM
ah... well (without looking much closer, since I only have about 20 mins before work) , take the code out of the info_embedded.php file and paste it into your boardindex.template.php in place of the iframe.
Title: Re: FlashChat Integration
Post by: apadong.net on February 12, 2009, 12:15:09 AM
dear friends,
whre's the link of this mods that compatible with SMF 1.1.7 & 1.1.8?

i mean, the free version :D
Title: Re: FlashChat Integration
Post by: Mathias88 on February 12, 2009, 12:33:42 PM
Hi everyone
First, accept my apologize for language mistakes, I'm a damn froggies...
I don't really understand what I have to do to integrate the FlashChat !
Let me explain what I understood, and please, just tell me if it's wrong, what's wrong and how to fix it.

MY_URL = the adress of my site.

My "SMF (1.1.8 )" is locate at "MY_URL/smf/"
I got "FlashChat 5.010"
I got "FlashChat Integration 1.0a"

1°) Install FlashChat at "MY_URL/smf/chat" (?) or at "MY_URL/chat" (?)
2°) Do files operation :

- Move the included file "Chat.php" to "MY_URL/smf/Sources".
- Move the included file "Chat.template.php" to "MY_URL/smf/Themes/default".
- Move the included file "dologout.php" to "MY_URL/smf/".
- What about "install.xml" adn "package-info.xml" ?

3°) Launch "add_settings.php" ? from where ? e.g. "MY_URL/smf/add_settings.php" ?

4°) Edit files - see the list here (http://custom.simplemachines.org/mods/index.php?action=parse) ...

Is it correct ?

thank for help me ;)
Title: Re: FlashChat Integration
Post by: bullbreedluverz on February 12, 2009, 05:46:49 PM
Quote from: apadong.net on February 12, 2009, 12:15:09 AM
dear friends,
whre's the link of this mods that compatible with SMF 1.1.7 & 1.1.8?

i mean, the free version :D

the link for the mod on the first page will take you to mod that will install on 1.1.7 & 1.1.8 (the version numbers havent been updated) BUT it wont work on the new version of flashchat only the older 4.7.x
Title: Re: FlashChat Integration
Post by: apadong.net on February 12, 2009, 08:23:14 PM
oh i see. let me try. thanks! ;)
Title: Re: FlashChat Integration
Post by: Mathias88 on February 13, 2009, 10:40:56 AM
Quote from: bullbreedluverz on February 12, 2009, 05:46:49 PM
the link for the mod on the first page will take you to mod that will install on 1.1.7 & 1.1.8 (the version numbers havent been updated) BUT it wont work on the new version of flashchat only the older 4.7.x

Aïe ! Only the older 4.7.x ...
Is someone planning to update the FlashChat Integration ?

Any idea's for my previous post ?
Title: Re: FlashChat Integration
Post by: djrem on February 16, 2009, 11:49:40 AM
How do you stop the Logging in and Leaving time stamp?
Title: Re: FlashChat Integration
Post by: LadyC on February 23, 2009, 03:44:48 PM
hey kindred, if you have a chance, would you look at the template and see where we would implement the "who's chatting" code? i tried on my own, but i really don't know what i'm doing!
Title: Re: FlashChat Integration
Post by: bullbreedluverz on February 23, 2009, 04:04:03 PM
Quote from: joec88 on February 09, 2009, 01:58:07 AM
Quote from: Kindred on February 07, 2009, 05:21:17 PM
I don't have the code handy right now...   but essentially, you do the same thing as the iframe, but do it directly in the code of index.template.php (if you want it on every page) or boardindex.template.php (if you want it only on the index page of the forum.

Here is the FlashChat code for the iframe that I presently have underneath the Users Online section. How would I change it so it is included in the Users Online Section?

/*****Begin flashchat who is*/

echo '
<tr>
<td class="catbg" colspan="2" align="center">Chat Users</td>
</tr>
<tr>
<td class="windowbg">&nbsp;</td>
<td class="windowbg2" width="100%"><iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], '/chat/info_embedded.php" style="width: 100%; margin: 0; padding: 25; border: 0; overflow: hidden;" scrolling="no" border="1" allowtransparency="true"></iframe></td>
</tr>';

/*****End flashchat who is*/


ive used you code and added it after

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
{
echo '
', sprintf($txt['users_active'], $modSettings['lastActive']), ':<br />', implode(', ', $context['list_users_online']);


on Boardindex.template.php

but it ent perfect as it lists members in chat down in a line rather than across so that needs some work
Title: Re: FlashChat Integration
Post by: LadyC on February 23, 2009, 05:30:04 PM
wow, i just successfully modified my first bit of php! so this should help some of you, and with any luck, someone else can help ME figure out where to put it so that it shows up at the top with the welcome information (where it shows how many messages there are, and has the link to unread posts...)

i've attached a copy of what the following code changes look like in the chat information section.

replace your info_embedded.php file with this: (but naturally, back up the original!)
<?php

header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0'false);
header('Pragma: no-cache');


/**
If this file is not in the FlashChat root folder, then change this
path to the location of the inc/common.php file.
*/

$GLOBALS['my_file_name'] = 'info_embedded';

require_once(
'inc/common.php');

ChatServer::purgeExpired();

/**
Retrieves the number of users who are chatting in any room.
Leave the $room parameter empty to return the number of users in all room.
*/
function numusers$room '' )
{
if($room)
{
$stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ? AND roomid=?",214);
$rs $stmt->processSPY_USERID $room );
}
else
{
$stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections,{$GLOBALS['fc_config']['db']['pref']}rooms
  WHERE userid IS NOT NULL AND userid <> ? AND ispublic IS NOT NULL
  AND 
{$GLOBALS['fc_config']['db']['pref']}connections.roomid = {$GLOBALS['fc_config']['db']['pref']}rooms.id");
$rs $stmt->processSPY_USERID );
}

$rec $rs->next();
return $rec?$rec['numb']:0;
}

/**
Retrieves a list of the users (by login ID) who are in $room.
Leave the $room parameter empty to return a list of all users in all rooms.
*/
function usersinroom$room '' )
{
$list = array();

if($room) {
$stmt = new Statement("SELECT userid, state, color, lang, roomid FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ?  AND roomid=?");
$rs $stmt->processSPY_USERID $room);
} else {
$stmt = new Statement("SELECT userid, state, color, lang, roomid FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ? ");
$rs $stmt->processSPY_USERID );
}

while($rec $rs->next())
{
$usr ChatServer::getUser($rec['userid']);
if($usr == null && $GLOBALS['fc_config']['enableBots']) $usr $GLOBALS['fc_config']['bot']->getUser($rec['userid']);
$list[] = array_merge($usr$rec);
}


return $list;
}

/**
Retrieves a list of all available rooms, as an array.
*/
function roomlist()
{
$list = array();

// populate $list with the names of all available rooms
$stmt = new Statement('SELECT * FROM '.$GLOBALS['fc_config']['db']['pref'].'rooms WHERE ispublic IS NOT NULL order by ispermanent' 54 );
$rs $stmt->process();

while($rec $rs->next()) $list[] = $rec;

//result will be an array of arrays like ('id' => <room id>, 'updated' = <timestamp>, 'created' => <timestamp>, 'name' => <room name>, 'ispublic' => <public flag>, 'ispermanent' => <autoclose flag>)
return $list;
}


$rooms roomlist();
$roomnumb sizeof($rooms);
$usernumb numusers();
?>


<html>
<head>
<title>Who's in the chat?</title>
<meta http-equiv=Content-Type content="text/html;  charset=UTF-8">

<style type="text/css">
<!--

body { background-color: transparent; margin: 0; padding: 0; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: normal; font-size: 10px;}
....normal {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: normal;
margin: 0; padding: 0;
        text-align: center;
}

#roomList { margin: 0; padding: 0; }
#roomList a { color: black; text-decoration: none; } #roomList a:hover { text-decoration: underline; }
....userList { margin-left: 7px; margin-right: 0; margin-bottom: 0; margin-top: 0;  padding: 0; }

-->
</style>
<script type="text/javascript">
function toggleUserList(id) {
   if (l = document.getElementById(id)) {
      if (l.style.display == '' || l.style.display == 'block') l.style.display = 'none';
      else l.style.display = 'block';
   }
   return false;
}

</script>
</head>
<body>
<p class=normal align="left"><?php echo $usernumb ?> member<?php if ($usernumb != 1) echo "s" ?> chatting in <?php echo $roomnumb ?> room<?php if ($roomnumb != 1) echo "s"?>: <?php if($roomnumb) { ?>
<?php $users usersinroom($room['id']); if ($users) {
                                          echo 
'<id="room_'.$room['id'].'">';
                                          foreach( 
$users as $user ) {
    echo $user['login']; echo ", ";   }
                                        }

?>

<?php ?>
</p>
</body>
</html>





Title: Re: FlashChat Integration
Post by: bullbreedluverz on February 23, 2009, 08:26:50 PM
which smf will this work for and what version of flashchat is it for?
Title: Re: FlashChat Integration
Post by: LadyC on February 23, 2009, 08:35:50 PM
it's for RC1... i forget the version of flashchat... but it's the only version of fc that will work on RC1.
Title: Re: FlashChat Integration
Post by: b4pjoe on February 23, 2009, 08:38:34 PM
Quote from: LadyC on February 23, 2009, 05:30:04 PM
wow, i just successfully modified my first bit of php! so this should help some of you, and with any luck, someone else can help ME figure out where to put it so that it shows up at the top with the welcome information (where it shows how many messages there are, and has the link to unread posts...)

i've attached a copy of what the following code changes look like in the chat information section.

replace your info_embedded.php file with this: (but naturally, back up the original!)
<?php

header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0'false);
header('Pragma: no-cache');


/**
If this file is not in the FlashChat root folder, then change this
path to the location of the inc/common.php file.
*/

$GLOBALS['my_file_name'] = 'info_embedded';

require_once(
'inc/common.php');

ChatServer::purgeExpired();

/**
Retrieves the number of users who are chatting in any room.
Leave the $room parameter empty to return the number of users in all room.
*/
function numusers$room '' )
{
if($room)
{
$stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ? AND roomid=?",214);
$rs $stmt->processSPY_USERID $room );
}
else
{
$stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections,{$GLOBALS['fc_config']['db']['pref']}rooms
  WHERE userid IS NOT NULL AND userid <> ? AND ispublic IS NOT NULL
  AND 
{$GLOBALS['fc_config']['db']['pref']}connections.roomid = {$GLOBALS['fc_config']['db']['pref']}rooms.id");
$rs $stmt->processSPY_USERID );
}

$rec $rs->next();
return $rec?$rec['numb']:0;
}

/**
Retrieves a list of the users (by login ID) who are in $room.
Leave the $room parameter empty to return a list of all users in all rooms.
*/
function usersinroom$room '' )
{
$list = array();

if($room) {
$stmt = new Statement("SELECT userid, state, color, lang, roomid FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ?  AND roomid=?");
$rs $stmt->processSPY_USERID $room);
} else {
$stmt = new Statement("SELECT userid, state, color, lang, roomid FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ? ");
$rs $stmt->processSPY_USERID );
}

while($rec $rs->next())
{
$usr ChatServer::getUser($rec['userid']);
if($usr == null && $GLOBALS['fc_config']['enableBots']) $usr $GLOBALS['fc_config']['bot']->getUser($rec['userid']);
$list[] = array_merge($usr$rec);
}


return $list;
}

/**
Retrieves a list of all available rooms, as an array.
*/
function roomlist()
{
$list = array();

// populate $list with the names of all available rooms
$stmt = new Statement('SELECT * FROM '.$GLOBALS['fc_config']['db']['pref'].'rooms WHERE ispublic IS NOT NULL order by ispermanent' 54 );
$rs $stmt->process();

while($rec $rs->next()) $list[] = $rec;

//result will be an array of arrays like ('id' => <room id>, 'updated' = <timestamp>, 'created' => <timestamp>, 'name' => <room name>, 'ispublic' => <public flag>, 'ispermanent' => <autoclose flag>)
return $list;
}


$rooms roomlist();
$roomnumb sizeof($rooms);
$usernumb numusers();
?>


<html>
<head>
<title>Who's in the chat?</title>
<meta http-equiv=Content-Type content="text/html;  charset=UTF-8">

<style type="text/css">
<!--

body { background-color: transparent; margin: 0; padding: 0; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: normal; font-size: 10px;}
....normal {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: normal;
margin: 0; padding: 0;
        text-align: center;
}

#roomList { margin: 0; padding: 0; }
#roomList a { color: black; text-decoration: none; } #roomList a:hover { text-decoration: underline; }
....userList { margin-left: 7px; margin-right: 0; margin-bottom: 0; margin-top: 0;  padding: 0; }

-->
</style>
<script type="text/javascript">
function toggleUserList(id) {
   if (l = document.getElementById(id)) {
      if (l.style.display == '' || l.style.display == 'block') l.style.display = 'none';
      else l.style.display = 'block';
   }
   return false;
}

</script>
</head>
<body>
<p class=normal align="left"><?php echo $usernumb ?> member<?php if ($usernumb != 1) echo "s" ?> chatting in <?php echo $roomnumb ?> room<?php if ($roomnumb != 1) echo "s"?>: <?php if($roomnumb) { ?>
<?php $users usersinroom($room['id']); if ($users) {
                                          echo 
'<id="room_'.$room['id'].'">';
                                          foreach( 
$users as $user ) {
    echo $user['login']; echo ", ";   }
                                        }

?>

<?php ?>
</p>
</body>
</html>







You need to add it to the index.template.php file to make it appear at the top.
Title: Re: FlashChat Integration
Post by: bullbreedluverz on February 23, 2009, 08:40:50 PM
i just
Quotereplace your info_embedded.php file with this
on rc1 and flashchat 5.0.10 (latest version) and it didnt do anything lol
Title: Re: FlashChat Integration
Post by: LadyC on February 23, 2009, 08:48:58 PM
did you clear your cache in your browser? or... if you're using firefox browser, right click in the chat information box, select "this frame > reload frame". it should look like the image i posted!
Title: Re: FlashChat Integration
Post by: bullbreedluverz on February 23, 2009, 09:07:50 PM
just to clarify, is changing the info_embedded.php all youve done or have you made other edits elsewhere?
Title: Re: FlashChat Integration
Post by: LadyC on February 23, 2009, 09:43:32 PM
nope, all i did was change the info_embedded... but i DID embed the iframe under the who's online information center at the bottom of the main index page... i sure would like to figure out how to add this to the top of the pages throughout the forum though!

see, it really does work though, check out http://ghhangout.com/forum/chat/info_embedded.php
Title: Re: FlashChat Integration
Post by: bullbreedluverz on February 23, 2009, 09:49:47 PM
soz its late here and sleep deprivation is taking a hold could you tell me after what line you placed the iframe

i ent got to worry bout putting it at the top - i havent got a header to put it in lol
Title: Re: FlashChat Integration
Post by: LadyC on February 23, 2009, 10:10:21 PM
http://tufat.com/docs/flashchat/whos_chatting_smf.html is where that information is...
Title: Re: FlashChat Integration
Post by: bullbreedluverz on February 23, 2009, 10:24:24 PM
thats for 1.1.x so the code is slightly different but im assuming you put the iframe in after this

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
{
echo '
', sprintf($txt['users_active'], $modSettings['lastActive']), ':<br />', implode(', ', $context['list_users_online']);


which is where i placed it and uploaded your info_embedded.php code and i dont get the same as as you do - its not adding the catbg, just the text
Title: Re: FlashChat Integration
Post by: LadyC on February 23, 2009, 10:28:18 PM
oh i wouldn't know about the 1.x series... used to the chat integrated nicely, it stopped working when they upgraded the forum and chat...
Title: Re: FlashChat Integration
Post by: b4pjoe on February 23, 2009, 10:49:48 PM
LadyC, the code in the info_embedded.php that you posted did not do anything for me either. Nothing like the image you posted.

And, as I posted earlier, you put the code that calls info_embedded.php in the index.template.php file to have the chat info in the header of all forum pages instead of the BoardIndex.template.php file, which places it at the bottom of the front page only.
Title: Re: FlashChat Integration
Post by: b4pjoe on February 23, 2009, 10:53:48 PM
Quote from: LadyC on February 23, 2009, 10:10:21 PM
http://tufat.com/docs/flashchat/whos_chatting_smf.html is where that information is...

Just to be clear, you are saying that you are seeing this (attached image) on your forum. All I see when using your posted info_embedded.php is a line of text?
Title: Re: FlashChat Integration
Post by: bullbreedluverz on February 23, 2009, 10:57:07 PM
ladyc's code did actually add the names of the users in chat instead of saying how many users in chat there is which i get by adding the iframe without her code change to info_embedded.php
Title: Re: FlashChat Integration
Post by: bullbreedluverz on February 23, 2009, 11:20:41 PM
right its not perfect at the moment but this is how ive done it using RC1 & flashchat 5.0.10 and you can see it at bottom of info centre at http://www.bullbreedluverz.com/smf

i ent no expert so im sure someone can come along and tidy it up a bit if i dont get it sorted and come back and post again

find

// If they are logged in, but statistical information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_stats_index'])
{
echo '
<div class="infocenter_section">
<h4 class="headerpadding titlebg">', $txt['personal_message'], '</h4>
<div class="windowbg">
<p class="section">
', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt['personal_message'], '" />', $context['allow_pm'] ? '</a>' : '', '
</p>
<div class="windowbg2 sectionbody">
<strong><a href="', $scripturl, '?action=pm">', $txt['personal_message'], '</a></strong>
<div class="smalltext">
', $txt['you_have'], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt['message_lowercase'] : $txt['msg_alert_messages'], '.... ', $txt['click'], ' <a href="', $scripturl, '?action=pm">', $txt['here'], '</a> ', $txt['to_view'], '
</div>
</div>
</div>
</div>';
}


add after

/*****Begin flashchat who is*/

                     echo '
                     <tr>
                     <h4 class="headerpadding catbg">Users In Chat.</h4>
                     </tr>
                     <tr>
                     <div class="windowbg">
                     <td class="windowbg2" width="100%"><iframe frameborder="0" height="25" src="', $GLOBALS['boardurl'], '/chat/info_embedded.php" style="width: 100%; margin: 0; padding: 25; border: 0; overflow: hidden;" scrolling="no" border="1" allowtransparency="true"></iframe></td>
                     </tr>';

               /*****End flashchat who is*/


then using ladyc's info_embedded.php code, delete your info_embedded.php code from the file and paste her code in (remember keep back up) and upload it to the chat folder

<?php

   header
('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
   
header('Last-Modified: ' gmdate('D, d M Y H:i:s') . ' GMT');
   
header('Cache-Control: no-store, no-cache, must-revalidate');
   
header('Cache-Control: post-check=0, pre-check=0'false);
   
header('Pragma: no-cache');


/**
If this file is not in the FlashChat root folder, then change this
path to the location of the inc/common.php file.
*/

$GLOBALS['my_file_name'] = 'info_embedded';

require_once(
'inc/common.php');

ChatServer::purgeExpired();

/**
Retrieves the number of users who are chatting in any room.
Leave the $room parameter empty to return the number of users in all room.
*/
function numusers$room '' )
{
   if(
$room)
   {
      
$stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ? AND roomid=?",214);
      
$rs $stmt->processSPY_USERID $room );
   }
   else
   {
      
$stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections,{$GLOBALS['fc_config']['db']['pref']}rooms
                       WHERE userid IS NOT NULL AND userid <> ? AND ispublic IS NOT NULL
                       AND 
{$GLOBALS['fc_config']['db']['pref']}connections.roomid = {$GLOBALS['fc_config']['db']['pref']}rooms.id");
      
$rs $stmt->processSPY_USERID );
   }

   
$rec $rs->next();
   return 
$rec?$rec['numb']:0;
}

/**
Retrieves a list of the users (by login ID) who are in $room.
Leave the $room parameter empty to return a list of all users in all rooms.
*/
function usersinroom$room '' )
{
   
$list = array();

   if(
$room) {
      
$stmt = new Statement("SELECT userid, state, color, lang, roomid FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ?  AND roomid=?");
      
$rs $stmt->processSPY_USERID $room);
   } else {
      
$stmt = new Statement("SELECT userid, state, color, lang, roomid FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ? ");
      
$rs $stmt->processSPY_USERID );
   }

   while(
$rec $rs->next())
   {
      
$usr ChatServer::getUser($rec['userid']);
      if(
$usr == null && $GLOBALS['fc_config']['enableBots']) $usr $GLOBALS['fc_config']['bot']->getUser($rec['userid']);
      
$list[] = array_merge($usr$rec);
   }


   return 
$list;
}

/**
Retrieves a list of all available rooms, as an array.
*/
function roomlist()
{
   
$list = array();

   
// populate $list with the names of all available rooms
   
$stmt = new Statement('SELECT * FROM '.$GLOBALS['fc_config']['db']['pref'].'rooms WHERE ispublic IS NOT NULL order by ispermanent' 54 );
   
$rs $stmt->process();

   while(
$rec $rs->next()) $list[] = $rec;

   
//result will be an array of arrays like ('id' => <room id>, 'updated' = <timestamp>, 'created' => <timestamp>, 'name' => <room name>, 'ispublic' => <public flag>, 'ispermanent' => <autoclose flag>)
   
return $list;
}


$rooms roomlist();
$roomnumb sizeof($rooms);
$usernumb numusers();
?>


<html>
<head>
<title>Who's in the chat?</title>
<meta http-equiv=Content-Type content="text/html;  charset=UTF-8">

<style type="text/css">
<!--

body { background-color: transparent; margin: 0; padding: 0; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: normal; font-size: 10px;}
....normal {
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 10px;
   font-weight: normal;
   margin: 0; padding: 0;
        text-align: center;
}

#roomList { margin: 0; padding: 0; }
#roomList a { color: black; text-decoration: none; } #roomList a:hover { text-decoration: underline; }
....userList { margin-left: 7px; margin-right: 0; margin-bottom: 0; margin-top: 0;  padding: 0; }

-->
</style>
<script type="text/javascript">
function toggleUserList(id) {
   if (l = document.getElementById(id)) {
      if (l.style.display == '' || l.style.display == 'block') l.style.display = 'none';
      else l.style.display = 'block';
   }
   return false;
}

</script>
</head>
<body>
<p class=normal align="left"><?php echo $usernumb ?> member<?php if ($usernumb != 1) echo "s" ?> chatting in <?php echo $roomnumb ?> room<?php if ($roomnumb != 1) echo "s"?>: <?php if($roomnumb) { ?>
<?php $users usersinroom($room['id']); if ($users) {
                                          echo 
'<id="room_'.$room['id'].'">';
                                          foreach( 
$users as $user ) {
                   echo 
$user['login']; echo ", ";                 }
                                        }

            
?>

<?php ?>
</p>
</body>
</html>



Title: Re: FlashChat Integration
Post by: b4pjoe on February 24, 2009, 12:35:08 AM
Okay, I got mine to display like the attached image.

Here is my info_embedded.php:

<?php

header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0'false);
header('Pragma: no-cache');


/**
If this file is not in the FlashChat root folder, then change this
path to the location of the inc/common.php file.
*/

$GLOBALS['my_file_name'] = 'info_embedded';

require_once(
'inc/common.php');

ChatServer::purgeExpired();

/**
Retrieves the number of users who are chatting in any room.
Leave the $room parameter empty to return the number of users in all room.
*/
function numusers$room '' )
{
if($room)
{
$stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ? AND roomid=?",214);
$rs $stmt->processSPY_USERID $room );
}
else
{
$stmt = new Statement("SELECT COUNT(*) AS numb FROM {$GLOBALS['fc_config']['db']['pref']}connections,{$GLOBALS['fc_config']['db']['pref']}rooms
  WHERE userid IS NOT NULL AND userid <> ? AND ispublic IS NOT NULL
  AND 
{$GLOBALS['fc_config']['db']['pref']}connections.roomid = {$GLOBALS['fc_config']['db']['pref']}rooms.id");
$rs $stmt->processSPY_USERID );
}

$rec $rs->next();
return $rec?$rec['numb']:0;
}

/**
Retrieves a list of the users (by login ID) who are in $room.
Leave the $room parameter empty to return a list of all users in all rooms.
*/
function usersinroom$room '' )
{
$list = array();

if($room) {
$stmt = new Statement("SELECT userid, state, color, lang, roomid FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ?  AND roomid=?");
$rs $stmt->processSPY_USERID $room);
} else {
$stmt = new Statement("SELECT userid, state, color, lang, roomid FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL AND userid <> ? ");
$rs $stmt->processSPY_USERID );
}

while($rec $rs->next())
{
$usr ChatServer::getUser($rec['userid']);
if($usr == null && $GLOBALS['fc_config']['enableBots']) $usr $GLOBALS['fc_config']['bot']->getUser($rec['userid']);
$list[] = array_merge($usr$rec);
}


return $list;
}

/**
Retrieves a list of all available rooms, as an array.
*/
function roomlist()
{
$list = array();

// populate $list with the names of all available rooms
$stmt = new Statement('SELECT * FROM '.$GLOBALS['fc_config']['db']['pref'].'rooms WHERE ispublic IS NOT NULL order by ispermanent' 54 );
$rs $stmt->process();

while($rec $rs->next()) $list[] = $rec;

//result will be an array of arrays like ('id' => <room id>, 'updated' = <timestamp>, 'created' => <timestamp>, 'name' => <room name>, 'ispublic' => <public flag>, 'ispermanent' => <autoclose flag>)
return $list;
}


$rooms roomlist();
$roomnumb sizeof($rooms);
$usernumb numusers();
?>


<html>
<head>
<title>Who's in the chat?</title>
<meta http-equiv=Content-Type content="text/html;  charset=UTF-8">

<style type="text/css">
<!--

body { background-color: transparent; margin: 0; padding: 0; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: normal; font-size: 10px;}
....normal {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: normal;
margin: 0; padding: 0;
        text-align: center;
}

#roomList { margin: 0; padding: 0; }
#roomList a { color: black; text-decoration: none; } #roomList a:hover { text-decoration: underline; }
....userList { margin-left: 7px; margin-right: 0; margin-bottom: 0; margin-top: 0;  padding: 0; }

-->
</style>
<script type="text/javascript">
function toggleUserList(id) {
   if (l = document.getElementById(id)) {
      if (l.style.display == '' || l.style.display == 'block') l.style.display = 'none';
      else l.style.display = 'block';
   }
   return false;
}

</script>
</head>
<body>
<p class=normal><?php echo $usernumb ?> user<?php if ($usernumb != 1) echo "s" ?> in <?php echo $roomnumb ?> room<?php if ($roomnumb != 1) echo "s"?>.</p>
<ul id="roomList">
<?php if($roomnumb) { ?>
<?php foreach($rooms as $room) { ?>
<li><strong><a href="#" onclick="javascript:toggleUserList('room_<?php echo $room['id']?>')"><?php echo $room['name']?> (<?php echo numusers($room['id']) ?>)</a></strong>
<?php

$users usersinroom($room['id']);
                                        if (
$users) {
                                          echo 
'<ul class="userList" id="room_'.$room['id'].'">';
                                          foreach( 
$users as $user ) {
//   echo '<li>'.$user['login'].'</li>';   }
                                          
echo ' '.$user['login'].', ';   }
                                          echo 
'</ul>';
                                        }

?>
</li>
<?php ?>
<?php ?>
</ul>

</body>
</html>


Then I found this code in BoardIndex.template.php:

// If they are logged in, but statistical information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_stats_index'])
{
echo '
<div class="infocenter_section">
<h4 class="headerpadding titlebg">', $txt['personal_message'], '</h4>
<div class="windowbg">
<p class="section">
', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt['personal_message'], '" />', $context['allow_pm'] ? '</a>' : '', '
</p>
<div class="windowbg2 sectionbody">
<strong><a href="', $scripturl, '?action=pm">', $txt['personal_message'], '</a></strong>
<div class="smalltext">
', $txt['you_have'], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt['message_lowercase'] : $txt['msg_alert_messages'], '.... ', $txt['click'], ' <a href="', $scripturl, '?action=pm">', $txt['here'], '</a> ', $txt['to_view'], '
</div>
</div>
</div>
</div>';
}


and then pasted this code after it:


// Begin flashchat Users in Chat

echo '
<tr>
<h4 class="headerpadding titlebg">Users In Chat.</h4>
</tr>
<tr>
<td class="windowbg">&nbsp;</td>
<td class="windowbg2" width="100%"><iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], '/chat/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="1" allowtransparency="true"></iframe></td>
</tr>';

// End flashchat Users in Chat


To move the Users in Chat so it is in the header of each forum page you would need to past that code after this code in index.template.php:

echo '
<div id="mainframe">
<div class="tborder">
<div class="catbg">
<img class="floatright" id="smflogo" src="' , $settings['images_url'] , '/smflogo.gif" alt="Simple Machines Forum" />
<h1>';

if (empty($settings['header_logo_url']))
echo $context['forum_name_html_safe'];
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name_html_safe'], '" />';

echo '
</h1>
</div>';
Title: Re: FlashChat Integration
Post by: LadyC on February 24, 2009, 02:38:33 AM
Quote from: joec88 on February 23, 2009, 10:49:48 PM
LadyC, the code in the info_embedded.php that you posted did not do anything for me either. Nothing like the image you posted.

And, as I posted earlier, you put the code that calls info_embedded.php in the index.template.php file to have the chat info in the header of all forum pages instead of the BoardIndex.template.php file, which places it at the bottom of the front page only.
Quote from: joec88 on February 23, 2009, 10:53:48 PM
Quote from: LadyC on February 23, 2009, 10:10:21 PM
http://tufat.com/docs/flashchat/whos_chatting_smf.html is where that information is...

Just to be clear, you are saying that you are seeing this (attached image) on your forum. All I see when using your posted info_embedded.php is a line of text?

yep, the image was what is actually seen in the info center of my forum... the link i gave you was a direct link to the file. (my forum just opened up to our members tonight, and it's an invitation only board so you wouldn't be able to get on as a guest to see it.)

i think the problem is that i tend to forget that not everyone in the world is using RC1... i tend to think that if i'm using it, everyone else is too. LOL, i get a little self-absorbed like that sometimes!
Title: Re: FlashChat Integration
Post by: LadyC on February 24, 2009, 02:47:33 AM
hmmmm.... that last bit of code to place it in the header isn't in my index.template.php file. are you using RC1? i'm using the darkbreak theme, so i'm just trying to figure out if it's a version issue or a theme issue that's preventing me from finding that part of the code.
Title: Re: FlashChat Integration
Post by: b4pjoe on February 24, 2009, 02:49:04 AM
Yeah, I'm using RC1 also and got it working by modifying the code above.
Title: Re: FlashChat Integration
Post by: LadyC on February 24, 2009, 02:49:40 AM
dang, i can't find it in my file.... i'll have to look again tomorrow. it must be a theme thing.
Title: Re: FlashChat Integration
Post by: b4pjoe on February 24, 2009, 02:51:32 AM
Quote from: LadyC on February 24, 2009, 02:47:33 AM
hmmmm.... that last bit of code to place it in the header isn't in my index.template.php file. are you using RC1? i'm using the darkbreak theme, so i'm just trying to figure out if it's a version issue or a theme issue that's preventing me from finding that part of the code.

Yes, RC1 and using the default theme. Lines 203 to 218 of index.template.php.
Title: Re: FlashChat Integration
Post by: LadyC on February 24, 2009, 03:02:08 AM
ok, i think i'm getting close... but i'm gonna have to play around to figure out exactly where to put it without messing up my banner in this theme. the code is different, so where i thought it would go was ALMOST but not quite right LOL.

thanks for the tip! without you pointing out what lines, i'd have never come close to finding it!
Title: Re: FlashChat Integration
Post by: LadyC on February 24, 2009, 03:04:42 AM
ahhhhh, FOUND IT! now, i just need to shorten the height somehow, it's taking up way too much real estate!
Title: Re: FlashChat Integration
Post by: LadyC on February 24, 2009, 03:10:59 AM
fabulous, i whittled the size, removed the <h4> and now it looks PERFECT! many, many thanks!
Title: Re: FlashChat Integration
Post by: b4pjoe on February 24, 2009, 03:12:08 AM
In the index.template.php file change the height="100" tag to a smaller number in the following line:

Quote<td class="windowbg2" width="100%"><iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], '/chat/info_embedded.php" style="width: 100%; margin: 0; padding: 25; border: 0; overflow: hidden;" scrolling="no" border="1" allowtransparency="true"></iframe></td>

Edit: Code above changes the height of the iFrame, which I think is different than what you wanted.
Title: Re: FlashChat Integration
Post by: shepdawg on March 02, 2009, 04:27:03 PM
How do I integrate FlashChat 5.0.10 into SMF 20. RC1? Is there a download? If not, can someone please tell me which files to edit, and what codes to change?
Title: Re: FlashChat Integration
Post by: b4pjoe on March 02, 2009, 04:34:51 PM
Quote from: shepdawg on March 02, 2009, 04:27:03 PM
How do I integrate FlashChat 5.0.10 into SMF 20. RC1? Is there a download? If not, can someone please tell me which files to edit, and what codes to change?

FlashChat 5.0.10 into SMF 20. RC1 really doesn't integrate seemlessly as the older version of FlashChat with the older version of SMF. You can tell it to integrate it with SMF during install but all that does is create the tables in the SMF database so they use the same user base. That is the extent of the integration. If you search through this thread you can see how others have added the "Chat" button to their forum and added the Chat Room Info in the forum as well but as far as I know FlashChat still runs standalone in it's own window for most people instead of integrated into a SMF window.
Title: Re: FlashChat Integration
Post by: weightman on March 03, 2009, 01:09:54 AM
Yea, I am using flashchat on my sites using the 1.1x series but I am using the Ajax chat mod for my SMF2 sites. It is much easier to deal with, in many ways.
Title: Re: FlashChat Integration
Post by: ankitj on March 06, 2009, 08:33:03 PM
I have 1.1.8 SMF and 5.x Flash chat. Is there a mod for integrating these two specific versions? I also want to put a chat window in the board index.

New to this, so would appreciate any help.
Title: Re: FlashChat Integration
Post by: sombra on March 14, 2009, 10:07:02 PM
wen it wil be comatible with smf 2.04?
Title: Re: FlashChat Integration
Post by: sandmannd on March 27, 2009, 10:17:33 PM
So I downloaded flash chat and installed the mod afterword. When I go to my website (the forums) I get "Fatal error: main() [function.require]: Failed opening required 'INC_DIR../temp/config.srv.php' (include_path='.:/usr/lib/php') in /homepages/22/d258088114/htdocs/forum/chat/inc/config.srv.php on line 2" on my browser. I opened the php file and all it has is:
<?php
   require_once INC_DIR.'../temp/config.srv.php';
?>

What can I do to fix this please?
Title: Re: FlashChat Integration
Post by: Kindred on March 28, 2009, 07:50:43 AM
you have installed flashchat incorrectly.
Title: Re: FlashChat Integration
Post by: Tyrsson on March 28, 2009, 04:34:56 PM
Quote from: sandmannd on March 27, 2009, 10:17:33 PM
So I downloaded flash chat and installed the mod afterword. When I go to my website (the forums) I get "Fatal error: main() [function.require]: Failed opening required 'INC_DIR../temp/config.srv.php' (include_path='.:/usr/lib/php') in /homepages/22/d258088114/htdocs/forum/chat/inc/config.srv.php on line 2" on my browser. I opened the php file and all it has is:
<?php
   require_once INC_DIR.'../temp/config.srv.php';
?>

What can I do to fix this please?
Which version of SMF are you using? Sounds like you may be using the 2.x version of SMF.
Title: Re: FlashChat Integration
Post by: candidosa2 on March 28, 2009, 11:44:25 PM
when update dont forget portuguese

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// --- Begin FlashChat Integration translate candidosa2  ---
$txt['fc_chat'] = 'Chat';
$txt['fc_flashchat'] = 'FlashChat';
$txt['fc_flashchat_settings'] = 'FlashChat Integra&ccedil;&atilde;o Defini&ccedil;&otilde;es';
$txt['fc_in_chat'] = 'no Chat';
$txt['fc_not_found'] = 'FlashChat n&atilde;o parece estar instalado!';
$txt['fc_no_guests'] = 'Desculpa, convidados n&atilde;o est&atilde;o autorizados a usar o bate-papo!';
$txt['fc_private_room'] = '<i>sala privada</i>';
$txt['fc_users_online'] = 'Utilizadores actualmente no chat';
// For 'Who's Online' page
$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';

// Settings for admin panel
$txt['fc_height2'] = 'Altura';
$txt['fc_inForum'] = 'Mostrar janela do bate-papo "dentro" f&oacute;rum?';
$txt['fc_newWindow'] = 'Abrir Bate-papo em uma nova janela?';
$txt['fc_showUsers'] = 'Mostrar Utilizadores no Bate-papo no topo do f&oacute;rum?';
$txt['fc_showUserCount'] = 'Mostrar o n&uacute;mero de utilizadores no bot&atilde;o Bate-papo?';
$txt['fc_size_desc'] = 'A altura e largura pode ser um inteiro (eg. 600 for 600 pixels) ou uma percentagem (por exemplo, uma largura de 100% ir&aacute; preencher todo o ecr&atilde; horizontalmente)<br /><strong>Nota:</strong> If "' . $txt['fc_inForum'] . '" est&aacute; ligado, por favor, n&atilde;o use uma percentagem para a altura. Ele n&atilde;o ir&aacute; funcionar corretamente!';
$txt['fc_width'] = 'Largura';
// --- End FlashChat Integration ---
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// --- Begin FlashChat Integration translate candidosa2  ---
$txt['fc_chat'] = 'Chat';
$txt['fc_flashchat'] = 'FlashChat';
$txt['fc_flashchat_settings'] = 'FlashChat Integra&ccedil;&atilde;o Defini&ccedil;&otilde;es';
$txt['fc_in_chat'] = 'no Chat';
$txt['fc_not_found'] = 'FlashChat n&atilde;o parece estar instalado!';
$txt['fc_no_guests'] = 'Desculpa, convidados n&atilde;o est&atilde;o autorizados a usar o bate-papo!';
$txt['fc_private_room'] = '<i>sala privada</i>';
$txt['fc_users_online'] = 'Utilizadores actualmente no chat';
// For 'Who's Online' page
$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';

// Settings for admin panel
$txt['fc_height2'] = 'Altura';
$txt['fc_inForum'] = 'Mostrar janela do bate-papo "dentro" f&oacute;rum?';
$txt['fc_newWindow'] = 'Abrir Bate-papo em uma nova janela?';
$txt['fc_showUsers'] = 'Mostrar Utilizadores no Bate-papo no topo do f&oacute;rum?';
$txt['fc_showUserCount'] = 'Mostrar o n&uacute;mero de utilizadores no bot&atilde;o Bate-papo?';
$txt['fc_size_desc'] = 'A altura e largura pode ser um inteiro (eg. 600 for 600 pixels) ou uma percentagem (por exemplo, uma largura de 100% ir&aacute; preencher todo o ecr&atilde; horizontalmente)<br /><strong>Nota:</strong> If "' . $txt['fc_inForum'] . '" est&aacute; ligado, por favor, n&atilde;o use uma percentagem para a altura. Ele n&atilde;o ir&aacute; funcionar corretamente!';
$txt['fc_width'] = 'Largura';
// --- End FlashChat Integration ---
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// --- Begin FlashChat Integration translate candidosa2  ---
$txt['fc_chat'] = 'Chat';
$txt['fc_flashchat'] = 'FlashChat';
$txt['fc_flashchat_settings'] = 'FlashChat Integra&ccedil;&atilde;o Defini&ccedil;&otilde;es';
$txt['fc_in_chat'] = 'no Chat';
$txt['fc_not_found'] = 'FlashChat n&atilde;o parece estar instalado!';
$txt['fc_no_guests'] = 'Desculpa, convidados n&atilde;o est&atilde;o autorizados a usar o bate-papo!';
$txt['fc_private_room'] = '<i>sala privada</i>';
$txt['fc_users_online'] = 'Utilizadores actualmente no chat';
// For 'Who's Online' page
$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';

// Settings for admin panel
$txt['fc_height2'] = 'Altura';
$txt['fc_inForum'] = 'Mostrar janela do bate-papo "dentro" f&oacute;rum?';
$txt['fc_newWindow'] = 'Abrir Bate-papo em uma nova janela?';
$txt['fc_showUsers'] = 'Mostrar Utilizadores no Bate-papo no topo do f&oacute;rum?';
$txt['fc_showUserCount'] = 'Mostrar o n&uacute;mero de utilizadores no bot&atilde;o Bate-papo?';
$txt['fc_size_desc'] = 'A altura e largura pode ser um inteiro (eg. 600 for 600 pixels) ou uma percentagem (por exemplo, uma largura de 100% ir&aacute; preencher todo o ecr&atilde; horizontalmente)<br /><strong>Nota:</strong> If "' . $txt['fc_inForum'] . '" est&aacute; ligado, por favor, n&atilde;o use uma percentagem para a altura. Ele n&atilde;o ir&aacute; funcionar corretamente!';
$txt['fc_width'] = 'Largura';
// --- End FlashChat Integration ---
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// --- Begin FlashChat Integration translate candidosa2  ---
$txt['fc_chat'] = 'Chat';
$txt['fc_flashchat'] = 'FlashChat';
$txt['fc_flashchat_settings'] = 'FlashChat Integra&ccedil;&atilde;o Defini&ccedil;&otilde;es';
$txt['fc_in_chat'] = 'no Chat';
$txt['fc_not_found'] = 'FlashChat n&atilde;o parece estar instalado!';
$txt['fc_no_guests'] = 'Desculpa, convidados n&atilde;o est&atilde;o autorizados a usar o bate-papo!';
$txt['fc_private_room'] = '<i>sala privada</i>';
$txt['fc_users_online'] = 'Utilizadores actualmente no chat';
// For 'Who's Online' page
$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';

// Settings for admin panel
$txt['fc_height2'] = 'Altura';
$txt['fc_inForum'] = 'Mostrar janela do bate-papo "dentro" f&oacute;rum?';
$txt['fc_newWindow'] = 'Abrir Bate-papo em uma nova janela?';
$txt['fc_showUsers'] = 'Mostrar Utilizadores no Bate-papo no topo do f&oacute;rum?';
$txt['fc_showUserCount'] = 'Mostrar o n&uacute;mero de utilizadores no bot&atilde;o Bate-papo?';
$txt['fc_size_desc'] = 'A altura e largura pode ser um inteiro (eg. 600 for 600 pixels) ou uma percentagem (por exemplo, uma largura de 100% ir&aacute; preencher todo o ecr&atilde; horizontalmente)<br /><strong>Nota:</strong> If "' . $txt['fc_inForum'] . '" est&aacute; ligado, por favor, n&atilde;o use uma percentagem para a altura. Ele n&atilde;o ir&aacute; funcionar corretamente!';
$txt['fc_width'] = 'Largura';
// --- End FlashChat Integration ---
]]></add>
</operation>
</file>



<file name="$languagedir/Help.portuguese_pt.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// --- Begin FlashChat Integration ---
$helptxt['fc_inForum'] = 'Se assinalada, o bate-papo se&aacute; exibido "dentro" do f&oacute;rum, utilizando o seu f&oacute;rum de cabe&ccedil;alho e rodapé. Se unticked, FlashChat se&aacute; exibido aut&ocirc;nomo, preenchendo toda a tela (como um padr&atilde;o FlashChat instala&ccedil;&atilde;o)';
$helptxt['fc_showUserCount'] = 'Mostrar o n&uacute;mero de utilizadores no chat sobre o bate-papo no bot&atilde;o da barra de menus. Em vez de simplesmente dizer "Chat", ele vai dizer algo como "Bate-papo [2 Utilizadores]" (assumindo 2 utilizadores est&atilde;o no chat).<br /> Note que, a fim de usar isso, o tema deve ser compatível.';
// --- End FlashChat Integration ---
]]></add>
</operation>
</file>
<file name="$languagedir/Help.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// --- Begin FlashChat Integration ---
$helptxt['fc_inForum'] = 'Se assinalada, o bate-papo se&aacute; exibido "dentro" do f&oacute;rum, utilizando o seu f&oacute;rum de cabe&ccedil;alho e rodapé. Se unticked, FlashChat se&aacute; exibido aut&ocirc;nomo, preenchendo toda a tela (como um padr&atilde;o FlashChat instala&ccedil;&atilde;o)';
$helptxt['fc_showUserCount'] = 'Mostrar o n&uacute;mero de utilizadores no chat sobre o bate-papo no bot&atilde;o da barra de menus. Em vez de simplesmente dizer "Chat", ele vai dizer algo como "Bate-papo [2 Utilizadores]" (assumindo 2 utilizadores est&atilde;o no chat).<br /> Note que, a fim de usar isso, o tema deve ser compatível.';
// --- End FlashChat Integration ---
]]></add>
</operation>
</file>
<file name="$languagedir/Help.portuguese_brazilian.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// --- Begin FlashChat Integration ---
$helptxt['fc_inForum'] = 'Se assinalada, o bate-papo se&aacute; exibido "dentro" do f&oacute;rum, utilizando o seu f&oacute;rum de cabe&ccedil;alho e rodapé. Se unticked, FlashChat se&aacute; exibido aut&ocirc;nomo, preenchendo toda a tela (como um padr&atilde;o FlashChat instala&ccedil;&atilde;o)';
$helptxt['fc_showUserCount'] = 'Mostrar o n&uacute;mero de utilizadores no chat sobre o bate-papo no bot&atilde;o da barra de menus. Em vez de simplesmente dizer "Chat", ele vai dizer algo como "Bate-papo [2 Utilizadores]" (assumindo 2 utilizadores est&atilde;o no chat).<br /> Note que, a fim de usar isso, o tema deve ser compatível.';
// --- End FlashChat Integration ---
]]></add>
</operation>
</file>
<file name="$languagedir/Help.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// --- Begin FlashChat Integration ---
$helptxt['fc_inForum'] = 'Se assinalada, o bate-papo se&aacute; exibido "dentro" do f&oacute;rum, utilizando o seu f&oacute;rum de cabe&ccedil;alho e rodapé. Se unticked, FlashChat se&aacute; exibido aut&ocirc;nomo, preenchendo toda a tela (como um padr&atilde;o FlashChat instala&ccedil;&atilde;o)';
$helptxt['fc_showUserCount'] = 'Mostrar o n&uacute;mero de utilizadores no chat sobre o bate-papo no bot&atilde;o da barra de menus. Em vez de simplesmente dizer "Chat", ele vai dizer algo como "Bate-papo [2 Utilizadores]" (assumindo 2 utilizadores est&atilde;o no chat).<br /> Note que, a fim de usar isso, o tema deve ser compatível.';
// --- End FlashChat Integration ---
]]></add>
</operation>
</file>
Title: Re: FlashChat Integration
Post by: sandmannd on March 29, 2009, 11:14:12 AM
Quote from: Tyrsson on March 28, 2009, 04:34:56 PM
Quote from: sandmannd on March 27, 2009, 10:17:33 PM
So I downloaded flash chat and installed the mod afterword. When I go to my website (the forums) I get "Fatal error: main() [function.require]: Failed opening required 'INC_DIR../temp/config.srv.php' (include_path='.:/usr/lib/php') in /homepages/22/d258088114/htdocs/forum/chat/inc/config.srv.php on line 2" on my browser. I opened the php file and all it has is:
<?php
   require_once INC_DIR.'../temp/config.srv.php';
?>

What can I do to fix this please?
Which version of SMF are you using? Sounds like you may be using the 2.x version of SMF.

Sorry, shoulda put that in there. It's 1.1.8
Title: Re: FlashChat Integration
Post by: weightman on March 30, 2009, 09:42:03 PM
Are the chats logged somewhere for a time? Where can I retrieve them?

Thanks
Title: Re: FlashChat Integration
Post by: Kindred on March 31, 2009, 07:57:19 AM
you would need to ask that over on tufat.
Title: Re: FlashChat Integration
Post by: Tyrsson on April 05, 2009, 05:40:49 AM
Quote from: sombra on March 14, 2009, 10:07:02 PM
wen it wil be comatible with smf 2.04?
Its been updated for 2.0RC1. Please read the note carefully as you will also have to update the flashchat files themselves so that the 4.7.12 version will install with SMF. The mod has not been upgraded to use with the 5.x version of chat since there are known security problems with the 5.x version. A link to the updated chat installation files is provided from the mod download page.
Title: Re: FlashChat Integration
Post by: sandmannd on April 07, 2009, 09:27:52 PM
Quote from: sandmannd on March 29, 2009, 11:14:12 AM
Quote from: Tyrsson on March 28, 2009, 04:34:56 PM
Quote from: sandmannd on March 27, 2009, 10:17:33 PM
So I downloaded flash chat and installed the mod afterword. When I go to my website (the forums) I get "Fatal error: main() [function.require]: Failed opening required 'INC_DIR../temp/config.srv.php' (include_path='.:/usr/lib/php') in /homepages/22/d258088114/htdocs/forum/chat/inc/config.srv.php on line 2" on my browser. I opened the php file and all it has is:
<?php
   require_once INC_DIR.'../temp/config.srv.php';
?>

What can I do to fix this please?
Which version of SMF are you using? Sounds like you may be using the 2.x version of SMF.

Sorry, shoulda put that in there. It's 1.1.8

Anyone???
Title: Re: FlashChat Integration
Post by: Tyrsson on April 08, 2009, 01:29:52 AM
Have you installed the flashchat as per the instructions via the flashchat website for integration with SMF? Also, Which version of flashchat are you using?
Title: Re: FlashChat Integration
Post by: sandmannd on April 08, 2009, 10:22:18 AM
Yes, it's installed. I could get to that fine until I installed the mod. Now I get that error. It's Chat 5 I believe.
Title: Re: FlashChat Integration
Post by: Tyrsson on April 08, 2009, 04:55:59 PM
QuoteIt's Chat 5 I believe

This is the problem. All versions of the mod are for flashchat 4.7.12 only.
Title: Re: FlashChat Integration
Post by: b0dyr0ck2006 on April 11, 2009, 01:46:17 PM
OK, i'm using Flash chat 4, with SMF 2.0RC1 running an edited dilber theme and version 2 of this mod.
Flash chat works fine as does the users in chat and the link on the menu.
I don't have any mod settings in admin though.Some of which can only be edited in SMF.....Please help. All edits seem to have gone in the correct place.
Title: Re: FlashChat Integration
Post by: donjoe on April 13, 2009, 02:35:59 PM
Quote from: ankitj on March 06, 2009, 08:33:03 PMI have 1.1.8 SMF and 5.x Flash chat. Is there a mod for integrating these two specific versions?
Nope, but since I wanted to integrate exactly these versions myself, here's how I did it:

The Quick and Dirty FlashChat v5.0.11 Integration for SMF v1.1.8
(I mention exact version numbers because I'm not going to guarantee that the procedure below works for any combination of versions that I haven't tried myself.)

What this does:

- adds a link in the SMF menu at the top (after "SEARCH"), which reads "CHAT" if there's no-one in the chat or "CHAT(x)" if there are currently x people in the chat (including those who have chosen to hide their online status in the forum); clicking this link opens up the chat in a new browser tab/window (no in-page integration, sorry) and gets you right in if you're already logged into the forum.

- adds a new "Users Online" section at the bottom (under "Users active in past 15 minutes:") which reads "No users in chat." if there's no-one in the chat or "Users in chat:" followed below by the "real" names of all the users currently in the chat (but only those who haven't chosen to hide their online status in the forum); all these names will be links to forum profiles.


How to apply it:

Install FlashChat v5.0.11 according to these instructions: http://www.tufat.com/docs/flashchat/integration.html (http://www.tufat.com/docs/flashchat/integration.html), but skip the last step where you have to follow another link at the bottom of the instructions page.
While installing, make sure to accept the suggested database tables prefix "fc_". Otherwise, you will have to look for it in the code insertions below and replace it manually where I used "fc_". :) (Needless to say, this "mod" will only keep working without corrections as long as you continue to use the same database table names as those generated by the above installation.)

After you've verified that you can login with your forum Administrator account and use the chat from a link that looks approximately like this:
http://www.yourwebsite.com/forum/chat/flashchat.php
or
http://forum.yourwebsite.com/chat/flashchat.php

... you'd do well to fix a little blunder in one of FlashChat's SMF integration support files that may generate "you have been banned" messages for some of your users even if they're not banned.

Find this code in {your_forum_folder}\chat\inc\cmses\smfCMS2.phpif($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;
... and change it to:if($status == 0 || ($status > 3)) return ROLE_USER;

Next, you have to modify just 2 files in each of your forum themes where you want this to work - BoardIndex.template.php and index.template.php.

Find this code in {your_forum_folder}\Themes\{your_theme}\BoardIndex.template.php:        // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

... and add this after it:        // --- Begin FlashChat Integration ---
// Load all the users currently in the chat
        global $db_prefix;
$result = db_query("
SELECT fc.userid, mem.realName, mem.showOnline
    FROM {$db_prefix}fc_connections AS fc
    LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
    WHERE fc.userid IS NOT NULL
    AND mem.ID_MEMBER != 0
            ORDER BY mem.realName ASC",
                       __FILE__, __LINE__);

$context['users_chat'] = array();

// Loop through all users in chat
while($row = mysql_fetch_assoc($result))
{
// Build the link to their profile
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '">' . $row['realName'] . '</a>';

        if($row['showOnline'])
        {
            // Add them to the 'Users Online' list
            $context['users_chat'][$row['realName']] = $link;
        }
}
mysql_free_result($result);

    echo '<br />';
// If there are users in the chat, show who they are
if(!empty($context['users_chat']))
    {
        echo 'Users in chat:<br />', implode(', ', $context['users_chat']);
    }
    else // otherwise just report the situation
    {
        echo 'No users in chat.';
    }
// --- End FlashChat integration ---


Then, find this code in {your_forum_folder}\Themes\{your_theme}\index.template.php:        // The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

... and add this after it:        // --- Begin FlashChat Integration ---
// Count all the users currently in the chat
        global $db_prefix;
$result = db_query("
SELECT COUNT(*) AS count
FROM {$db_prefix}fc_connections AS fc
WHERE fc.userid IS NOT NULL", __FILE__, __LINE__);
$row = mysql_fetch_assoc($result);
mysql_free_result($result);

    // Display the 'CHAT' menu link
    echo '
                <td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
                    <a href="', $GLOBALS['boardurl'], '/chat/flashchat.php" target="_blank">CHAT';
if($row['count'] > 0) // only add parantheses if there's at least one user in the chat
    {
        echo '(', $row['count'], ')';
    }
    echo '</a>
                </td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
// --- End FlashChat integration ---


And you should be all set. :)


Disclaimer: the above procedure description is provided as-is, with no implied guarantee whatsoever etc. etc. 8)
Title: Re: FlashChat Integration
Post by: Tyrsson on April 14, 2009, 02:33:28 AM
Quote from: b0dyr0ck2006 on April 11, 2009, 01:46:17 PM
OK, i'm using Flash chat 4, with SMF 2.0RC1 running an edited dilber theme and version 2 of this mod.
Flash chat works fine as does the users in chat and the link on the menu.
I don't have any mod settings in admin though.Some of which can only be edited in SMF.....Please help. All edits seem to have gone in the correct place.
The option to open the chat inside the forum was temporarily removed from the 2.0 version of the mod since the 2.0 RC1 version of SMF is not final. Once SMF 2.0 goes final I will update the mod so that all previous options are available.
Title: Re: FlashChat Integration
Post by: Keith Tysinger on April 15, 2009, 06:56:26 AM
Here is some code that works with 2.0 RC1. I'm not great with SQL so if someone can tell me if there is a better way, I would like to know (maybe without the loop?)

This code only adds the number of chatters beside your chat button, like the old flashchat mod did.


All changes in subs.php. You may need to modify the chat room botton to open in a new window. I have a custom template for flashchat.

FWI I have seen userids in the fc_connections as negative numbers. Might have been a fluke, but I don't trust the NULL value.

  $result = $smcFunc['db_query']('', '
      SELECT userid
      FROM {db_prefix}fc_connections
WHERE userid >= 1
',
      array(
            )
          );

unset($lc);

while ($kc_chatters = $smcFunc['db_fetch_row']($result))
$lc [] = $kc_chatters[0];

$smcFunc['db_free_result']($result);


...

(Illustration purposes)

'chat' => array(
'title' => 'chat',
'href' => $scripturl . '?action=chat',
'show' => !$user_info['is_guest'],
'sub_buttons' => array(
),
),



...

if (!$user_info['is_guest'] && $context['user']['unread_messages'] > 0 && isset($context['menu_buttons']['pm']))
$context['menu_buttons']['pm']['title'] .= ' [<strong>'. $context['user']['unread_messages'] . '</strong>]';

if (isset($lc) && !$user_info['is_guest'] && count($lc) > 0 && isset($context['menu_buttons']['chat']))
{ $count_lc = count($lc);
$context['menu_buttons']['chat']['title'] .= ' [<strong>'. $count_lc . '</strong>]';
}

Title: Re: FlashChat Integration
Post by: Tyrsson on April 15, 2009, 07:42:38 AM
It will be a few days before I can test any of this since I am in the process of setting up a new comp. Like I said in my previous post when the 2.0 version goes final I will update the mod with all the previous options.
Title: Re: FlashChat Integration
Post by: Moto on April 15, 2009, 08:39:28 AM
Ive installed flashchat no probs,but does anybody know how to delete one of the rooms i made on installing the flashchat???
Title: Re: FlashChat Integration
Post by: Kindred on April 15, 2009, 09:01:04 AM
use flashchat admin...

side note: Questions about flashchat itself should be asked over on the tufat forums, not here.  This is for dicsussion and assistance in getting the flashchat mod or integration to work.
Title: Re: FlashChat Integration
Post by: donjoe on April 18, 2009, 06:55:22 AM
Quote from: Moto on April 15, 2009, 08:39:28 AMIve installed flashchat no probs,but does anybody know how to delete one of the rooms i made on installing the flashchat???
Access your FlashChat admin interface by logging in here:
{your_forum_folder}/chat/admin/index.php
... using your SMF administrator account.
Title: Re: FlashChat Integration
Post by: Harvester on April 21, 2009, 12:22:27 PM
in my database, why does the table smf_fc_patterns have a 148,533 records?

what is this table for?
Title: Re: FlashChat Integration
Post by: Simplemachines Cowboy on April 21, 2009, 12:34:00 PM
Good question. My install of FC 4.x.x doesn't have that db table.
Do you have fc 5?
Title: Re: FlashChat Integration
Post by: Tyrsson on April 21, 2009, 03:35:12 PM

Quote from: Harvester on April 21, 2009, 12:22:27 PM
in my database, why does the table smf_fc_patterns have a 148,533 records?

what is this table for?
This is the list of tables that should be created when chat is installed. TBH I have no idea what that particular table is for. The only thing that comes to mind is that you may have installed the Alicebot. It would be best to ask about the chat tables on the tufat site.


[prefix]bans
[prefix]bot
[prefix]bots
[prefix]connections
[prefix]conversationlog
[prefix]dstore
[prefix]gmcache
[prefix]gossip
[prefix]ignors
[prefix]messages
[prefix]patterns
[prefix]rooms
[prefix]templates
[prefix]thatindex
[prefix]thatstack
Title: Re: FlashChat Integration
Post by: Kat9119 on April 21, 2009, 07:19:37 PM
Quote from: donjoe on April 13, 2009, 02:35:59 PM
Quote from: ankitj on March 06, 2009, 08:33:03 PMI have 1.1.8 SMF and 5.x Flash chat. Is there a mod for integrating these two specific versions?
Nope, but since I wanted to integrate exactly these versions myself, here's how I did it:

THANK YOU!

I've been trying to do something like this for months. Thank you so so much!
Title: Re: FlashChat Integration
Post by: Kat9119 on April 22, 2009, 01:08:59 PM
Quote from: donjoe on April 13, 2009, 02:35:59 PM
And you should be all set. :)


Disclaimer: the above procedure description is provided as-is, with no implied guarantee whatsoever etc. etc. 8)

Do you have any idea how to put this this entire Who's Online/Who's Chatting block on an html webpage?
Title: Re: FlashChat Integration
Post by: donjoe on April 27, 2009, 02:26:50 PM
Quote from: Kat9119 on April 22, 2009, 01:08:59 PMDo you have any idea how to put this this entire Who's Online/Who's Chatting block on an html webpage?
Well, technically, by following my procedure above that's exactly what you're doing, only the HTML is generated by the server as it interprets and executes a PHP script pieced together from multiple .php files. :P (Methinks you should be a little more specific about what you want...)
Title: Re: FlashChat Integration
Post by: SteveW on May 04, 2009, 08:15:52 AM
I have installed this manually for 2.0RC1 & PortaMx and I get the following when clicking the chat button:

QuoteAn Error Has Occurred!
Unable to load the 'chat_forum' template.

Also I cannot find in Admin where to alter any settings.
Thanks
Title: Re: FlashChat Integration
Post by: Kindred on May 04, 2009, 08:44:56 AM
Well, I am fairly certain that this will not work on SMF 2.0 without some moderate modification...   if you just installed the existing mod into 2.0, then it is unlikely to work.
Title: Flashchat User Online in box
Post by: J-Bird on May 04, 2009, 08:54:11 AM
Ok so I have Flash-Chat 4.7.1.2 integrated into my SMF 1.1.8 nicely, and I have SP 2.1.1.
Using a PHP block I have this code below to show users online.

global $txt, $context, $modSettings;
// --- Begin FlashChat Integration ---
      // Do we need to display a list of the users in the chat?
      // Are there users online?
      if (!empty($modSettings['fc_showUsers']) && !empty($context['users_chat']))
         echo '
                     ', $txt['fc_users_online'], ': ', implode(', ', $context['list_users_chat']), '<br />';
      // --- End FlashChat Integration ---


What I need help with is this...
The block currently also shows which room in chat everyone is in.
I would like to remove that feature, and only display names of whos online.
Going a little further, is it also possible to establish that each name gets a line of its own, so they dont get seperated by a comma and jumbled all together?
Below attached screenshot.
I want the named lined up JUST like the "Who's Online Now!" block.
Not all jumbled up like it presently is in the "Who's in Chat" block.

Any of you code gurus handle up on this for me pleazeeeee?  ;)



Quote from: Smoky on May 04, 2009, 08:37:33 AM
hmm if tyrsson doesnt see this one jbird, you might want to post it on the flash chat integration mod over on smf..  ;)

tell him i said for you to!!!  8)

http://smf.houseofsmoky.com/index.php?topic=206.msg2243#msg2243
Title: Re: FlashChat Integration
Post by: Tyrsson on May 04, 2009, 10:22:40 AM
Quote from: Kindred on May 04, 2009, 08:44:56 AM
Well, I am fairly certain that this will not work on SMF 2.0 without some moderate modification...   if you just installed the existing mod into 2.0, then it is unlikely to work.
There has been a updated version added for 2.0RC1 but the admin settings etc have not been included until 2.0 goes final.
Title: Re: FlashChat Integration
Post by: b4pjoe on May 04, 2009, 10:55:38 AM
Quote from: SteveW on May 04, 2009, 08:15:52 AM
I have installed this manually for 2.0RC1 & PortaMx and I get the following when clicking the chat button:

QuoteAn Error Has Occurred!
Unable to load the 'chat_forum' template.

Also I cannot find in Admin where to alter any settings.
Thanks

Not sure of your exact setup or question but I have FlashChat 5.0.10 integrated with SMF 2.0 RC1 and PortaMx. I setup the chat in a PHP block in PortaMx with this code:

                     echo '
                     <div class="windowbg">
                    <div class="windowbg2" width="100%"><iframe frameborder="0" height="700" src="', $GLOBALS['boardurl'], '/chat/flashchat.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe>';


There is no admin settings in SMF for FlashChat. For the admin settings you will need to go to http://www.yourforums.com/chat/admin for FlashChat administration.
Title: Re: FlashChat Integration
Post by: SteveW on May 04, 2009, 11:43:26 AM
Quote from: joec88 on May 04, 2009, 10:55:38 AM
Quote from: SteveW on May 04, 2009, 08:15:52 AM
I have installed this manually for 2.0RC1 & PortaMx and I get the following when clicking the chat button:

QuoteAn Error Has Occurred!
Unable to load the 'chat_forum' template.

Also I cannot find in Admin where to alter any settings.
Thanks

Not sure of your exact setup or question but I have FlashChat 5.0.10 integrated with SMF 2.0 RC1 and PortaMx. I setup the chat in a PHP block in PortaMx with this code:

                     echo '
                     <div class="windowbg">
                    <div class="windowbg2" width="100%"><iframe frameborder="0" height="700" src="', $GLOBALS['boardurl'], '/chat/flashchat.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe>';


There is no admin settings in SMF for FlashChat. For the admin settings you will need to go to http://www.yourforums.com/chat/admin for FlashChat administration.

Many thanks for that joec88, it works great like that and is now setup thanks :)
Title: Re: FlashChat Integration
Post by: b4pjoe on May 04, 2009, 02:48:09 PM
Quote from: SteveW on May 04, 2009, 11:43:26 AM
Quote from: joec88 on May 04, 2009, 10:55:38 AM
Quote from: SteveW on May 04, 2009, 08:15:52 AM
I have installed this manually for 2.0RC1 & PortaMx and I get the following when clicking the chat button:

QuoteAn Error Has Occurred!
Unable to load the 'chat_forum' template.

Also I cannot find in Admin where to alter any settings.
Thanks

Not sure of your exact setup or question but I have FlashChat 5.0.10 integrated with SMF 2.0 RC1 and PortaMx. I setup the chat in a PHP block in PortaMx with this code:

                     echo '
                     <div class="windowbg">
                    <div class="windowbg2" width="100%"><iframe frameborder="0" height="700" src="', $GLOBALS['boardurl'], '/chat/flashchat.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe>';


There is no admin settings in SMF for FlashChat. For the admin settings you will need to go to http://www.yourforums.com/chat/admin for FlashChat administration.

Many thanks for that joec88, it works great like that and is now setup thanks :)

Glad you got it working.
Title: Re: Flashchat User Online in box
Post by: J-Bird on May 05, 2009, 12:20:36 PM
Quote from: J-Bird on May 04, 2009, 08:54:11 AM
Ok so I have Flash-Chat 4.7.1.2 integrated into my SMF 1.1.8 nicely, and I have SP 2.1.1.
Using a PHP block I have this code below to show users online.

global $txt, $context, $modSettings;
// --- Begin FlashChat Integration ---
      // Do we need to display a list of the users in the chat?
      // Are there users online?
      if (!empty($modSettings['fc_showUsers']) && !empty($context['users_chat']))
         echo '
                     ', $txt['fc_users_online'], ': ', implode(', ', $context['list_users_chat']), '<br />';
      // --- End FlashChat Integration ---


What I need help with is this...
The block currently also shows which room in chat everyone is in.
I would like to remove that feature, and only display names of whos online.
Going a little further, is it also possible to establish that each name gets a line of its own, so they dont get seperated by a comma and jumbled all together?
Below attached screenshot.
I want the named lined up JUST like the "Who's Online Now!" block.
Not all jumbled up like it presently is in the "Who's in Chat" block.

Any of you code gurus handle up on this for me pleazeeeee?  ;)



Quote from: Smoky on May 04, 2009, 08:37:33 AM
hmm if tyrsson doesnt see this one jbird, you might want to post it on the flash chat integration mod over on smf..  ;)

tell him i said for you to!!!  8)

http://smf.houseofsmoky.com/index.php?topic=206.msg2243#msg2243





Politely bump for tyrsson. :)
Title: Re: FlashChat Integration
Post by: Tyrsson on May 05, 2009, 02:00:42 PM
Sorry I had some stuff come up yesterday evening. Will look into this here shortly.
Title: Re: FlashChat Integration
Post by: J-Bird on May 06, 2009, 01:19:03 PM
Quote from: Tyrsson on May 05, 2009, 02:00:42 PM
Sorry I had some stuff come up yesterday evening. Will look into this here shortly.

No problem Tyrsson. Im patient.  8)
Title: Re: FlashChat Integration
Post by: J-Bird on May 07, 2009, 01:16:37 PM
VERY patient :D
Title: Re: FlashChat Integration
Post by: Tyrsson on May 07, 2009, 10:45:00 PM
I sent you a PM.
Title: Re: FlashChat Integration
Post by: Tyrsson on May 08, 2009, 04:45:50 PM
@JBird

To show the users in chat without showing the room they are in inside the block here is the easiest way.

SMF version 1.1.8
SimplePortal version 2.1.1
Flashchat integration version 1.0
Flashchat version 4.7.12

First find this line in /Sources/Subs.php
(If this is in a forum within only these mods installed it will be line #3240)

Find:
$context['list_users_chat'][$row['memberName']] = $link . ' (' . ($row['ispublic'] != 'y' ? $txt['fc_private_room'] : $row['roomName']) . ')';

Replace with:
$context['list_users_chat'][$row['memberName']] = $link;

/Themes/default/style.css

Add to bottom of file:
/* Reset all lists. */
ul, ul li
{
padding: 0;
margin: 0;
list-style: none;
}


Go into the SimplePortal block manager and add this code to a Php block:

global $txt, $context, $modSettings;

if (!empty($modSettings['fc_showUsers']))
         echo '
   ', $txt['fc_users_online'], ':<br /><ul><li>', implode('<li>', $context['list_users_chat']), '</li></li></ul>';
Title: Re: FlashChat Integration
Post by: Smoky "Rider" Blue on May 08, 2009, 07:00:13 PM
thanks tyrsson!!!  ;)
Title: Unable to load the 'chat_forum' template.
Post by: limo2005 on May 10, 2009, 07:29:32 AM
I get the following error when clicking on chat

Unable to load the 'chat_forum' template.
I dont see any of this in the image below and just wondered if I could manually add this to code. Could this be causing error?

Chatroom works fine!

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dansoftaustralia.net%2Fimages%2Fscreenshots%2Fsmfmods%2Fflashchat_settings.png&hash=0ff020d3b36b373f4b1055bbf017173f6f35d121)
Title: Re: FlashChat Integration
Post by: Tyrsson on May 10, 2009, 01:46:27 PM
Quote from: limo2005 on May 10, 2009, 07:29:32 AM
I get the following error when clicking on chat

Unable to load the 'chat_forum' template.
I dont see any of this in the image below and just wondered if I could manually add this to code. Could this be causing error?

Chatroom works fine!

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dansoftaustralia.net%2Fimages%2Fscreenshots%2Fsmfmods%2Fflashchat_settings.png&hash=0ff020d3b36b373f4b1055bbf017173f6f35d121)

Which version of SMF are you using? Which version of the mod are you using? What other mods are you using? Please post a link to your forum and a test login.
Title: Re: FlashChat Integration
Post by: limo2005 on May 10, 2009, 02:15:45 PM
It's all working now!  I uninstalled the mod and then installed again, then manually corrected any errors I got!

I then looked at chat.php and noticed a reference to chat_forum which I changed to chat.  Seemed to do the trick but I still dont have the Admin options I used to have displayed in the image above.

If I use a parser, I,m sure i can check the source/managesettings.php and add the code so that these options become available. 

SMF 2.0RC1


Title: Re: FlashChat Integration
Post by: Tyrsson on May 10, 2009, 07:35:26 PM
There should not have been errors except that would be caused by code changes from other mods that were installed before this one. No, its not as easy as using a parser. The admin settings are not in the 2.0 version of the mods as the code is not final. When 2.0 goes final I will add the code for that. Which version of the mod are you using? Most likely the 1.0 version as the 2.0 version does not come with the chat template. Which would explain the problems you are having.
Title: Re: FlashChat Integration
Post by: noelchiew on May 29, 2009, 08:15:52 AM
Quote from: donjoe on April 13, 2009, 02:35:59 PM
Nope, but since I wanted to integrate exactly these versions myself, here's how I did it:
It works! Finally been trying to find a way to do this for quite a while now. One more thing to make it perfect, I have the Member Color Link mod. Can you advise how can I retain the colours on the names listed under Users in Chat?
Title: Re: FlashChat Integration
Post by: darth_dionysus on May 31, 2009, 06:27:34 PM
I didn't see this anywhere, so if it has already been posted please forgive.

I installed FlashChat 4.7.12 and then I put the integration Module in 2.0 RC1-1.  Now I see "?>" (without quotes) in the upper left corner of my browser screen on the SMF Forum.  It doesn't make anything dysfunctional, as far as I have seen, but it's there.

Did I do something wrong?  I set up FlashChat with integration and everything went OK, then I installed the integration mod, and then this appeared.
Title: Re: FlashChat Integration
Post by: noelchiew on June 01, 2009, 10:45:02 AM
Look at the file that you edited, right at the bottom. The ending code should be just ?> so you might have that twice as anything you enter after the ?> would appear on the upper left of the page.
Title: Re: FlashChat Integration
Post by: darth_dionysus on June 01, 2009, 01:18:11 PM
Quote from: noelchiew on June 01, 2009, 10:45:02 AM
Look at the file that you edited, right at the bottom. The ending code should be just ?> so you might have that twice as anything you enter after the ?> would appear on the upper left of the page.

I didn't edit anything.  I downloaded the mod, uploaded it to my forum and applied it after I installed the FlashChat.  Then it gave me the "?>" after I went to the Chat the first time, and then it just stayed there.  Also, it told every user except me that they had been banned.  I finally just gave up and uninstalled the mod and reinstalled the FlashChat as a stand-alone entity.
Title: Re: FlashChat Integration
Post by: noelchiew on June 01, 2009, 02:00:48 PM
Look at your index.template.php, the installation could have somehow added the extra ?> at the end. You can check if it is so and remove the duplication ?> and you should not see it anymore. About the members getting banned issue it has been covered before. Try this...

Find this code in {your_forum_folder}\chat\inc\cmses\smfCMS2.phpif($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;
... and change it to:if($status == 0 || ($status > 3)) return ROLE_USER;
Title: Re: FlashChat Integration
Post by: darth_dionysus on June 01, 2009, 03:06:37 PM
Quote from: noelchiew on June 01, 2009, 02:00:48 PM
Look at your index.template.php, the installation could have somehow added the extra ?> at the end. You can check if it is so and remove the duplication ?> and you should not see it anymore. About the members getting banned issue it has been covered before. Try this...

Find this code in {your_forum_folder}\chat\inc\cmses\smfCMS2.phpif($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;
... and change it to:if($status == 0 || ($status > 3)) return ROLE_USER;

I reinstalled the mod and checked all of the PHP files it modified, and none of them had the extra "?>" in them.  It went away after I uninstalled the mod again, and I think I'll just leave it uninstalled.  The chat works fine as a stand-alone entity.  It still picks up the account info from the SMF 2.0 RC1-1, it's just that I have to add a redirect link to the Chat on the Forum page.  The only thing I can't do is see from the Forum how many are in the Chat.

Thanks for the assistance.
Title: Re: FlashChat Integration
Post by: Tyrsson on June 05, 2009, 06:28:57 PM
Its in the modifications english file. Just make sure that ?> is the last line of the file.
Title: Re: FlashChat Integration
Post by: tyty1234 on June 07, 2009, 08:27:55 PM
Will there be a released version of this mod for 2.0 RC1-1? Or will I have to do it manually?
Title: Re: FlashChat Integration
Post by: Tyrsson on June 09, 2009, 03:54:26 AM
As far as I can think of you should be able to use the version emulate and install it on the new version without any problems. Just make sure to backup first.
Title: Re: FlashChat Integration
Post by: tyty1234 on June 09, 2009, 05:44:45 AM
Ok, I've ran into a few problems with the mod.

I tried to replace the new files (the updates) in the inc/cmses folder, and then it gives me a reloadSettings() redeclared error, then I try using my old backup and tells me I'm banned. If I use the chat by itself, it logs me in, but then the chat room doesn't start. And then now my admin center shows this.

Quote
Forum version: SMF 2.0 RC1-1
Current SMF version: SMF 1.1.9

However, I think that's dealing with the SMF server, but I think I tried almost eveything, but nothing worked so far.

I am using 4.7.2 by the way.
Title: Re: FlashChat Integration
Post by: gingerwench on June 11, 2009, 06:02:18 AM
 :D Just incase anyone else is wondering (like I was earlier tonight)... SMF 1.1.9 and FCv4712 with FlashChatSMF_1-0a do all work together! Any issues I had initially were permission related, and due to the package installer not working for me. After manually editing the files, and uploading the pages in the package to the right places... it all fell together nicely.

Thank you for all the helpful information I found here along the way! :)
Title: Re: FlashChat Integration
Post by: kevin.tupper on June 12, 2009, 02:30:57 PM
Quote from: Tyrsson on June 05, 2009, 06:28:57 PM
Its in the modifications english file. Just make sure that ?> is the last line of the file.

I looked at the file and the "?>" was on the same line as the end of the file.

/Themes/default/languages/Modifications.english.php

The last line looked like this:

Quote$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';?>

I modified it to look like this:

Quote$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';
?>

Yet it does nothing.  I still have a ?> on the first line on any page in the forum or chat.


Also, some of my users are reporting they can no longer read discussion posts now that the chat mod is installed.  Is that because of the extraneous ?> error?


Any ideas?

tia,


- Kevin
Title: Re: FlashChat Integration
Post by: Tyrsson on June 15, 2009, 02:18:32 PM
Quote from: tyty1234 on June 09, 2009, 05:44:45 AM
Ok, I've ran into a few problems with the mod.

I tried to replace the new files (the updates) in the inc/cmses folder, and then it gives me a reloadSettings() redeclared error, then I try using my old backup and tells me I'm banned. If I use the chat by itself, it logs me in, but then the chat room doesn't start. And then now my admin center shows this.

Quote
Forum version: SMF 2.0 RC1-1
Current SMF version: SMF 1.1.9

However, I think that's dealing with the SMF server, but I think I tried almost eveything, but nothing worked so far.

I am using 4.7.2 by the way.
Which version of the mod are you using? If you can provide some more background info it would help as I really have no idea what process you have went through. It makes me sorta thing that you may be using the mod version for the 1.x when you should be using the 2.0 mod version.
Title: Re: FlashChat Integration
Post by: Tyrsson on June 15, 2009, 02:20:52 PM
Quote from: kevin.tupper on June 12, 2009, 02:30:57 PM
Quote from: Tyrsson on June 05, 2009, 06:28:57 PM
Its in the modifications english file. Just make sure that ?> is the last line of the file.

I looked at the file and the "?>" was on the same line as the end of the file.

/Themes/default/languages/Modifications.english.php

The last line looked like this:

Quote$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';?>

I modified it to look like this:

Quote$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';
?>

Yet it does nothing.  I still have a ?> on the first line on any page in the forum or chat.


Also, some of my users are reporting they can no longer read discussion posts now that the chat mod is installed.  Is that because of the extraneous ?> error?


Any ideas?

tia,


- Kevin

What editor did you use to make that change to the file? If it was a default program like standard notepad that is most likely the problem at this point. It can screw the file encoding and cause that even if the code in the file is right.
Title: Re: FlashChat Integration
Post by: Joe N on June 15, 2009, 02:25:17 PM
Hi. You know the googlebot package. What does that do?  :(
Title: Re: FlashChat Integration
Post by: Mystery? on June 16, 2009, 01:33:28 AM
Hey I installed this mod on SMF RC1-1 but now I get this error:

Notice: Undefined variable: boardurl in /home/mystery/public_html/forum/Themes/default/languages/Modifications.english.php on line 172

Title: Re: FlashChat Integration
Post by: Tyrsson on June 16, 2009, 10:29:37 PM
Quote from: Mystery? on June 16, 2009, 01:33:28 AM
Hey I installed this mod on SMF RC1-1 but now I get this error:

Notice: Undefined variable: boardurl in /home/mystery/public_html/forum/Themes/default/languages/Modifications.english.php on line 172


I have not tested the mod on the 2RC1-1. I will try to test it in the next few days if I get time. YOu may be able to add the $boardurl to the list of globals at the start of the file and stop the error but I have not tested that yet.
Title: Re: FlashChat Integration
Post by: Mystery? on June 17, 2009, 05:03:12 PM
Quote from: Tyrsson on June 16, 2009, 10:29:37 PM
Quote from: Mystery? on June 16, 2009, 01:33:28 AM
Hey I installed this mod on SMF RC1-1 but now I get this error:

Notice: Undefined variable: boardurl in /home/mystery/public_html/forum/Themes/default/languages/Modifications.english.php on line 172


I have not tested the mod on the 2RC1-1. I will try to test it in the next few days if I get time. YOu may be able to add the $boardurl to the list of globals at the start of the file and stop the error but I have not tested that yet.

Yeah, JZBlaze helped me solve that problem:

http://www.simplemachines.org/community/index.php?topic=318079.0;topicseen
Title: Re: FlashChat Integration
Post by: Mystery? on June 17, 2009, 07:55:59 PM
Suggestions:

- Update the mod for FlashChat 5.0.11 and SMF 2 RC1-1
- Fix the internal server error when exiting out of chat

I can't see settings for FlashChat in SMF.
Title: Re: FlashChat Integration
Post by: tyty1234 on June 17, 2009, 10:19:26 PM
Quote from: Tyrsson on June 15, 2009, 02:18:32 PM
Quote from: tyty1234 on June 09, 2009, 05:44:45 AM
Ok, I've ran into a few problems with the mod.

I tried to replace the new files (the updates) in the inc/cmses folder, and then it gives me a reloadSettings() redeclared error, then I try using my old backup and tells me I'm banned. If I use the chat by itself, it logs me in, but then the chat room doesn't start. And then now my admin center shows this.

Quote
Forum version: SMF 2.0 RC1-1
Current SMF version: SMF 1.1.9

However, I think that's dealing with the SMF server, but I think I tried almost eveything, but nothing worked so far.

I am using 4.7.2 by the way.
Which version of the mod are you using? If you can provide some more background info it would help as I really have no idea what process you have went through. It makes me sorta thing that you may be using the mod version for the 1.x when you should be using the 2.0 mod version.
I was using the 2.0 version, and I was planning on reinstalling the Flash Chat as I still have the original installation files for Flash Chat 4.7.12. However, I did run into bugs in your mod if no one has reported it yet.

Code (Find) Select

// Mod authors, once again, if you have a whole section to add do it AFTER this line, and keep a comma at the end.


Code (Add After) Select

// --- Begin FlashChat Integration ---

        // User stuff
            array('check', 'fc_showUsers'),
            array('check', 'fc_showUserCount'),
            // Display FlashChat inside the forum?
            array('check', 'fc_inForum'),
            // Open chat in new window?
            array('check', 'fc_newWindow'),
            // Width and height of FlashChat
            array('text', 'fc_width', 6),
            array('text', 'fc_height', 6, $txt['fc_height2'] . '<div class="smalltext">' . $txt['fc_size_desc'] . '</div>'),
        // --- End FlashChat Integration ---\


Find should be this.
Code (Find) Select

// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!
Title: Re: FlashChat Integration
Post by: Mystery? on June 18, 2009, 12:51:42 PM
I can't see FlashChat settings and I checked the error log and I got undefined index: fc_(something)
Title: Re: FlashChat Integration
Post by: Tyrsson on June 19, 2009, 06:18:24 AM
Quote- Update the mod for FlashChat 5.0.11 and SMF 2 RC1-1
- Fix the internal server error when exiting out of chat
As soon as I can confirm there is no longer a security issue with the new version I will look into updating it for the new version of the chat. As for the internal server error I would need to know what version of the mod you are using etc. And I would also need to see the actual error. Is there any info given with the error? Have you checked the server error log to verify that it is coming from the code in this mod or from somewhere else?

QuoteI can't see FlashChat settings and I checked the error log and I got undefined index: fc_(something)
Well if your using the 2.0 version of the mod its because there are no settings for the mod in the admin area due to the 2.0 still being under development it would mean me updating the mod every time a new RC version was released and I simply do not have the time to do that. WHen 2.0 goes final the settings and chat template will be added back to the mod so it will open inside the forum much like the 1.x version does. As far as the undefined error.. Its helps if I have the entire error so I will know exactly which string is causing the problem.

@tyty1234
I have never had a problem with the mod installing and it would not if the text was wrong. Check your version of the file in which you are quoting.

Title: Re: FlashChat Integration
Post by: tyty1234 on June 20, 2009, 02:01:41 PM
The version I am referring to is FlashChatSMF_2.0.zip

I emulated it on a RC1-1 version of SMF.
Title: Re: FlashChat Integration
Post by: Tyrsson on July 01, 2009, 06:38:43 AM
I will look into it but it may be a couple days before I have the chance to check it. Work has been killer.
Title: Re: FlashChat Integration
Post by: tyty1234 on July 01, 2009, 02:41:30 PM
That's fine. No one from my forum has been complaining about the chat not being present, so take your time. :)
Title: Re: FlashChat Integration
Post by: jwwd on July 11, 2009, 05:16:20 AM
Hi

I have Flashchat integration running in my forum (SMF 2.0 RC1-1)

www.buskelundtoften.dk

Is it possible to present my active chatbot in the "whos in chatroom" in the footer ?

Best regards,

Henrik
Title: Re: FlashChat Integration
Post by: FireDitto on July 14, 2009, 01:25:01 AM
I'm sorry if I missed this, but how do I delete rooms on the chat's list?

I have SMF 1.1.9 and FC 4.7.12

Everything is working beautifully, I just want to remove the default rooms, as I do not want nor need them.

Thank you.
Title: Re: FlashChat Integration
Post by: jwwd on July 14, 2009, 02:04:49 AM
Quote from: FireDitto on July 14, 2009, 01:25:01 AM
I'm sorry if I missed this, but how do I delete rooms on the chat's list?

I have SMF 1.1.9 and FC 4.7.12

Everything is working beautifully, I just want to remove the default rooms, as I do not want nor need them.

Thank you.

Hi

Try and go to the chat admin:

path_to_chat/admin.php

Best regards,

Henrik
Title: Re: FlashChat Integration
Post by: FireDitto on July 14, 2009, 02:11:24 AM
Oh, thank you!

EDIT:

I have another question now ^^;

Is it possible to change it from displaying the sign-in name to displaying the Screen Name in the chat area? If so, how would I go about doing this?

Thanks again.
Title: Re: FlashChat Integration
Post by: Kindred on July 14, 2009, 08:15:53 AM
change the call for name in the smf integration file (in flashchat to realname)

(this is listed in several threads over on tufat forums)
Title: Re: FlashChat Integration
Post by: evolution25 on July 16, 2009, 01:20:11 AM
ok i keep getting a ?> on everything i even went back and read what someone else said and edited with my online ftp and still is there what should i do
Title: Re: FlashChat Integration
Post by: Kindred on July 16, 2009, 08:08:42 AM
what program did you use to edit the file?
Title: Re: FlashChat Integration
Post by: evolution25 on July 16, 2009, 01:29:40 PM
i used the online one in the cpanel
Title: Re: FlashChat Integration
Post by: RedCairo on July 17, 2009, 06:44:13 AM
I used this code below -- which I got from earlier in the thread, but modified just so the path was correct (my 123flashchat is not on my local server but is remotely hosted by them).  But I'm getting an error,

QuoteFatal error: Cannot redeclare reloadsettings() (previously declared in {mypath}/htdocs/forum/Sources/Load.php:140) in {mypath}htdocs/forum/Sources/Load.php on line 355

So I went into the code (big block below) and removed the line

include('Sources/Load.php');

But that just led to the error:
QuoteFatal error: Class 'sql_db' not found in {mypath}/htdocs/forum/Sources/Load.php(1758) : eval()'d code(9) : eval()'d code on line 11

Not sure where to go here? Would appreciate any assistance.


if (!defined("SMF")) define("SMF", "1");
include('Settings.php');
include('Sources/Load.php');
include('Sources/Subs-Auth.php');
include("mysql4.php");
$_COOKIE[$cookiename] = stripslashes($_COOKIE[$cookiename]);
echo $_cookiename;
list ($ID_MEMBER, $password) = @unserialize($_COOKIE[$cookiename]);
$username_field = "memberName";     
$password_field = "passwd";
$usertable  = $db_prefix."members ";
$db = new sql_db($db_server, $db_user, $db_passwd, $db_name, false);
$sql = "SELECT " . $username_field.",".$password_field.
   " FROM " . $usertable . "
   WHERE ID_MEMBER = ".$ID_MEMBER;
   
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$username = $row[$username_field];
$password = $row[$password_field];
$user = '';
if($username !=''){
   $user = '&init_user='.$username.'&init_password='. $password;   
}

if (!defined("SMF")) define("SMF", "1");
global $user_info;
include("mysql4.php");
$user = '';
if($username !=''){
   
   $user = '&init_user='.$context['user']['name'].'&init_password=pass';
   
}

echo'
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=6,0,19,0" WIDTH="634" HEIGHT="476">
<PARAM NAME=movie VALUE="http://host7150.123flashchat.com/dojopsi/123flashchat.swf?init_host=host7150.123flashchat.com&init_port=21127&init_host_s=host7250.123flashchat.com&init_port_s=443&init_group=dojopsi&init_root=http://host7150.123flashchat.com/dojopsi/&init_room=1'. $user.'">
<PARAM NAME=quality VALUE="high">
<PARAM NAME="menu" value="false">
<EMBED src="http://host7150.123flashchat.com/dojopsi/123flashchat.swf?init_host=host7150.123flashchat.com&init_port=21127&init_host_s=host7250.123flashchat.com&init_port_s=443&init_group=dojopsi&init_root=http://host7150.123flashchat.com/dojopsi/&init_room=1'. $user.'"
quality=high menu=false WIDTH="634" HEIGHT="476" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>';

Title: Re: FlashChat Integration
Post by: Kindred on July 17, 2009, 08:54:20 AM
123flashchat is different from flashchat.   this thread is specifically working with flashchat form tufat.com
Title: Re: FlashChat Integration
Post by: Lady Godiva on July 18, 2009, 10:24:09 PM
I'm getting an error with this flashchat integration mod installed.. I have a ?> error in the forums top left corner, and some things are a little off on the forum due to it. I tried tracking how to resolve it but nothing so far has come to light. I hae already checked the forum/themes/default/Modifications.English.php file and nothing appears wrong with it. Does anyone know how to fix this?
Title: Re: FlashChat Integration
Post by: Antechinus on July 19, 2009, 02:59:46 AM
Regarding the previous post: to save anyone asking I have personally checked all SMF files edited by this mod, as well as all the extracted files created by the mod inside SMF.

None of these files have an extra ?> tag in them, so this is looking like it will be interesting to track.

Anyone got any good ideas on this?
Title: Re: FlashChat Integration
Post by: ke4obt on July 19, 2009, 05:30:52 AM
Check your lang. files? If I'm not mistaken that's where we had a problem. Realy hope this helps
Title: Re: FlashChat Integration
Post by: Lady Godiva on July 19, 2009, 05:41:36 AM
Thanks for your reply. Was this similiar to the issue we are having, if so - was there a specific file?
Title: Re: FlashChat Integration
Post by: ke4obt on July 19, 2009, 06:36:54 AM
Hey,

If I'm not wrong the File the wife had the problem with was "Modifications.english.php"?
But I'm not going to sware to that as it has been some time ago and with me being blind I don't do a lot of the coding. I'm just here for support for her.
Hope this helps if not then please disreguard my post on this topic.

Flip
Title: Re: FlashChat Integration
Post by: Lady Godiva on July 19, 2009, 07:13:36 AM
Yes, it did help hon. You got me redirected back to that file.

There was not an 'end Flashchat Integration' string before the ?>

I made this change (see below) and cleared the forums cache through the routine maintence.

removed:

?> (off of the last string it was on)

added:

// --- End FlashChat Integration ---


?>


Once I cleared the forums cache it works perfectly. Good luck everyone, and thank you!
Title: Re: FlashChat Integration
Post by: ke4obt on July 19, 2009, 07:38:45 AM
Glad I could help, even if it wasn't much if anything other than just remembering what the wife had to look for on several mod installs that she did by hand.

Have A Great Day,
Flip
Title: Re: FlashChat Integration
Post by: N3RVE on July 22, 2009, 03:48:04 AM
Ok, I've got an issue. After installing FlashChat v5.0.11 in a directory "/chat". I tried to install this mod, all test appeared successful except ./chat/inc/flashChatTag.php, there's another file in the ./Chat/inc/ dir. (smfCMS2.php) and test on that file was successful. I selected the option to integrate with SMF when installing FlashChat. Is this mod compatible with the version of FlashChat I have installed? ..or am I missing something? :)

-[n3rve]
Title: Re: FlashChat Integration
Post by: Antechinus on July 22, 2009, 03:52:48 AM
You're missing something. The mod works with the 4.7 flashchat. The 5.0 was not recommended when Tyrsson asked about it over at Tufat's. Too many bugs.
Title: Re: FlashChat Integration
Post by: Grinch843 on July 23, 2009, 04:53:31 PM
Anyone running this on 2.0 RC1.2?

I managed to get it installed by changing the version info in package-info.xml.  Don't know if this was a good idea or not, but it seemed to work.  The chat button shows up and the user info gets passed to flashchat.   But, for the life of me I couldn't find the settings to change the location of the user info and whatnot.  The other thing was that I had a '>?' showing up at the top of my forum pages.  I've uninstalled it for now until I hear from anyone else who has used it with rc1.2 and has got it setup and working.     If anyone has it running and can point me to where the settings are, I'd greatly appreciate it.   BTW, runing flashchat 4.7.12.

Thanks
Grinch843

Title: Re: FlashChat Integration
Post by: N3RVE on July 23, 2009, 06:41:39 PM
Quote from: Antechinus on July 22, 2009, 03:52:48 AM
You're missing something. The mod works with the 4.7 flashchat. The 5.0 was not recommended when Tyrsson asked about it over at Tufat's. Too many bugs.

Thanks. I got the 4.7 version and it installed with no problem :).

-[n3rve]
Title: Re: FlashChat Integration
Post by: Lady Godiva on July 25, 2009, 01:13:22 AM
I wanted to play around with integrating the version 5. of Flashchat (I know it's not recommended) and tried t see what would happen when using the mod package to integrate. Everything worked fine but the actual forum page doesn't show up - so knowing the mod was not made for that version I went to uninstall it. It will not uninstall - the subs.php file is failing the uninstall test but all of the files look normal. What can I do?
Title: Re: FlashChat Integration
Post by: N3RVE on July 25, 2009, 03:41:02 AM
You should parse the package on the mod site and manually remove the changes the mod makes.
But I really don't understand why you tried with that version when I indicated above that I had issues with it.

-[n3rve]
Title: Re: FlashChat Integration
Post by: Lady Godiva on July 25, 2009, 04:20:31 AM
I was overly brave - thinking I could try a few things to make it work for us. I did the parser, and it did not work. I just rebuilt the forum and imported the php backups. Needless to say - that confidence cost us a lot of time.
Noteworthy - the flashchat did integrate just fine and worked properly but needed a tab for it - it was only the mod package that did not work properly with this version.

Regardless, the mod is great on the version 4 of Flashchat. We did have that one first.

The problem is - That version combined with the mod is too limited for our organizations specific needs. Additionally, we have used the version 5 and know and understand the 'bugs' it does present, but they are harmless to our intended use. Version 4 is not going to be helpful for our needs, hence the reasoning to see how we could do a proper integration with version 5.


Just as said by Tyrsson - Version 4.7.12 is the only stable version for use and I do recommend it over any other version for all users. Anyone wishing to use version 5 should be well versed in understanding how to work with the bugs and glitches.
Title: Re: FlashChat Integration
Post by: Lady Godiva on July 25, 2009, 04:28:50 AM
Quote from: Grinch843 on July 23, 2009, 04:53:31 PM
Anyone running this on 2.0 RC1.2?

I managed to get it installed by changing the version info in package-info.xml.  Don't know if this was a good idea or not, but it seemed to work.  The chat button shows up and the user info gets passed to flashchat.   But, for the life of me I couldn't find the settings to change the location of the user info and whatnot.  The other thing was that I had a '>?' showing up at the top of my forum pages.  I've uninstalled it for now until I hear from anyone else who has used it with rc1.2 and has got it setup and working.     If anyone has it running and can point me to where the settings are, I'd greatly appreciate it.   BTW, runing flashchat 4.7.12.

Thanks
Grinch843



Hey there - I had the same problem with the mod package. Here is the resolution for that issue.

You need to edit the themes/default/languages/Modifications.english.php file. Follow the instructions below.

Quote from: Souls In Serenity on July 19, 2009, 07:13:36 AM
Yes, it did help hon. You got me redirected back to that file.

There was not an 'end Flashchat Integration' string before the ?>

I made this change (see below) and cleared the forums cache through the routine maintence.

removed:

?> (off of the last string it was on)

added:

// --- End FlashChat Integration ---


?>


Once I cleared the forums cache it works perfectly. Good luck everyone, and thank you!
Title: Re: FlashChat Integration
Post by: Tyrsson on July 25, 2009, 04:45:06 AM
I have not had time to upgrade the mod etc to work with the new 5.0 version. The file structure is somewhat different in the new version so therefore the includes are wrong and the script will not run. I plan on updating the mod versions after my kids go back to school in about two weeks.

@Kindred,

Thanks for helping with the support on this.. I have been slammed for time.
Title: Re: FlashChat Integration
Post by: Tyrsson on July 25, 2009, 04:47:10 AM
Oh, I will try to correct the bug in the modification.english file in the next few days. It doesn't seem to effect every install but it can still be a problem.
Title: Re: FlashChat Integration
Post by: Grinch843 on July 25, 2009, 10:15:15 AM
@Souls In Serenity --- Thanks for the info


Grinch843....
Title: Re: FlashChat Integration
Post by: Kindred on July 25, 2009, 05:34:58 PM
Adding a comment line is completely irrelevant...    The only thing that matters is that the ?> must be alone and the last line of the file.
Title: Re: FlashChat Integration
Post by: Lady Godiva on July 25, 2009, 08:06:38 PM
It didn't work for me by just moving the ?> to stand alone on the last line. For whatever reason - it needed both. (shrugs)
Title: Re: FlashChat Integration
Post by: dancer4k on July 28, 2009, 06:30:27 PM
Hi,
I'm having a problem with the chat. The "show number of users in chat on chat button", altough checked in admin doesn't work. Also, the chat itself is not recognising the right users.

For example at the bottom of the main board where it says users currently in chat it will display the names of who is in there, say Bob, Sue and Gary. Only, they are not actually the people in the chat room. The people in the room are completely different users, say Reggie, Alan and Stacey.

This is a real problem and causing some confusion. I'm using SMF version 1.1.10, with a custom theme.

Is it something to do with the chat admin? Any ideas would be appreciated!



Title: Re: FlashChat Integration
Post by: Tyrsson on July 29, 2009, 08:51:37 AM
The mod has not been tested with this version of SMF as of yet. Hopefully I will have time to do the update in the next few days as I have some free time so that I can work on it.
Title: Re: FlashChat Integration
Post by: Orange789 on July 29, 2009, 09:21:19 AM
Hi All,

As the mod to integrate FLashchat is no longer updated, I have installed flash chat with my smf 1.1.10


DOes anyone know how I can get a whos chatting to display in the smf pages?
Title: Re: FlashChat Integration
Post by: jossanaijr on July 29, 2009, 09:47:39 AM
Hi,
my host had to change server.  After that (and many small problems...) I discovered that my chat is not working.
It seems to load but after the "Starting chat system" message nothing is shown in the blue screen.

But at the same time I had problem with server I upgrade to 1.1.10 (from 1.1.9 when it was working fine).
So question is if this problem is with my server change or the 1.1.10 and FlashChat Integration and/or FlashChat?

EDIT:  Solved.  It seems it was a problem with my new server at host.
Title: Re: FlashChat Integration
Post by: dancer4k on July 29, 2009, 12:09:32 PM
Quote from: Tyrsson
The mod has not been tested with this version of SMF as of yet. Hopefully I will have time to do the update in the next few days as I have some free time so that I can work on it.

OK, thanks, I will stay tuned. Looks like there are a few other people with 1.1.10 bugs. I like the chat and wouldn't want to have to replace it with something else.
Title: Re: FlashChat Integration
Post by: cavalcanti on July 30, 2009, 02:56:00 PM
Is it possible? the Admin Settings in the new version of this mod? (FlashChatSMF_2.0)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dansoftaustralia.net%2Fimages%2Fscreenshots%2Fsmfmods%2Fflashchat_settings.png&hash=0ff020d3b36b373f4b1055bbf017173f6f35d121)

thanks in advance
Title: Re: FlashChat Integration
Post by: tyty1234 on July 30, 2009, 06:46:21 PM
the settings are actually there, but was put in the wrong place when it was released. This will probably be fixed in the next release. :)
Title: Re: FlashChat Integration
Post by: Tyrsson on July 31, 2009, 03:44:46 AM
I am in the process of updating this mod now. I hope to be done within a few days.
Title: Re: FlashChat Integration
Post by: Orange789 on July 31, 2009, 04:51:03 AM
I have maged to sort this temporarily using an iframe


<iframe frameborder="0"  height="50" src="http://www.yoursite.com/forum/chat/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe>

With a little tweaking of the info_embedded.php file I was able to chane it from a vertical list to horizontal.

Be good to get a full integration though :-)
Title: Re: FlashChat Integration
Post by: Tyrsson on July 31, 2009, 10:55:58 AM
I have the 2.0 version updated and all the settings added back into the admincp so that the chat will open inside the forum. It will take me about a day to test it and make sure there are no bugs and write the install. Just wanted to give you all an update on where this was.
Title: Re: FlashChat Integration
Post by: Tyrsson on July 31, 2009, 10:58:35 AM
Quote from: dancer4k on July 29, 2009, 12:09:32 PM
Quote from: Tyrsson
The mod has not been tested with this version of SMF as of yet. Hopefully I will have time to do the update in the next few days as I have some free time so that I can work on it.

OK, thanks, I will stay tuned. Looks like there are a few other people with 1.1.10 bugs. I like the chat and wouldn't want to have to replace it with something else.
The 1.1.x version will be updated but it is not on my priority list at the moment. I have updated the 2.0 version already but it still needs to be tested. I hope to get to the 1.1.x version within a week or so.
Title: Re: FlashChat Integration
Post by: tyty1234 on July 31, 2009, 01:37:13 PM
Quote from: Tyrsson on July 31, 2009, 10:55:58 AM
I have the 2.0 version updated and all the settings added back into the admincp so that the chat will open inside the forum. It will take me about a day to test it and make sure there are no bugs and write the install. Just wanted to give you all an update on where this was.
Thanks for the info, Trysson. :)
Title: Re: FlashChat Integration
Post by: Tyrsson on August 01, 2009, 03:22:16 PM
Quote from: cavalcanti on July 30, 2009, 02:56:00 PM
Is it possible? the Admin Settings in the new version of this mod? (FlashChatSMF_2.0)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dansoftaustralia.net%2Fimages%2Fscreenshots%2Fsmfmods%2Fflashchat_settings.png&hash=0ff020d3b36b373f4b1055bbf017173f6f35d121)

thanks in advance
Ok the 2.1 version is on the mod site. Please let me know if you find any bugs. It should be as simple as uninstalling the old mod and installing this version. Given that all test pass.
Title: Re: FlashChat Integration
Post by: cavalcanti on August 01, 2009, 08:05:56 PM
thank you so much, now is perfect  :D
Title: Re: FlashChat Integration
Post by: tyty1234 on August 01, 2009, 10:13:12 PM
uh....everything is perfect but...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi28.tinypic.com%2Fxfp7qs.jpg&hash=b65aa983c022dd1390148d0cc9b507f650576bc3)

yeah......
Title: Re: FlashChat Integration
Post by: Tyrsson on August 02, 2009, 12:16:33 AM
Quote from: tyty1234 on August 01, 2009, 10:13:12 PM
uh....everything is perfect but...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi28.tinypic.com%2Fxfp7qs.jpg&hash=b65aa983c022dd1390148d0cc9b507f650576bc3)

yeah......
Well adjust the width and height.... That's what the settings are for ;)
Title: Re: FlashChat Integration
Post by: tyty1234 on August 02, 2009, 02:17:20 AM
well, the width is at 100%, i set the height to 600px (which should be the default) results in this.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi28.tinypic.com%2F20ssxzb.jpg&hash=3e34c81f225b3dd7778943f29895da9256bb7dee)

I said more in the pm I sent ya. ;)
Title: Re: FlashChat Integration
Post by: Tyrsson on August 03, 2009, 08:44:12 AM
Should have this updated in a day or so.
Title: Re: FlashChat Integration
Post by: Grinch843 on August 04, 2009, 09:26:27 AM
Installed 2.1 and looks good, but I can't get the "Open Chat In New Window" to work.  Always opens in current window no matter what the setting is.

Thanks,
Grinch843.
Title: Re: FlashChat Integration
Post by: Tyrsson on August 04, 2009, 12:57:30 PM
Quote from: Grinch843 on August 04, 2009, 09:26:27 AM
Installed 2.1 and looks good, but I can't get the "Open Chat In New Window" to work.  Always opens in current window no matter what the setting is.

Thanks,
Grinch843.
I will most likely update the text strings to reflect that this is the default behavior for this setting. New window means that it will open "outside" of the forum.
Title: Re: FlashChat Integration
Post by: Tyrsson on August 04, 2009, 01:01:33 PM
I have updated this mod so that there is a default width and height set. This update applies only to the option for when the chat is opened within the forum. The default values are 80% width and 400px in height. If you choose to enter your custom settings then it will be displayed in that size.

This update applies only to the v2.x mod. If you wish to update to the new version without uninstalling the mod all you need to do is download the new v2.1.1 package and extract the chat.template.php and upload it to the themes you are using this mod on and overwrite the existing chat template.
Title: Re: FlashChat Integration
Post by: paster_cobra on August 04, 2009, 02:06:54 PM
i am getting File not found when trying to install should i continue?

/chat/inc/flashChatTag.php
chat/inc/cmses/smfCMS20.php
Title: Re: FlashChat Integration
Post by: Siirist on August 04, 2009, 03:08:43 PM
Hi Tyrsson,

I was here,
http://custom.simplemachines.org/mods/index.php?mod=611


and it said

Theme Changes
Please see http://www.daniel15.com/forum/index.php/topic,856.html for the theme changes required to support this mod.


and when I got there it said

.SMFShop Forum > DanSoft Australia > FlashChat Integration

An Error Has Occurred!
Sorry Guest, you are banned from using this forum!
Spam
Your ban is not set to expire.


So Now what?
Cloud

BTW I just realized taht I am using the BETA ver 5.0. So do I just delete the folder??
Title: Re: FlashChat Integration
Post by: paster_cobra on August 04, 2009, 05:21:09 PM
Quote from: paster_cobra on August 04, 2009, 02:06:54 PM
i am getting File not found when trying to install should i continue?

/chat/inc/flashChatTag.php
chat/inc/cmses/smfCMS20.php


I re-installed 2.o update files
Title: Re: FlashChat Integration
Post by: Kindred on August 04, 2009, 06:33:06 PM
those two files are flashchat files....   this mod assumes that you alreayd have flashchat installed and bridged...   and that flashchat is installed in the forum/chat directory
Title: Re: FlashChat Integration
Post by: Tyrsson on August 05, 2009, 12:19:02 AM
Quote from: Cloud Walker on August 04, 2009, 03:08:43 PM
Hi Tyrsson,

I was here,
http://custom.simplemachines.org/mods/index.php?mod=611


and it said

Theme Changes
Please see http://www.daniel15.com/forum/index.php/topic,856.html for the theme changes required to support this mod.


and when I got there it said

.SMFShop Forum > DanSoft Australia > FlashChat Integration

An Error Has Occurred!
Sorry Guest, you are banned from using this forum!
Spam
Your ban is not set to expire.


So Now what?
Cloud

BTW I just realized taht I am using the BETA ver 5.0. So do I just delete the folder??
I guess I need to update the links in the topic, sorry about that. Which versions are you using?

Version of SMF?
Version of mod?
Version of chat?

The mod WILL NOT work with the 5.0 version of flashchat. That is plainly posted on the mod download page.
Title: Re: FlashChat Integration
Post by: Siirist on August 05, 2009, 01:07:51 AM
Tyrsson,

Version of SMF?
I am using SMF 2.0 RC 1-1.

Version of mod?
Not using it yet.

Version of chat?
Ver5.0.11

If I can just delete the "chat" folder,
I could install
FlashChat_v4712

Cloud
Title: Re: FlashChat Integration
Post by: tyty1234 on August 05, 2009, 01:38:00 AM
Quote from: Tyrsson on August 04, 2009, 01:01:33 PM
I have updated this mod so that there is a default width and height set. This update applies only to the option for when the chat is opened within the forum. The default values are 80% width and 400px in height. If you choose to enter your custom settings then it will be displayed in that size.

This update applies only to the v2.x mod. If you wish to update to the new version without uninstalling the mod all you need to do is download the new v2.1.1 package and extract the chat.template.php and upload it to the themes you are using this mod on and overwrite the existing chat template.
Thanks for the update Tyrsson! :D
It looks much better with the default settings in the forum. Great job!
Title: Re: FlashChat Integration
Post by: Tyrsson on August 05, 2009, 04:05:20 AM
Quote from: Cloud Walker on August 05, 2009, 01:07:51 AM
Tyrsson,

Version of SMF?
I am using SMF 2.0 RC 1-1.

Version of mod?
Not using it yet.

Version of chat?
Ver5.0.11

If I can just delete the "chat" folder,
I could install
FlashChat_v4712

Cloud

Have you already installed the chat? If so there may be a conflict when you run the install for V4 of the chat. It will pick up the db tables that are already present I am sure. I personally have not tried this so I would have to test it before I could advise you to try it. I have the v5 and will try to test it in the next day or so. Kinda busy at the moment. If you have a test forum where you can test this it would be better to test it first if you can't wait until I have a chance.
Title: Re: FlashChat Integration
Post by: Tyrsson on August 05, 2009, 04:06:32 AM
Quote from: tyty1234 on August 05, 2009, 01:38:00 AM
Quote from: Tyrsson on August 04, 2009, 01:01:33 PM
I have updated this mod so that there is a default width and height set. This update applies only to the option for when the chat is opened within the forum. The default values are 80% width and 400px in height. If you choose to enter your custom settings then it will be displayed in that size.

This update applies only to the v2.x mod. If you wish to update to the new version without uninstalling the mod all you need to do is download the new v2.1.1 package and extract the chat.template.php and upload it to the themes you are using this mod on and overwrite the existing chat template.
Thanks for the update Tyrsson! :D
It looks much better with the default settings in the forum. Great job!
Thanks
Title: Re: FlashChat Integration
Post by: Siirist on August 05, 2009, 08:28:38 AM
Quote from: Tyrsson on August 05, 2009, 04:05:20 AM
Quote from: Cloud Walker on August 05, 2009, 01:07:51 AM
Tyrsson,

Version of SMF?
I am using SMF 2.0 RC 1-1.

Version of mod?
Not using it yet.

Version of chat?
Ver5.0.11

If I can just delete the "chat" folder,
I could install
FlashChat_v4712

Cloud

Have you already installed the chat? If so there may be a conflict when you run the install for V4 of the chat. It will pick up the db tables that are already present I am sure. I personally have not tried this so I would have to test it before I could advise you to try it. I have the v5 and will try to test it in the next day or so. Kinda busy at the moment. If you have a test forum where you can test this it would be better to test it first if you can't wait until I have a chance.

Tyrsson,
I have a test forum to do this, but shouldn't I just remove the chat directory on my host that has he files and then install the ver 4?
Title: Re: FlashChat Integration
Post by: Tyrsson on August 05, 2009, 08:38:45 AM
When you run the install script it is going to read that there are already tables that have the same name as the ones it is wanting to integrate. It will most likely give you the option to use those table are drop them. I advise testing this before hand to insure there are no problems. Testing first is always a good idea so that you know how the install is going to run before you are stuck half way through an install that you can not complete.
Title: Re: FlashChat Integration
Post by: Siirist on August 05, 2009, 08:54:58 AM
Tyrsson,

Very well, will do.   So I install the ver 5 and then attempt to install ver 4 over it. Correct?

Cloud
Title: Re: FlashChat Integration
Post by: Tyrsson on August 05, 2009, 10:19:22 AM
Quote from: Cloud Walker on August 05, 2009, 08:54:58 AM
Tyrsson,

Very well, will do.   So I install the ver 5 and then attempt to install ver 4 over it. Correct?

Cloud
IN the test forum. Install the version 5 just as you have it now. After install confirm that everything is working as it should. Then delete the version 5 files from the chat folder and upload the v4 files and attempt to run the install. I hope to have a chance to test this later today/tomorrow.
Title: Re: FlashChat Integration
Post by: Siirist on August 05, 2009, 02:36:12 PM
Quote from: Tyrsson on August 05, 2009, 10:19:22 AM
Quote from: Cloud Walker on August 05, 2009, 08:54:58 AM
Tyrsson,

Very well, will do.   So I install the ver 5 and then attempt to install ver 4 over it. Correct?

Cloud
IN the test forum. Install the version 5 just as you have it now. After install confirm that everything is working as it should. Then delete the version 5 files from the chat folder and upload the v4 files and attempt to run the install. I hope to have a chance to test this later today/tomorrow.


I shall, and will inform you of the "results".
Be Well,
Cloud
Title: Re: FlashChat Integration
Post by: Siirist on August 05, 2009, 08:54:01 PM
I had some things appear before me :( that needed to be dealt with  :-[, so I am not sure I will get to this today :-\, if not, tomorrow for sure. ;)
Title: Re: FlashChat Integration
Post by: Siirist on August 06, 2009, 02:45:26 PM
Quote from: Cloud Walker on August 05, 2009, 08:54:01 PM
I had some things appear before me :( that needed to be dealt with  :-[, so I am not sure I will get to this today :-\, if not, tomorrow for sure. ;)
Tyrsson,

I am so sorry, that I didn't and won't get to test the software today. I uploaded it on to my test forum, (after I created a chat directory). anyway, after uploading, I can't find any of the 1293 files. :-\

I will try again tomorrow
Cloud
Title: Re: FlashChat Integration
Post by: paster_cobra on August 06, 2009, 07:38:35 PM
have a quick question and hoping someone can assist me. i want to move the time that shows up on every post but i dont see the timestamp in the config file. where do i find this
Title: Re: FlashChat Integration
Post by: Tyrsson on August 06, 2009, 10:37:47 PM
If you are referring to the time stamp on the chat post then you will need to ask on the chat support forum at

http://www.tufat.com
Title: Re: FlashChat Integration
Post by: jwwd on August 07, 2009, 08:14:34 AM
Hi

I have the new mod version installed on SMF 2.0 RC1-2 and its working.

I have 2 questions:

1.

I dont see the chatrobot in the whos-online list in the bottom of the SMF forum.

2.
To logoff chat - does the user have to click the red cross in the flashchat? Or would it be possible to automatic logoff the user when he/she is going to another part of forum?

Thanks for a great mod.

Best regards,

Henrik
Title: Re: FlashChat Integration
Post by: Siirist on August 07, 2009, 10:05:43 AM
Quote from: jwwd on August 07, 2009, 08:14:34 AM
Hi

I have the new mod version installed on SMF 2.0 RC1-2 and its working.

I have 2 questions:

1.

I dont see the chatrobot in the whos-online list in the bottom of the SMF forum.

2.
To logoff chat - does the user have to click the red cross in the flashchat? Or would it be possible to automatic logoff the user when he/she is going to another part of forum?

Thanks for a great mod.

Best regards,

Henrik

Yeah, exactly. I have the "new" ver of FlashChat working (ver 5.0) and basically same thing.  I dont have a logoff or log out button. AND I have to use the adminlogon.php to reach admin area on FlashChat.

Cloud
Title: Re: FlashChat Integration
Post by: Siirist on August 07, 2009, 05:10:32 PM
Tyrsson,

This is why I need a Tech for my forum. As you can see below, I have 16 Forums (3 are live) and 7 DataBases

I tried to install number 16 and SMF said I don't have the proper password for my database, so I sent a email to my host asking if we needed to close my account and reopen because I had asked for the password previously and they said they cannot reset it.

I am now walking down exasperation lane. I have the following:
FORUMS
address on server                                    live/test    SMF ver                          NOTES
1. /yoursanctuary                                    live          2.0RC1-1

2. /forum                                               live          1.1.9

3 /smftest                                              live          1.1.8

4. /TEST-FORUM2.0RC1-2                         test          2.0RC1-2                          Not Installed YET (database password problem)

5. FoldersMe&DaveMade/RC1Forum             test          2.0RC1.0                          Won't launch

6. FoldersMe&DaveMade/SancTest             test           ?                                  Sorry, SMF was unable to connect to the database

7. FoldersMe&DaveMade/fakeforum             test           ?                                        Fatal error: Call to undefined function: tp_loadtheme() in <B>/home/thegr45/public_html/forum/Sources/Load.php</B> on line <B>1152</B>

8. FoldersMe&DaveMade/forum2                  test            1.1.9                                Tried to log in and got this http://forum2.asanctuary.net/index.php?action=login2 (http://forum2.asanctuary.net/index.php?action=login2)   The webpage cannot be found

9. FoldersMe&DaveMade/forum_old              test            ?                                       Tried to log in and got this http://forum2.asanctuary.net/index.php?action=login2 (http://forum2.asanctuary.net/index.php?action=login2)   The webpage cannot be found

10. /keepers /Forum5-31-09

11. /keepers/ForumSpMax (with simple portal and all mods)

12. /keepers/ForumSpMed (with simple portal and most mods)

13. /keepers/ForumSpMin (with simple portal and a few mods)

14. /keepers/ForumSpONLY (with simple portal and no mods)

15. /keepers/JustTheForum (without simple portal or mods)

16. /keepers/forum


DATABASES

1. thegr45_asanctuary

2. thegr45_Sanctuary

3. thegr45_smf2

4. thegr45_smftest

5. thegr45_x7chat

6. thegr45_TESTFORUMRC2022

So Yeah, What now??
Cloud
Title: Re: FlashChat Integration
Post by: tyty1234 on August 07, 2009, 11:48:41 PM
Quote from: Cloud Walker on August 07, 2009, 10:05:43 AM
Quote from: jwwd on August 07, 2009, 08:14:34 AM
Hi

I have the new mod version installed on SMF 2.0 RC1-2 and its working.

I have 2 questions:

1.

I dont see the chatrobot in the whos-online list in the bottom of the SMF forum.

2.
To logoff chat - does the user have to click the red cross in the flashchat? Or would it be possible to automatic logoff the user when he/she is going to another part of forum?

Thanks for a great mod.

Best regards,

Henrik

Yeah, exactly. I have the "new" ver of FlashChat working (ver 5.0) and basically same thing.  I dont have a logoff or log out button. AND I have to use the adminlogon.php to reach admin area on FlashChat.

Cloud
The FlashChat Integration mod is meant for FlashChat ver 4.7.12 ONLY. It does not support ver 5.0
Title: Re: FlashChat Integration
Post by: Tyrsson on August 08, 2009, 12:54:52 AM
Quote from: Cloud Walker on August 07, 2009, 05:10:32 PM
Tyrsson,

This is why I need a Tech for my forum. As you can see below, I have 16 Forums (3 are live) and 7 DataBases

I tried to install number 16 and SMF said I don't have the proper password for my database, so I sent a email to my host asking if we needed to close my account and reopen because I had asked for the password previously and they said they cannot reset it.

I am now walking down exasperation lane. I have the following:
FORUMS
address on server                                    live/test    SMF ver                          NOTES
1. /yoursanctuary                                    live          2.0RC1-1

2. /forum                                               live          1.1.9

3 /smftest                                              live          1.1.8

4. /TEST-FORUM2.0RC1-2                         test          2.0RC1-2                          Not Installed YET (database password problem)

5. FoldersMe&DaveMade/RC1Forum             test          2.0RC1.0                          Won't launch

6. FoldersMe&DaveMade/SancTest             test           ?                                  Sorry, SMF was unable to connect to the database

7. FoldersMe&DaveMade/fakeforum             test           ?                                        Fatal error: Call to undefined function: tp_loadtheme() in <B>/home/thegr45/public_html/forum/Sources/Load.php</B> on line <B>1152</B>

8. FoldersMe&DaveMade/forum2                  test            1.1.9                                Tried to log in and got this http://forum2.asanctuary.net/index.php?action=login2 (http://forum2.asanctuary.net/index.php?action=login2)   The webpage cannot be found

9. FoldersMe&DaveMade/forum_old              test            ?                                       Tried to log in and got this http://forum2.asanctuary.net/index.php?action=login2 (http://forum2.asanctuary.net/index.php?action=login2)   The webpage cannot be found

10. /keepers /Forum5-31-09

11. /keepers/ForumSpMax (with simple portal and all mods)

12. /keepers/ForumSpMed (with simple portal and most mods)

13. /keepers/ForumSpMin (with simple portal and a few mods)

14. /keepers/ForumSpONLY (with simple portal and no mods)

15. /keepers/JustTheForum (without simple portal or mods)

16. /keepers/forum


DATABASES

1. thegr45_asanctuary

2. thegr45_Sanctuary

3. thegr45_smf2

4. thegr45_smftest

5. thegr45_x7chat

6. thegr45_TESTFORUMRC2022

So Yeah, What now??
Cloud
That would take awhile to sort through. If I may ask why do you have so many forums installed? After a point it gets confusing, even when you do this a lot ;) If it were me I would trim those back to the ones I was using as a live site and those that I was using for testing. It make things much simpler.

Note: I plan to get this working with the v5 chat but its not top of my priority list at the moment. I have several other projects that I must finish before I will have time to work on that.
Title: Re: FlashChat Integration
Post by: Siirist on August 08, 2009, 01:09:31 AM
Tyrsson,


Forums:

I need 1. and 2.

4. would become the TEST FORUM

3. 5. 6. 7. 8. and 9.

I created folders 10. - 16. were back-ups in case the transition to 2.0 didn't work

These could be un-installed but I don't know how


DataBases:

I believe I created 1. 5. & 6.

5. is no longer needed, but I am not sure that it is "cool" to just delete it.

As far as I know my previous Tech did the everything else.

Be Well,
Cloud Walker
Title: Re: FlashChat Integration
Post by: Siirist on August 11, 2009, 12:04:24 PM
Okay Tyrsson,

I carefully deleted all the extra folders and databases.

I so that only had The original forum and The current forum to "deal" with.

I installed SMF ver 2.0 RC 1.2 at a TEST-FORUM, with Cloud Walker as the only user.

I then uploaded and installed FlashChat ver 5.0 and ensured that it was functioning

(while integrated, I did not create a tab for it in the TEST-FORUM).

I deleted the associated folders and files from under the TEST- FORUM.

I then uploaded and installed FlashChat ver 4.7 (though I call it 4.0). I have attached 7 screen shots showing the install process:

Installing Flashchat4.0,
Installing Flashchat4.0B,
Installing Flashchat4.0C,
Installing Flashchat4.0D,
Installing Flashchat4.0E,
Installing Flashchat4.0F, and
Installing Flashchat4.0G.

NOTE: The ONLY choices for SMF integration were SMF ver 1.0 and 1.1.
Even though I was integrating with SMF ver 2.0 RC1-2, I chose SMF ver 1.1 .

While it appears that I can I log-in, all I get is blue screen.
Shown on Installing Flashchat4.0G

I tried the admin.php and got an error.
Shown on Installing Flashchat4.0F


So there you have it.

Be Well,
Cloud Walker
Title: Re: FlashChat Integration
Post by: tyty1234 on August 12, 2009, 12:24:59 AM
Quote from: Cloud Walker on August 11, 2009, 12:04:24 PM
NOTE: The ONLY choices for SMF integration were SMF ver 1.0 and 1.1.
Even though I was integrating with SMF ver 2.0 RC1-2, I chose SMF ver 1.1.

If there is no SMF 2.0 option, you didn't read the readme on the mod page.

Quote
To install the 2.1.1 version you will need to update your flashchat files with those found at the following link before installing flashchat!!
http://forum.tufat.com/showthread.php?t=56996
Title: Re: FlashChat Integration
Post by: Siirist on August 12, 2009, 04:13:08 AM
Thanks for the info.
It is just bout 2am so I am done.
the chat is working for now.  ???

Be Well
Cloud Walker
Title: Re: FlashChat Integration
Post by: C4G-TK on August 12, 2009, 04:32:33 PM
The only failed test that I had was in Index.Template.php.  I can't find that code anywhere.  Anyway someone could check it out to tell me where to make this one edit?
Title: Re: FlashChat Integration
Post by: jwwd on August 13, 2009, 08:33:24 AM
Quote from: jwwd on August 07, 2009, 08:14:34 AM
I have the new mod version installed on SMF 2.0 RC1-2 and its working.

I have 2 questions:
1. I dont see the chatrobot in the whos-online list in the bottom of the SMF forum.
2. To logoff chat - does the user have to click the red cross in the flashchat? Or would it be possible to automatic logoff the user when he/she is going to another part of forum?

Thanks for a great mod.

Hi Tyrsson

Anything new about the above?

Best regards,

Henrik
Title: Re: FlashChat Integration
Post by: Tyrsson on August 13, 2009, 08:45:14 AM
1) I have not had a chance to check into this. Do you have the bot installed and configured correctly? I personally have never used a bot in any of the chats I have installed. If the bot is active and showing in the chat as an online user (in the chat room) then it should show in the who's in chat.

2) The user will need to click the logout button when they leave the chat to logout.

I plan on expanding this mod somewhat so that there will be an option to have the chat open in a popup, but I doubt it will be before 2.0 goes final.
Title: Re: FlashChat Integration
Post by: jwwd on August 13, 2009, 03:59:44 PM
Quote from: Tyrsson on August 13, 2009, 08:45:14 AM
1) I have not had a chance to check into this. Do you have the bot installed and configured correctly? I personally have never used a bot in any of the chats I have installed. If the bot is active and showing in the chat as an online user (in the chat room) then it should show in the who's in chat.
Hi Tyrsson

Thanks for your reply

Yes - the bot is installed and is working correctly. See attached pic from the Flashchat admin.

Quote
2) The user will need to click the logout button when they leave the chat to logout.

I plan on expanding this mod somewhat so that there will be an option to have the chat open in a popup, but I doubt it will be before 2.0 goes final.
OK - look forward to 2.0 final  :)

Do you know if its possible to tell the chatters in the beginning of the chat, that they should logoff by clicking the red cross?

Best regards,

Henrik
Title: Re: FlashChat Integration
Post by: Tyrsson on August 13, 2009, 06:15:23 PM
QuoteDo you know if its possible to tell the chatters in the beginning of the chat, that they should logoff by clicking the red cross?
Uhm, will try to look into this but it might take awhile... I have a lot of things on my "to do" list at the moment.
Title: Re: FlashChat Integration
Post by: C4G-TK on August 13, 2009, 07:06:08 PM
If I remember from when I used FC previously, there is a welcome message that shows when a user signs into the chat room.  This welcome message can be edited in order to say whatever it is you want.  This might due for a temporary or permanent fix since it would eventually be drilled into the chatters head with every log in to the chat.

Title: Re: FlashChat Integration
Post by: jwwd on August 14, 2009, 01:28:17 AM
Quote from: Tyrsson on August 13, 2009, 06:15:23 PM
QuoteDo you know if its possible to tell the chatters in the beginning of the chat, that they should logoff by clicking the red cross?
Uhm, will try to look into this but it might take awhile... I have a lot of things on my "to do" list at the moment.

Hi Tyrsson

Thanks for your help.

I found a solution. I just put a message after the welcome message which I found in the language files.

About chatbot not showing in whos-online list - could it be something in my 'chat/inc/config.php file?

I have attached it (renamed to .txt)

Best regards,

Henrik
Title: Re: FlashChat Integration
Post by: Tyrsson on August 14, 2009, 06:42:10 AM
As far as I can see from looking through that file everything is set so that the bot should show. I will need to do some testing to see if there is a bug in the code that could be causing the bot to not show in the online list.
Title: Re: FlashChat Integration
Post by: C4G-TK on August 14, 2009, 06:02:07 PM
Quote from: C4G-TK on August 12, 2009, 04:32:33 PM
The only failed test that I had was in Index.Template.php.  I can't find that code anywhere.  Anyway someone could check it out to tell me where to make this one edit?

Ok, I ended up putting the code in.  I attached the file again. 

I'm on SMF2.0 RC1.2 and I had a copy of my 4.712 chat file from a little over a year ago, and replaced the files from the thread that was posted on the other site.

Everything installed correctly and chose to integrate when installing...

My problem that I am getting is this:

I click on the CHAT button and when the chat loads, I just have the windows background.  (see pic)


Title: Re: FlashChat Integration
Post by: Tyrsson on August 14, 2009, 08:46:31 PM
Do you have the flashplayer plugin installed in your browser?
Title: Re: FlashChat Integration
Post by: C4G-TK on August 14, 2009, 09:02:44 PM
I have the following showing as enabled on Firefox

    File name: C:\WINDOWS\system32\Macromed\Flash\NPSWF32.dll
    Shockwave Flash 10.0 r32

application/x-shockwave-flash    Adobe Flash movie    swf    Yes
application/futuresplash    FutureSplash movie    spl    Yes


I also went here and it says that Flashplayer is installed as well as Shockwave

http://www.adobe.com/shockwave/welcome/#

Still nothing..

I had upgraded to the other FC version last August, but stopped using it.   I did upload the 4.7.12 version to the server though for this, but I wonder if I'm missing something.  I can't seem to see where they anyone is able to get the 4.7.12 version any longer though.
Title: Re: FlashChat Integration
Post by: Tyrsson on August 14, 2009, 09:25:12 PM
You will need to visit the tufat site and trouble shoot the chat install. I also suggest trying to login into the chat admin via url to see if the chat is actually running.
Title: Re: FlashChat Integration
Post by: C4G-TK on August 14, 2009, 09:37:47 PM
I can get to the admin area fine for chat.

But, will take a look.  It goes thru the load screen and then stops
Title: Re: FlashChat Integration
Post by: jwwd on August 15, 2009, 06:29:09 AM
Quote from: Tyrsson on August 14, 2009, 06:42:10 AM
As far as I can see from looking through that file everything is set so that the bot should show. I will need to do some testing to see if there is a bug in the code that could be causing the bot to not show in the online list.

Hi Tyrsson

Thank you very much for your help.

Best regards,

Henrik
Title: Re: FlashChat Integration
Post by: C4G-TK on August 17, 2009, 01:51:05 AM
I got it to work!  The only thing not working for me is the number being placed on the tab although it i selected.  This may have already have been pointed out.  I'll look through the thread.  Just wanted to say that I went ahead and redownloaded my 4.7.12 file with a FRESH FILE and it worked fine.

THANKS A BUNCH FOR THE UPGRADE!!!!!
Title: Re: FlashChat Integration
Post by: Tyrsson on August 17, 2009, 02:44:05 AM
Quote from: C4G-TK on August 17, 2009, 01:51:05 AM
I got it to work!  The only thing not working for me is the number being placed on the tab although it i selected.  This may have already have been pointed out.  I'll look through the thread.  Just wanted to say that I went ahead and redownloaded my 4.7.12 file with a FRESH FILE and it worked fine.

THANKS A BUNCH FOR THE UPGRADE!!!!!
Awesome, glad you got it sorted out. I will look into the number displayed in the tab.
Title: Re: FlashChat Integration
Post by: teh_Krall on August 18, 2009, 12:06:38 AM
Any word if this will work with 1.1.10 yet? It looks like some people having working on that version of SMF, but I didn't see any detail on what needs to be done to make it work.
Title: Re: FlashChat Integration
Post by: Tyrsson on August 18, 2009, 04:00:18 AM
I do not see any reason as to why it would not work on 1.1.10. You will either have to change the install for info in the package or use the version_emulate. I hope to have the package updated within a few days.... I have just been real busy lately and have not had time to update it.
Title: Re: FlashChat Integration
Post by: chrishicks on August 19, 2009, 08:11:22 PM
I'm hoping someone can help me out with this. I went to install 2 mods on my forum(1.1.10 with flashchat integration 1.0) and encountered log errors(50 pages on each refresh) after either mod was installed.

The error:

http://rejectsreststop.com/forum/index.php
Database Error: No database selected
File: /home/rejectsr/public_html/forum/Sources/Subs.php
Line: 3625 or 3627 - depending on which mod is installed

the code on line 3625/3627 when the mod is installed:

         ORDER BY mem.realName ASC", __FILE__, __LINE__);

the entire section of code in that area:


      // Get the FlashChat database config (for the prefix)
      include($boarddir . '/chat/inc/config.srv.php');
      // Load all the users currently in the chat
      $result = db_query("
         SELECT
            fc.userid, fc.state, fc.color, fc.lang, fc.roomid,
            fr.name AS roomName, fr.ispublic,
            mem.realName, mem.memberName, mem.showOnline, mg.onlineColor,
            mg.ID_GROUP, mg.groupName
         FROM {$GLOBALS['fc_config']['db']['pref']}connections AS fc
            LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
            LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
            LEFT JOIN {$GLOBALS['fc_config']['db']['pref']}rooms AS fr ON (fc.roomid = fr.id)
         WHERE fc.userid IS NOT NULL
            AND mem.ID_MEMBER != 0
         ORDER BY mem.realName ASC", __FILE__, __LINE__);
         
      $context['users_chat'] = array();
      $context['list_users_chat'] = array();
      $context['num_chat'] = mysql_num_rows($result);



I'm hoping someone can help me figure this out as I would really like to use the 2 other mods and I can't remove the chat or my members would burn me at the stake.

Thanks in advance for any possible help you can provide with this.


EDIT: after quite a while of searching I found this post and figured I'd give it a try.

http://www.simplemachines.org/community/index.php?topic=176062.msg1131874#msg1131874

The fix posted worked and now I am happily using the 2 mods I wanted. Hopefully this helps anyone else who might encounter this same issue.
Title: Re: FlashChat Integration
Post by: W7 riso on August 20, 2009, 03:36:43 AM
After installing it at my Smf Forum 1.1.10 the forum index.php was not shown anymore!!! I used version FlashChatSMF_1-0a_Googlebot because I'm using Googlebot, luckily I could by using backspace de-install the Mod. and all is working fine again!
Installed Mod list:
Mod Name Version 
1. Country Flags 1.0.1 [ Uninstall ]
2. Skype Integration 1.0 [ Uninstall ]
3. Enhanced Forum Statistics 1.0 [ Uninstall ]
4. EmailValidator 1.0 [ Uninstall ]
5. Users Online Today Mod 1.4.0 [ Uninstall ]
6. Akismet Spam Blocking 1.1.1 [ Uninstall ]
7. Integrate Lightbox 1.6 [ Uninstall ]
8. Colors And Icons 1.1 [ Uninstall ]
9. Anti Bot: Unrecognizable Form 1.0 [ Uninstall ]
10. EXTRA Quick Reply Bar 1.0 [ Uninstall ]
11. Wrap Text Around Image 1.0 [ Uninstall ]
12. Simple staff color legend 1.1 [ Uninstall ]
13. Google Verification META Tag 1.0 [ Uninstall ]
14. Website Button 1.1.4 [ Uninstall ]
15. Googlebot & Spiders Mod 2.0.4 [ Uninstall ]
16. Colorize Boards 3.0 [ Uninstall ]
17. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0 [ Uninstall ]
18. Let Me Google That For You Tag 1.1 [ Uninstall ]
19. Reg Bar 1.0.2 [ Uninstall ]
20. Advanced AJAX Shoutbox 1.22 [ Uninstall ]
21. Images On Board 2.1 [ Uninstall ]
22. Google Tagged 1.4 [ Uninstall ]
23. SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update 1.1 [ Uninstall ]
24. DisableTemplateEval 1.1 [ Uninstall ]
25. EzPortal 0.2.8 [ Uninstall ]
26. Treasury 2.36 [ Uninstall ]
27. Custom Tab 1.2 [ Uninstall ]
Title: Re: FlashChat Integration
Post by: Tyrsson on August 20, 2009, 09:27:00 AM
You have a lot of other mods installed and each one of those changes code. To be honest I have no idea which one could be causing the problem... Also, I have not had time to test the mod with the 1.1.10 version of SMF. However, it is most likely due to the mod changing code close to where another mod has already changed code in a previous installation.
Title: Re: FlashChat Integration
Post by: teh_Krall on August 20, 2009, 12:32:11 PM
Quote from: Tyrsson on August 18, 2009, 04:00:18 AM
I do not see any reason as to why it would not work on 1.1.10. You will either have to change the install for info in the package or use the version_emulate. I hope to have the package updated within a few days.... I have just been real busy lately and have not had time to update it.

Thanks Tyrsson, it indeed installed just fine under 1.1.10. Also, thanks a bunch for the mod, it allows people to use what I think is the best chat setup I've ever tested :)
Title: Re: FlashChat Integration
Post by: Tyrsson on August 21, 2009, 02:32:03 AM
Thanks, the original mod was coded by a former SMF team member. I just updated it and maintain it so people can keep using it :)
Title: Re: FlashChat Integration
Post by: Trashcan on August 21, 2009, 08:52:27 AM
resolved.  thanks for all the help!!
Title: Re: FlashChat Integration
Post by: Tyrsson on August 21, 2009, 08:59:00 AM
Please attach your Modifications.english.php file to your next post.

Also, this mod only works for the 4.7.12 version of flashchat.
Title: Re: FlashChat Integration
Post by: Trashcan on August 21, 2009, 09:43:05 AM
resolved.  thanks
Title: Re: FlashChat Integration
Post by: Tyrsson on August 21, 2009, 09:48:37 AM
Sorry, wrong index.... Need some sleep...

Gonna have to do this.

Go into phpMyAdmin ( What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0) ) and click on your database. Then click on the SQL tab and copy paste the following code and run it:



To Disable temp eval



INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);


Post the new errors and ATTACH the file that is referenced in the error massage in your next post please.
Title: Re: FlashChat Integration
Post by: teh_Krall on August 21, 2009, 01:49:19 PM
Hey Tyrsson,

I wonder if you could point me to the code that makes the chat button show how many users are in chat? Just about everyone on our site uses custom themes and obviously they have no chat button let alone a display of users in chat. I can make chat buttons for the other themes, but with my limited php I can't figure out what code makes that work.

I think it's the last part of the chat.php file...?
Title: Re: FlashChat Integration
Post by: Tyrsson on August 21, 2009, 04:20:08 PM
Quote from: teh_Krall on August 21, 2009, 01:49:19 PM
Hey Tyrsson,

I wonder if you could point me to the code that makes the chat button show how many users are in chat? Just about everyone on our site uses custom themes and obviously they have no chat button let alone a display of users in chat. I can make chat buttons for the other themes, but with my limited php I can't figure out what code makes that work.

I think it's the last part of the chat.php file...?
What version of SMF and flashchat are you using? For theme support and other in-depth support issues you should click on the userbar in my signature and post in the flashchat support board.
Title: Re: FlashChat Integration
Post by: tyty1234 on August 21, 2009, 08:03:41 PM
Quote from: Tyrsson on August 21, 2009, 09:48:37 AM
To Disable temp eval



INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);


Post the new errors and ATTACH the file that is referenced in the error massage in your next post please.
There is now a mod to do this.
Disable Template Eval (http://custom.simplemachines.org/mods/index.php?mod=2054)
Title: Re: FlashChat Integration
Post by: Tyrsson on August 22, 2009, 02:26:15 AM
Quote from: tyty1234 on August 21, 2009, 08:03:41 PM
Quote from: Tyrsson on August 21, 2009, 09:48:37 AM
To Disable temp eval



INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);


Post the new errors and ATTACH the file that is referenced in the error massage in your next post please.
There is now a mod to do this.
Disable Template Eval (http://custom.simplemachines.org/mods/index.php?mod=2054)
I am aware of that ;)
Title: Re: FlashChat Integration
Post by: simplebeer on September 06, 2009, 08:38:13 AM
hello!

i think this chat is really good but i wonder if it is possible to give members permission for the chat?
Is that integrated?

Because i want this for moderator and admins only, just for fast communication, insteed of pb.

Gr
Title: Re: FlashChat Integration
Post by: Tyrsson on September 06, 2009, 11:57:20 AM
It pulls the permissions for Global moderators and admins. Beyond that people are regular users. This will not be expanded.
Title: Re: FlashChat Integration
Post by: Kindred on September 08, 2009, 07:56:56 PM
well, not as part of the mod, but it IS possible...


just set the check for moderator group permissions around the chat button and in the chat function...
Title: Re: FlashChat Integration
Post by: C4G-TK on September 09, 2009, 12:51:34 AM
Quote from: Kirsten07734 on November 04, 2007, 12:14:23 PM
Re:  some members being banned from chat when they haven't been banned by admin or moderator

There's a little kink.  Anyone with a primary member group, any primary member group other than admin or global moderator (groups 1 and 2 respectively), gets banned from FlashChat.  This happens even if they are also in a post-count based group.  The mere existance of a primary member group (other than group 1 or 2) screws them up for chat. 

Those in member group 1 are assigned as admins in the chat.  Those in member group 2 are assigned as moderators in the chat.

A non-coder solution is to simply remove all primary member groups (except admin and global mod) and put all member groups to which a member belongs as secondary member groups.  The headache, of course, is that when you add a list of people to a group and they don't already have a primary member group, that new group is made their new primary.

You can change each individual member's member groups from their profile.

I haven't a clue how to fix it with code.

I had this same problem previously and I edited a file in order to remedy it.  Unfortunately, I haven't had flashchat operating over the past 6 months, so I don't remember what the fix is.  Since I just reinstalled the mod again, I am running into the same problem like this again.  Once I remember what the fix was, I'll post.  I'm just posting this, so if anyone else knows the fix in the meantime they might post the fix.




UPDATE

OK, I found where I got the fix from and here it is.

http://forum.tufat.com/showthread.php?p=213326#post213326
Title: Re: FlashChat Integration
Post by: simplebeer on September 09, 2009, 03:25:22 PM
Quote from: Kindred on September 08, 2009, 07:56:56 PM
well, not as part of the mod, but it IS possible...


just set the check for moderator group permissions around the chat button and in the chat function...

Just... :( :( :( :(

I don't think i can do that,i am pretty new with SMF, is there someone who would like to help me?

Gr
Title: Re: FlashChat Integration
Post by: C4G-TK on September 09, 2009, 04:45:21 PM
You could do that with the above link.  It tell you how to add membergroups, so you could always use the same area to LIMIT membergroups by deleting them

just edit the code to only allow the mod/admin groups and the rest shouldn't be able to get in at all.
Title: Re: FlashChat Integration
Post by: adbrad on September 12, 2009, 04:45:00 PM
ok i'm not sure if this has happened to any one else or if i have done something wrong.

i'm using smf2.0rc1.2 and the flash mod version 2.1.1 and flashchat version v5.0.11

i installed flashchat and clicked to intergrate and chose smf2.0 on the list i then went to install the mod which it did apart from a few files which i had already modded as i tryed to do a manual install however i have a problem now where i install mod through package manager installing manually didn't cure problem.
now when i try to go to the home page of the forum i get this
QuoteFatal error: main() [function.require]: Failed opening required 'INC_DIR../temp/config.srv.php' (include_path='.:/usr/share/pear') in /home/sites/caringforhuskies.com/public_html/forum/chat/inc/config.srv.php on line 2

if i delete the file it refers to i then get a database error on the home page saying the tables are mising with this error
QuoteTable 'web176-smfforum.connections' doesn't exist
File: /home/sites/caringforhuskies.com/public_html/forum/Sources/Subs.php
Line: 3199

then i click on the chat button and get
QuoteFatal error: main() [function.require]: Failed opening required '/home/sites/caringforhuskies.com/public_html/forum/chat/inc/config.srv.php' (include_path='.:/usr/share/pear') in /home/sites/caringforhuskies.com/public_html/forum/chat/inc/common.php on line 77

and if i goto the admin panel and click on the flash chat setting i get
QuoteFatal error: Cannot redeclare modifyflashchatsettings() (previously declared in /home/sites/caringforhuskies.com/public_html/forum/Sources/ManageSettings.php:2012) in /home/sites/caringforhuskies.com/public_html/forum/Sources/ManageSettings.php on line 2060

if i unistall the mod i can get everything working as normal and can get to the chat by pointing the browser to chat directory.

i have no idea what is going on as i am no good with coding.

i downloaded the free version of flash chat don't know if this makes  a difference.

any help greatly apreciated
Title: Re: FlashChat Integration
Post by: Kindred on September 12, 2009, 05:29:27 PM
Quote from: Tyrsson on August 21, 2009, 08:59:00 AM
Also, this mod only works for the 4.7.12 version of flashchat.
Title: Re: FlashChat Integration
Post by: adbrad on September 12, 2009, 05:41:59 PM
Quote from: Kindred on September 12, 2009, 05:29:27 PM
Quote from: Tyrsson on August 21, 2009, 08:59:00 AM
Also, this mod only works for the 4.7.12 version of flashchat.

ok thanks any idea how i can integrate thw new version of flash chat or download the old version of flash chat
Title: Re: FlashChat Integration
Post by: Kindred on September 12, 2009, 06:21:22 PM
well, 5.x flashchat does link with smf with no problems and without this mod.   the only thing this mod does is present the chat in the forum wrapper and move some of the admin options into smf admin...  nothing critical.

Title: Re: FlashChat Integration
Post by: adbrad on September 12, 2009, 06:34:12 PM
Quote from: Kindred on September 12, 2009, 06:21:22 PM
well, 5.x flashchat does link with smf with no problems and without this mod.   the only thing this mod does is present the chat in the forum wrapper and move some of the admin options into smf admin...  nothing critical.

thanks again what code do i need to add to which files to get a chat button apear and for the chat to open in new window

thanks again
Title: Re: FlashChat Integration
Post by: Kindred on September 13, 2009, 12:08:08 AM
you would have to add something to the menu array function in subs.php
Title: Re: FlashChat Integration
Post by: adbrad on September 13, 2009, 06:45:13 AM
Quote from: Kindred on September 13, 2009, 12:08:08 AM
you would have to add something to the menu array function in subs.php

thanks do you or any one else know what code i have to add

thanks
Title: Re: FlashChat Integration
Post by: gjtoth on September 14, 2009, 08:38:00 PM
I've been trying to install this mod on SMF 1.1.10.  I've tried it on a fully-working board with a bunch of other mods and a fresh install with this as the only package.  Permissions have been set to 777 in the entire chat directory.   Flashchat version is 5.0.1.1  The error I get is as shown.  I would REALLY like to get this going as it's exactly what I've been looking for.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi86.photobucket.com%2Falbums%2Fk119%2Fgjtoth%2FStuff%2FScreenshot2.png&hash=79ac14bad09621f66371afba97338d88436257b1)
Title: Re: FlashChat Integration
Post by: Kindred on September 14, 2009, 10:56:37 PM
Quote from: Kindred on September 12, 2009, 05:29:27 PM
Quote from: Tyrsson on August 21, 2009, 08:59:00 AM
Also, this mod only works for the 4.7.12 version of flashchat.
Title: Re: FlashChat Integration
Post by: adbrad on September 15, 2009, 03:05:37 PM
i have succesfully integrated the chat with smf2.0rc1.2 using the mod and chat 4.7.12 what i would like to do is open the chat in a new window rather than ove the top of the forum .
i selected open in new window in the setting but all i get is a full screen version in the same window as i browse the forum. i know this has been covered somewhere but can not find the info

thanks all
Title: Re: FlashChat Integration
Post by: S.N.K.! on September 24, 2009, 08:23:38 PM
This Chat doesnt work on SMF 1.1.10???? Please someone answer !!!!
Title: Re: FlashChat Integration
Post by: Tyrsson on September 25, 2009, 02:58:08 AM
Quote from: adbrad on September 15, 2009, 03:05:37 PM
i have succesfully integrated the chat with smf2.0rc1.2 using the mod and chat 4.7.12 what i would like to do is open the chat in a new window rather than ove the top of the forum .
i selected open in new window in the setting but all i get is a full screen version in the same window as i browse the forum. i know this has been covered somewhere but can not find the info

thanks all
Which version of the mod are you using? The newest version allows you to set the width in the admincp area of modsettings.
Title: Re: FlashChat Integration
Post by: Tyrsson on September 25, 2009, 02:58:54 AM
Quote from: S.N.K.! on September 24, 2009, 08:23:38 PM
This Chat doesnt work on SMF 1.1.10???? Please someone answer !!!!
Yes there is a version that should work with 1.1.10. I have not had time to test it thought, but see no reason why it wouldn't work.
Title: Re: FlashChat Integration
Post by: Sakurachan on September 25, 2009, 03:45:27 PM
Quote from: Tyrsson on September 25, 2009, 02:58:54 AM
Quote from: S.N.K.! on September 24, 2009, 08:23:38 PM
This Chat doesnt work on SMF 1.1.10???? Please someone answer !!!!
Yes there is a version that should work with 1.1.10. I have not had time to test it thought, but see no reason why it wouldn't work.

I was also wondering the same thing..

So we can install your mod with SMF 1.1.10?
or just flash chat?
Title: Re: FlashChat Integration
Post by: Kindred on September 25, 2009, 06:28:52 PM
???   you must have smf AND flashchat already installed and working before you install this mod.
Title: Re: FlashChat Integration
Post by: S.N.K.! on September 25, 2009, 07:24:58 PM
but how i install flashchat before if i cant install mods... i have to install mods manualy.. because i have a problem with the host..

So i must install flaschat mod first and after install de "integration mod"????

Sorry for my bada english, im from argentina...
Title: Re: FlashChat Integration
Post by: Tyrsson on September 25, 2009, 07:43:32 PM
Install flashchat as per the instructions for integration with SMF. Those instructions are found on the tufat website.

Then install the mod.
Title: Re: FlashChat Integration
Post by: Sakurachan on September 26, 2009, 11:48:38 AM
Got the flash chat installed fine.

You just have to tick 'SMF 1.1' when you want to integrate
Title: Re: FlashChat Integration
Post by: chep on September 26, 2009, 11:27:45 PM
I could not get this mod to work on 1.1.10

However I had simple portal and created a "page" and put the chat into an iframe. Works fine that way too.
Title: Re: FlashChat Integration
Post by: S.N.K.! on September 27, 2009, 01:06:51 AM
Yes. But doesnt look good.. Why is so complicated put a fu**! Chatbox or shoutbox in forum index..?? Just like a module.. Like a mod.. Like a tick an option that says "tick here to add a chat integrated your forum.."
Its so hard? I think not.. Maybe its hard for me, but for the smf's creators?? Come on...
I think they must will put "this option" in a nearly update.. Compulsory..
I have a "foroactivo forum" and this is a reality there.. Why here not?

So.. Sorry if i disturb someone.. I only want to "discharge" my fury! Ja ja ;)

Bye boys !
Title: Re: FlashChat Integration
Post by: Kindred on September 27, 2009, 10:31:30 AM
1- flashchat is a standalone program.
2- this mod bridges to that standalone program, adding some of the admin interface directly into smf and allowing for the wrapping of the chat in the forum header/footer.

3- this mod and flashchat are ***NOT*** a  shoutbox or chatbox.

4- We do not include a shoutbox in SMF as standard because 90% of the systems would not use it, so it is better off as a mod.  Also, chatboxes are notorious for having security issues.

5 and finally - please refrain from swearing. It's not necessary
Title: Re: FlashChat Integration
Post by: adbrad on October 02, 2009, 07:36:03 PM
Quote from: Tyrsson on September 25, 2009, 02:58:08 AM
Quote from: adbrad on September 15, 2009, 03:05:37 PM
i have succesfully integrated the chat with smf2.0rc1.2 using the mod and chat 4.7.12 what i would like to do is open the chat in a new window rather than ove the top of the forum .
i selected open in new window in the setting but all i get is a full screen version in the same window as i browse the forum. i know this has been covered somewhere but can not find the info

thanks all
Which version of the mod are you using? The newest version allows you to set the width in the admincp area of modsettings.

i am using the latest version of the mod. i want to open it it a new window or new tab.
when using firefox if i right click the button then click open in new tab i would like to be able to do this without having to right click the button would like to click the button and it open in a new tab

hope this makes my intentions clearer
Title: Re: FlashChat Integration
Post by: Tyrsson on October 02, 2009, 07:43:07 PM
Okay then in the admincp select for it to open outside the forum. Should then open in a new tab if your browser is set to open all new windows as tabs.
Title: Re: FlashChat Integration
Post by: adbrad on October 04, 2009, 12:15:40 PM
Quote from: Tyrsson on October 02, 2009, 07:43:07 PM
Okay then in the admincp select for it to open outside the forum. Should then open in a new tab if your browser is set to open all new windows as tabs.

i've gone to the admincp but don't see an option to open outside the forum even if i untick all options it still won't open in a seperate window.

thanks for all the help so far
Title: Re: FlashChat Integration
Post by: Tyrsson on October 04, 2009, 05:38:37 PM
Quote from: adbrad on October 04, 2009, 12:15:40 PM
Quote from: Tyrsson on October 02, 2009, 07:43:07 PM
Okay then in the admincp select for it to open outside the forum. Should then open in a new tab if your browser is set to open all new windows as tabs.

i've gone to the admincp but don't see an option to open outside the forum even if i untick all options it still won't open in a seperate window.

thanks for all the help so far
Can you please create me an admin account and PM me the details.
Title: Re: FlashChat Integration
Post by: adbrad on October 05, 2009, 06:44:29 PM
Quote from: Tyrsson on October 04, 2009, 05:38:37 PM
Quote from: adbrad on October 04, 2009, 12:15:40 PM
Quote from: Tyrsson on October 02, 2009, 07:43:07 PM
Okay then in the admincp select for it to open outside the forum. Should then open in a new tab if your browser is set to open all new windows as tabs.

i've gone to the admincp but don't see an option to open outside the forum even if i untick all options it still won't open in a seperate window.

thanks for all the help so far
Can you please create me an admin account and PM me the details.

have sent you a pm
Title: Re: FlashChat Integration
Post by: C4G-TK on October 06, 2009, 11:38:08 AM
I searched the thread here for this error, but didn't find an answer.

I'm getting the following error in my log under Modifications.english.php

I am using SMF2.0 RC1.2 on default.

I've attached a picture of the code where the error is being pulled.



Looks like I have a 2nd error in the same file, too.  In the second error, is it the spelling error that is causing it?  "me" should be "be"
Title: Re: FlashChat Integration
Post by: Tyrsson on October 06, 2009, 04:24:55 PM
Yes that looks like a typo, however, you still have not actually listed the error. You posted screen shots of the language files but that does not tell me what the error is.
Title: Re: FlashChat Integration
Post by: C4G-TK on October 06, 2009, 04:34:46 PM
Crap Crap Crapppppp.  I cleaned out my log after I took the pictures and I already emptied my trash bin on my computer!  I'll get back as soon as I get it in the log again.  Sorry, Tyrsson.  I was in a rush earlier, my bad!
Title: Re: FlashChat Integration
Post by: Tyrsson on October 06, 2009, 04:44:02 PM
Quote from: C4G-TK on October 06, 2009, 04:34:46 PM
Crap Crap Crapppppp.  I cleaned out my log after I took the pictures and I already emptied my trash bin on my computer!  I'll get back as soon as I get it in the log again.  Sorry, Tyrsson.  I was in a rush earlier, my bad!
No problem, trust me we have all done it at one time or another.

Its most likely going to be an undefined index error. When was the last time you cleared the forum cache? When you add a mod that adds text strings you will want to clear the cache so the forum will re cache the language files.
Title: Re: FlashChat Integration
Post by: C4G-TK on October 06, 2009, 07:05:19 PM
I was able to get one just a second ago...

Title: Re: FlashChat Integration
Post by: Tyrsson on October 06, 2009, 08:44:12 PM
I will try to install a version of this later (since I need to update it anyway) and will post back as soon as I track it down.
Title: Re: FlashChat Integration
Post by: Tyrsson on October 08, 2009, 01:57:08 AM
Quote from: adbrad on October 02, 2009, 07:36:03 PM
Quote from: Tyrsson on September 25, 2009, 02:58:08 AM
Quote from: adbrad on September 15, 2009, 03:05:37 PM
i have succesfully integrated the chat with smf2.0rc1.2 using the mod and chat 4.7.12 what i would like to do is open the chat in a new window rather than ove the top of the forum .
i selected open in new window in the setting but all i get is a full screen version in the same window as i browse the forum. i know this has been covered somewhere but can not find the info

thanks all
Which version of the mod are you using? The newest version allows you to set the width in the admincp area of modsettings.

i am using the latest version of the mod. i want to open it it a new window or new tab.
when using firefox if i right click the button then click open in new tab i would like to be able to do this without having to right click the button would like to click the button and it open in a new tab

hope this makes my intentions clearer
As I said in my earlier post. If the settings are correct in the admincp under Modifications>Flashchat>Open in new window (which it is now) when you click on the chat button the chat opens in a new window :)

If you have any further questions please feel free to post here or in the thread on my site for this mod.
Title: Re: FlashChat Integration
Post by: Tyrsson on October 08, 2009, 02:00:15 AM
Quote from: C4G-TK on October 06, 2009, 07:05:19 PM
I was able to get one just a second ago...



Add this to the top of the file just above the language strings.

global $boardurl;I think I missed this edit when I made the latest package, will check it later tonight or tomorrow when I get time to make sure. Thanks for reporting it.
Title: Re: FlashChat Integration
Post by: Joe N on October 10, 2009, 07:33:57 AM
Hi

Tried installed on my smf 2.0 forum.

Got this:

Install Actions
Installations actions for "FlashChat Integration":
Installing this package will perform the following actions:
Type   Action   Description
1.   Extract File   ./Sources/Chat.php   
2.   Extract File   ./Themes/default/Chat.template.php   
3.   Extract File   ./dologout.php   
   4.   Execute Modification   ./index.php   Test successful
   5.   Execute Modification   ./Themes/default/languages/Help.english.php   Test successful
   1.   Add Before   ./Themes/default/languages/Help.english.php   Test successful
   6.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
   1.   Add Before   ./Themes/default/languages/Modifications.english.php   Test successful
   7.   Execute Modification   ./Sources/Admin.php   Test failed
   1.   Replace   ./Sources/Admin.php   Test successful
   2.   Add After   ./Sources/Admin.php   Test failed
   8.   Execute Modification   ./Sources/ManageSettings.php   Test successful
   1.   Add Before   ./Sources/ManageSettings.php   Test successful
   2.   Add Before   ./Sources/ManageSettings.php   Test successful
   9.   Execute Modification   ./Sources/Subs.php   Test successful
   1.   Add After   ./Sources/Subs.php   Test successful
   2.   Add Before   ./Sources/Subs.php   Test successful
   3.   Add After   ./Sources/Subs.php   Test successful
   10.   Execute Modification   ./Themes/default/BoardIndex.template.php   Test successful
   1.   Add After   ./Themes/default/BoardIndex.template.php   Test successful
   2.   Replace   ./Themes/default/BoardIndex.template.php   Test successful
   11.   Execute Modification   ./Themes/default/index.template.php   Test successful
   1.   Add Before   ./Themes/default/index.template.php   Test successful
12.   Execute Modification   ./chat/inc/cmses/smfCMS20.php   File not found
13.   Execute Modification   ./chat/inc/flashChatTag.php   File not found

Looked through my admin.php but can't find the line to edit

And because it is a tar.gz file, can't edit it

Also,

I get an error on the forum page. Says:

Database Error
Table 'blogbug_smf.connections' doesn't exist
File: /home/blogbug/public_html/smf2/Sources/Subs.php
Line: 3488

Please Help!

Thanks
Title: Re: FlashChat Integration
Post by: Tyrsson on October 10, 2009, 09:33:33 AM
Either you do not have flashchat installed or you did not install it for integration with smf. Those instructions are found on the tufat website. After Flashchat is installed then you can install the mod.
Title: Re: FlashChat Integration
Post by: C4G-TK on October 10, 2009, 02:36:19 PM
Went ahead and added it to the Modifications.english.php file

// --- Begin FlashChat Integration ---
global $boardurl;
$txt['fc_chat'] = 'Chat';
$txt['fc_flashchat'] = 'FlashChat';
$txt['fc_flashchat_settings'] = 'FlashChat Integration Settings';
$txt['fc_in_chat'] = 'in Chat';
$txt['fc_not_found'] = 'FlashChat does not appear to be installed!';
$txt['fc_no_guests'] = 'Sorry, guests aren\'t allowed to use the chat!';
$txt['fc_private_room'] = '<i>private room</i>';
$txt['fc_users_online'] = 'Users currently in chat';
// For 'Who's Online' page
$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';

// Settings for admin panel
$txt['fc_height2'] = 'Height';
$txt['fc_config'] = 'FlashChat Configuration';
$txt['fc_inForum'] = 'Display chat window "inside" forum?';
$txt['fc_newWindow'] = 'Open chat in new window?';
$txt['fc_showUsers'] = 'Display Users in Chat at top of forum?';
$txt['fc_showUserCount'] = 'Show number of users on Chat button?';
$txt['fc_size_desc'] = 'The height and width must be in px (eg. 600 for 600 pixels)! If no value is set it will default to 80% x 400px';
$txt['fc_width'] = 'Width';
// --- End FlashChat Integration ---


Will let you know if I get anything else pop up.


BTW, I do have it selected to open up in a new window, but my chat always opens up in the same window just like what some others have said.  The only other thing that doesn't work for me has been the tab on the navigation bar that says CHAT.  It doesn't put the (2) next to the button if there are 2 people in chat.  It does list the names and rooms though up above the nav bar.  I have no problem giving you admin access to the forum if you would like to take a look at it.  Just let me know.
Title: Re: FlashChat Integration
Post by: Tyrsson on October 10, 2009, 04:54:08 PM
QuoteI have no problem giving you admin access to the forum if you would like to take a look at it.  Just let me know.
Yes, please PM me some login details, one of the other people that reported that it did not open in a new window did not have the settings correct.

I think there maybe a bug in the number of users being shown in the menu tab. I will check into when I update the package in a few days.
Title: Re: FlashChat Integration
Post by: C4G-TK on October 10, 2009, 07:55:30 PM
Info sent.

Hit me up if you need anything on there and see me signed in as TK2012.
Title: Re: FlashChat Integration
Post by: Tyrsson on October 10, 2009, 09:54:53 PM
Quote from: C4G-TK on October 10, 2009, 07:55:30 PM
Info sent.

Hit me up if you need anything on there and see me signed in as TK2012.
Your problem is fixed. Please check the settings as I have them set now. It should be set to either show inside the forum or outside, it can NOT do both at the same time ;)
Title: Re: FlashChat Integration
Post by: صلاح الدين on October 16, 2009, 02:24:54 PM
I have some problem when i use it

Table 'smf2.connections' doesn't exist
الملف: C:\AppServ\www\smf2\Sources\Subs.php
السطر: 3213

& when install it
Title: Re: FlashChat Integration
Post by: Tyrsson on October 17, 2009, 02:30:39 AM
QuoteTable 'smf2.connections' doesn't exist
Was this table created in the database?
Title: Re: FlashChat Integration
Post by: Kindred on October 17, 2009, 08:51:29 AM
please note...  that table is created by flashchat.

In order for this mod to work, you must have installed and configured flashchat to work with SMF *PRIOR* to installing this mod. (which means flashchat must be installed in the same database as SMF)
Title: Re: FlashChat Integration
Post by: babish on October 28, 2009, 10:49:36 AM

Fatal error: Call to undefined function md5_hmac() in /home/name/public_html/chat/inc/cmses/smfCMS.php on line 90



hey someone plz help, i install smf forum 1.1.x
and integrated a flashchat to it, now wen i log in the admin console of the flash chat it shows me the above error.

note the chat works well

Title: Re: FlashChat Integration
Post by: Tyrsson on October 30, 2009, 08:30:59 AM
Which version of flashchat are you using?
Title: Re: FlashChat Integration
Post by: JBDynamics on November 02, 2009, 02:38:53 PM
Hi all,

I have Flash chat 4.7.1.2 installed and integrated with SMF 2.0 RC1.2. I followed all instructions for the Flash Chat Integration Mod. It put a tab on the main bar, but it does not say Chat, it is just a blank tab. It does open the chat and works fine. I have the Lost Theme installed. Can someone please help me figure out how to put the word 'Chat' on the tab?

The site is: http://www.ucd-eview.com/forum/index.php (http://www.ucd-eview.com/forum/index.php) if anyone wants to look and see what I'm talking about.

Thanks so much,
JBDynamics
Title: Re: FlashChat Integration
Post by: Tyrsson on November 02, 2009, 06:52:37 PM
Clear the forum cache in the maintenance area. The language strings in the 2.0 version are cached ;).

admincp>maintenance>routine>clear the file cache
Title: Re: FlashChat Integration
Post by: Marsh on November 05, 2009, 01:40:51 AM
Quote from: Saladine on October 16, 2009, 02:24:54 PM
I have some problem when i use it

Table 'smf2.connections' doesn't exist
الملف: C:\AppServ\www\smf2\Sources\Subs.php
السطر: 3213

& when install it

I have the same issue and i installed flashchat fine. It isnt added the flashchat prefix of _fc_ to the tablename. You can copy the tables over yourself manually and the error goes away.


Fatal error: require_once() [function.require]: Failed opening required 'INC_DIR../temp/config.srv.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.capriciously/marsh99/touchofdeathforums.com/smf/chat/inc/config.srv.php on line 2


I can get past that error if i remove all the code in inc/config.srv but the chat wont run without it.
Title: Re: FlashChat Integration
Post by: Tyrsson on November 05, 2009, 02:28:47 AM
I notice you are on windows hosting. What permissions are set for that file?

For the db table issue.

Why are you having to copy that table over? I take it that table was created in a different db? Chat must be installed into the same db as smf.
Title: Re: FlashChat Integration
Post by: Marsh on November 05, 2009, 02:45:56 AM
No it was installed in the same database.... i copied the table becouse it was looking in backup_smf_connections instead of backup_smf_fc_connections like it was supposed to. I just copied the table over and removed the _fc so it worked. Also im hosted on linux unless you were referring to someone else.
Title: Re: FlashChat Integration
Post by: Tyrsson on November 05, 2009, 02:51:54 AM
If you have backup tables in your db you should also have standard tables without the backup on the table. Smf will use those as will the chat as far as I know.

QuoteTable 'smf2.connections' doesn't exist
الملف: C:\AppServ\www\smf2\Sources\Subs.php
السطر: 3213         
Linux does not have a C: drive ;)

Ah you quoted that from someone else.

Missed that.
Title: Re: FlashChat Integration
Post by: Marsh on November 05, 2009, 03:03:09 AM
Oh, i was just quoting him. My error was not exactly the same. just about the table.

my table name is smf_backup_ i know its confusing but its supposed to be like that. Its complicated XD. I know normally smf shouldnt use those its just how i have it set up.
Title: Re: FlashChat Integration
Post by: Tyrsson on November 05, 2009, 03:07:38 AM
Well it helps if I have the exact error.

This: backup_smf_connections

Is not the same as this : smf_backup_

I am kinda confused now as to what your exact setup is. Please post the exact details of your installation.
Title: Re: FlashChat Integration
Post by: Marsh on November 05, 2009, 03:18:30 AM
its smf_backup_connections. But dont worry about it. I dont need it to be integrated i will use flashchat and add my own button. I used this mod back in 2007 and i loved it :). So im glad it was updated.

Hopefully these few errors can be fixed, or it may be just my forum. Either way good job :)
Title: Re: FlashChat Integration
Post by: Tyrsson on November 05, 2009, 03:21:21 AM
Here is a question.

Did you update the integration files that I linked to from the mod download page before running the install?
Title: Re: FlashChat Integration
Post by: Marsh on November 05, 2009, 03:29:42 AM
and i am a idiot :). Thanks
Title: Re: FlashChat Integration
Post by: Tyrsson on November 05, 2009, 03:39:48 AM
Nah, when I get time I am going to write some that are not dependent on the tufat site so that I can include them in the mod package.

Your welcome, hope that fixed it :)
Title: Re: FlashChat Integration
Post by: Marsh on November 05, 2009, 12:25:13 PM
I still get the same errors. But i will step back and see if anyone else gets them. Dont want to waste your time if its just my site.
Title: Re: FlashChat Integration
Post by: Tyrsson on November 07, 2009, 02:25:37 AM
Quote from: Marsh on November 05, 2009, 12:25:13 PM
I still get the same errors. But i will step back and see if anyone else gets them. Dont want to waste your time if its just my site.
If you have an IM address PM it to me and I will see if I can help get it working. Which version of chat are you using?
Title: Re: FlashChat Integration
Post by: adbrad on November 09, 2009, 11:28:17 AM
just wondering with this mod is going to be updated to work with rc2 version of smf
Title: Re: FlashChat Integration
Post by: Tyrsson on November 11, 2009, 06:26:54 AM
I hope to be able to get it done fairly soon. It will be a few days before I can find the time due to the large amount of support we are seeing at the moment with people upgrading but I will tackle it at the first chance I get.

I also hope to add support for the new updated version of chat as well.
Title: Re: FlashChat Integration
Post by: adbrad on November 19, 2009, 05:23:35 PM
Quote from: Tyrsson™ on November 11, 2009, 06:26:54 AM
I hope to be able to get it done fairly soon. It will be a few days before I can find the time due to the large amount of support we are seeing at the moment with people upgrading but I will tackle it at the first chance I get.

I also hope to add support for the new updated version of chat as well.
thanks for info is that version 5 of the chat or similar as that would be good also are you gonna update the rc1.2 version to the new version of chat
Title: Re: FlashChat Integration
Post by: Hardcase on November 20, 2009, 10:00:11 AM
I have installed flash chat and then tried to install the mod afterwards, the chat room itself works fine but the mod will not as it throws up the following file errors, could you please advise.

./chat/inc/flashChatTag.php - failed test
./themes/default/BoardIndex_template.php - failed test
./themes/dafault/Index_template.php - failed test

Now i have tiny portal installed and i know this throws up errors, i can attach the files if you wish to view them, i could also work through the manual install but i know this can throw up even more errors as i have done this before. Any help appreciated.
Title: Re: FlashChat Integration
Post by: Tyrsson on November 20, 2009, 12:27:35 PM
Quote from: Bass_Chaz on November 19, 2009, 07:48:09 PM
Upon installation, (and after I install the chat) I get this error:

./chat/inc/flashChatTag.php

I can see the chat ok but can not go to the Main Page. (where I get a blank screen and error.)

Here is the file. and its a non online version of 1.1.10 for testing.

Ill look @ the file and see what it has to tell me..


Please provide a screenshot if possible.



Quote from: Hardcase on November 20, 2009, 10:00:11 AM
I have installed flash chat and then tried to install the mod afterwards, the chat room itself works fine but the mod will not as it throws up the following file errors, could you please advise.

./chat/inc/flashChatTag.php - failed test
./themes/default/BoardIndex_template.php - failed test
./themes/dafault/Index_template.php - failed test

Now i have tiny portal installed and i know this throws up errors, i can attach the files if you wish to view them, i could also work through the manual install but i know this can throw up even more errors as i have done this before. Any help appreciated.

How did you install flashchat? Is the chat folder inside the forum directory?
Title: Re: FlashChat Integration
Post by: Hardcase on November 20, 2009, 02:34:09 PM
Yes the chat folder is within the forum folder as i said the chat runs ok but when i try your mod it fails on those three files.

Because of that issue i have no admin control as such and the chat room seems to be banning random members of my forum, it recognises me as admin from the smf install but 2 moderators and another random member it has banned. So any guidance on the above and the banning appreciated.
Title: Re: FlashChat Integration
Post by: Tyrsson on November 20, 2009, 02:45:32 PM
What version of SMF are you using?

What version of the mod are you using?

What version of flashchat are you using?
Title: Re: FlashChat Integration
Post by: Kindred on November 20, 2009, 03:06:54 PM
Tha "banning" issue has been answered both in this thread and on tufat about a thousand times...   it has to do with your usergroups. You will have to modify your smf bridge file to know what to do with your extra usergroups.

As for the failed files... you will have to manually add this mod into those files. The mod is not actually INSTALLED until you make all the modifications that the mod calls for.

and you HAVE admin control... you should still be able to access the flashchat admin directly. You just don't have options in the smf admin inrerface
Title: Re: FlashChat Integration
Post by: Hardcase on November 20, 2009, 03:42:41 PM
To answer both:
SMF: 1.1.10
Mod version: 1.0a
Flashchat: 5.0.11 its the full paid for version.
---------------------------------------------------------------

The banning i could not find it, i must admit i was skimming with so many pages to read so will take another look at that.

I tried adding the mod manually but when i looked at the files, the one i looked at did not have the coding in that i was looking for, there were missing characters and as i said whether this is effected by tiny portal i dont know.

can you please tell me how to access the admin control then please because i cannot find how to do that either here or on tufat site, it says how you should do it via the cms control but as i dont have that as the mod does not install any guidance here would help. Belay that one i have it!
Title: Re: FlashChat Integration
Post by: Tyrsson on November 20, 2009, 06:19:15 PM
QuoteFlashchat: 5.0.11 its the full paid for version.
This mod is not updated to work with this version. Its on my list of things to do, but been short on time.
Title: Re: FlashChat Integration
Post by: Marsh on November 21, 2009, 02:37:15 PM
Quote from: Kindred on November 20, 2009, 03:06:54 PM
Tha "banning" issue has been answered both in this thread and on tufat about a thousand times...   it has to do with your usergroups. You will have to modify your smf bridge file to know what to do with your extra usergroups.

As for the failed files... you will have to manually add this mod into those files. The mod is not actually INSTALLED until you make all the modifications that the mod calls for.

and you HAVE admin control... you should still be able to access the flashchat admin directly. You just don't have options in the smf admin inrerface

I searched this topic for the word banned and couldnt find info on how to do this. Could you perhaps provide a link to the topic?
Title: Re: FlashChat Integration
Post by: PawsTastic on November 23, 2009, 10:12:39 PM
I have 2.0 RC2 and Flash Chat 5.0. I was wondering when this mod will be updated.

This is something that I really could use.
Title: Re: FlashChat Integration
Post by: Tyrsson on November 24, 2009, 12:43:54 AM
As soon as I can get to it.
Title: Re: FlashChat Integration
Post by: NaWaR on November 26, 2009, 08:13:28 AM
hey thats what i need .. please help me to add the hat to the forum..!

my forum ver: 1.1.10
i have portal
to check the forum pls go to  www.forum.4syr.com
to check the flash chat  try  www.4syr.com

in the pic where i want to add the chat ..
and the chat photo...

please help me ..
Title: Re: FlashChat Integration
Post by: Tyrsson on November 26, 2009, 10:27:27 AM
Follow the instructions on the mod page. Do you already have flashchat downloaded? The chat has to be installed first.
Title: Re: FlashChat Integration
Post by: Hardcase on November 26, 2009, 10:40:20 AM
Just a little help please as we have already discussed my version of flashchat is not yet supported by this mod and i have tried a manual install of the mod and it takes the forum into errors.

What i really would like is to show who is in chat somewhere on the forum but if this is not possible at least for my chat button to show how many are in chat, can someone help.

SMF version 1.1.10
FC version 5.11
TP version 0.98
Theme BlackRain V2


Any other information required please let me know.
Title: Re: FlashChat Integration
Post by: NaWaR on November 26, 2009, 10:58:53 AM
tyrsson please  i  did as instruction .. but not working  , i tryed to package the mod but it says that it's notcompatible with my version .. and on the mod page says that it is compatable with 1.1.10 so Wooot  o_0 i  dunno what to do ?!
Title: Re: FlashChat Integration
Post by: Tyrsson on November 26, 2009, 11:16:49 AM
Use the version emulate option in the package manager to install it. Its under advanced options iirc.
Title: Re: FlashChat Integration
Post by: NaWaR on November 26, 2009, 12:34:32 PM
man where is  that !!! i can't find it at all..  i look everywhere in the forum nothing is there ..!  but i found the irc ..!   ???
Title: Re: FlashChat Integration
Post by: Tyrsson on November 26, 2009, 12:44:13 PM
No not here in the smf forum. In your forum when you go to install the mod there is an option to have the mod install as if it were installing into a 1.1.9 version even though your forum is 1.1.10. I am not real sure how it works in 1.1.x as I have not had a 1..1.x installed for sometime. I plan on updating the mod for the new chat version and to get it to work with RC2- 2.0 final and flashchat 5.0 but I will not be working on it before the next release as I have many other things on the to-do list at the moment.

See these and see if they help:
Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject)
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)

Title: Re: FlashChat Integration
Post by: Kindred on November 26, 2009, 08:10:29 PM
you can not display the chat inside the forum.

Flashchat is not a "shoutbox" mod. it is a standalone program that has its own sessions, etc...
Title: Re: FlashChat Integration
Post by: NaWaR on November 26, 2009, 08:25:28 PM
Tyrsson thanks for ur kind replay .. but those didn't help .! i can understand nothing of this it's written some how to a php high level programer no for a forum user..

Kindred i can see that u know nothin about this .. so i will just say there is more than milliom forum with this flash ! , when i want to post it i can't! thats a Bad  answer but anyway thanks for ur replay.
Title: Re: FlashChat Integration
Post by: Kindred on November 26, 2009, 08:47:03 PM
NaWar,

I am sorry, but you do not know what you are talking about. I do. I have been using flashchat with SMF for several years and I have worked with the flashchat folks on the link between the systems.

This mod allows you to include flashchat wrapped in your forum header/footer and places some of the admin options into the smf admin screens. It does *NOT* make the flashchat into a shoutbox that appears on a forum page as a section.

Flashchat is a standalone product. Flashchat is NOT a shoutbox and can not be used like one.

Title: Re: FlashChat Integration
Post by: Hardcase on November 26, 2009, 09:11:03 PM
The installation of Flashchat is quite straight forward if you follow the instructions from the tufat site and as a non programmer just a user Kindred is right, its a stand alone product which can be intergrated with your SMF forum admin (well provided you have the correct versions of both)!

Now back to non mud slinging, can someone please help me with an adding a button to my nav menu which shows how many are in chat? As the one both listed on here and on the tufat site thro up errors on my theme, even at the bottom of the forum boards to show same with user names.

Title: Re: FlashChat Integration
Post by: nunk on November 27, 2009, 10:15:10 PM
I want to integregate FlashChat 5 into my SMF 2.0 RC2
Does this mod work?
if so do i install it through my ftp client or just as a download from the admin of my smf?
Title: Re: FlashChat Integration
Post by: Hardcase on November 28, 2009, 03:32:59 AM
As i understand it, this mod does not work currently with RC2 but Tyrsson intends to port it for this version and with the newer flashchat 5.11 (which may also be worth doing in readiness for ver 6) so patience i think is the order of the day.

Although you could install ver 5.11 intergrated witht the SMF database for your users and then link it via your navbar, you will have to do the admin via the flashchat admin panel but this is quite easy and intuitive. The only issue i have which i'm sure you would also is that your navbar button would not show how many are in chat and your forum would not display who is in chat, once the mod has been updated i'm sure these issues will be resolved.
Title: Re: FlashChat Integration
Post by: NaWaR on November 28, 2009, 05:46:19 AM
thank you all for the replays , now to solve this problem i have .. can i upload the theme.template to you or the css file so u can just add the flash code to it so i can use it  ??? thankss  for helping me.

just tell me pls which files to upload.

greets NaWaR
Title: Re: FlashChat Integration
Post by: Kindred on November 28, 2009, 08:44:10 AM
NaWaR,

I'd suggest that you either wait until Tyrsson has updated the mod to work with flaschat 5.x or that you find the number count code over on tufat (I know it's been posted there)

then you can just modify your button in index.template.php

Title: Re: FlashChat Integration
Post by: jossanaijr on December 14, 2009, 01:47:47 PM
Any help?
Suddenly it stop working.
Now after flashchat load there is only a blue screen.
Title: Re: FlashChat Integration
Post by: Prometheus Fire on December 21, 2009, 11:07:46 PM
Two problems:

First: I installed FlashChat and this mod, but I don't know how to modify my themes files in order to get all the functioning.

The manual parsing doesn't seem to work on the Mod page but as a far as I can tell, I need to edit my themes Board.Index.php and index.template.php. I tried copying over the code from the default theme, but that screwed more things up and the Chat button still didn't show up.

That said, using the default theme it all seems to work peachy. The chat button is present and so forth so I know it is just a theming problem.

What is the code and what files do I need to manually edit?
You can see that the chat works here: http://leafboxtea.com/index.php?action=chat
You can log in with user name: testy and password test

Second: How do I find the FlashChat Admin panel? I'm logged into FC as an Admin but there is no option to bring up the panel. I have no idea what it looks like or where to find it. I'm talking about the panel which supposedly allows us to add/remove rooms and set other functions.

Am using FC 4.172 with these mods
SMF 1.1.11

1.   TinyPortal    1.083  with Lady theme   
2.   Bakers Dozen Pages    1.1     
3.   Ad Managment    2.3.1     
4.   Anti-Bot Registration Puzzles    1.2     
5.   TP Reviews module    1.0     
6.   Integrate Lightbox    1.6     
7.   SMF 1.0.19 / 1.1.11 Update    1.0 
8.   Aeva ~ Auto-Embed Video & Audio    7.0     
9.   Pretty URLs    1.0RC     
10.   Pretty URLs Extras    0.9     
11.   FlashChat Integration    1.0
Title: Re: FlashChat Integration
Post by: adbrad on December 22, 2009, 05:45:55 AM
for the first we need to know what version of smf you are using to be able to assist more. if u are using 2.0 then when you install the mod you should get an option at the bottom of the install page to install in other themes and you can select your theme here.
The second go to http://leafboxtea.com/chat/admin/index.php
Title: Re: FlashChat Integration
Post by: Prometheus Fire on December 23, 2009, 10:38:47 AM
Sorry, I forgot to include that - I'm using SMF 1.1.11
Title: Re: FlashChat Integration
Post by: jossanaijr on December 23, 2009, 11:03:59 AM
Quote from: jossanaijr on December 14, 2009, 01:47:47 PM
Any help?
Suddenly it stop working.
Now after flashchat load there is only a blue screen.
Bumping...
Title: Re: FlashChat Integration
Post by: Tyrsson on December 24, 2009, 12:45:43 AM
Quote from: jossanaijr on December 23, 2009, 11:03:59 AM
Quote from: jossanaijr on December 14, 2009, 01:47:47 PM
Any help?
Suddenly it stop working.
Now after flashchat load there is only a blue screen.
Bumping...
A link to your site would help.
Title: Re: FlashChat Integration
Post by: Prometheus Fire on December 27, 2009, 08:27:57 PM
bump
Title: Re: FlashChat Integration
Post by: Tyrsson on December 27, 2009, 08:37:44 PM
Just at first guess, I would say it could be related to the pretty url's mod as that uses .htaccess rewrite.
Title: Re: FlashChat Integration
Post by: Prometheus Fire on December 28, 2009, 08:11:48 PM
No dice, I uninstalled Pretty URLs and there is no change. The chat tab still comes up fine in the default theme but in my custom theme there is nothing. I suppose what I need are instructions (and the code) for modifying my index.template.php for my theme.

The parse on the mod page here on the smf site doesn't work for this mod so I really don't know how to do a manual install for it.

I also tried again copying the code over from the default template's index page but I just screw it up somehow and cause the site not to load.  Attached is my working index.template.php, maybe you can give some advice how to edit it.
Title: Re: FlashChat Integration
Post by: Tyrsson on December 28, 2009, 09:23:14 PM
Yes you will need to add the code to any custom theme manually. I suggest something like WINMerge to show you the edits made to the default file so that you can move the edits over. If you have not got it done by tomorrow I will have time to look into it but I am very busy at the moment.
Title: Re: FlashChat Integration
Post by: Prometheus Fire on December 28, 2009, 10:12:23 PM
I loaded WINmerge up but it didn't tell me anything I didn't already know.  I tried pasting in the FC code one section at a time. I didn't get past the first section when I got a template parse error.

This is the code that caused that:
// --- Begin FlashChat Integration ---
// Do we need to display a list of the users in the chat?
// Are there users online?
if (!empty($modSettings['fc_showUsers']) && !empty($context['users_chat']))
echo '
', $txt['fc_users_online'], ': ', implode(', ', $context['list_users_chat']), '<br />';
// --- End FlashChat Integration ---
echo ' </span>';
}


I pasted it in, directly before this:
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else


Title: Re: FlashChat Integration
Post by: Bigguy on December 28, 2009, 10:17:53 PM
try this:

// --- Begin FlashChat Integration ---
      // Do we need to display a list of the users in the chat?
      // Are there users online?
      if (!empty($modSettings['fc_showUsers']) && !empty($context['users_chat']))
         echo '
                     ', $txt['fc_users_online'], ': ', implode(', ', $context['list_users_chat']), '<br />';
      // --- End FlashChat Integration ---
      echo '            </span>';
   }'


or this:

// --- Begin FlashChat Integration ---
      // Do we need to display a list of the users in the chat?
      // Are there users online?
      if (!empty($modSettings['fc_showUsers']) && !empty($context['users_chat']))
         echo '
                     ', $txt['fc_users_online'], ': ', implode(', ', $context['list_users_chat']), '<br />';
      // --- End FlashChat Integration ---
      echo '            </span>';
   }';
Title: Re: FlashChat Integration
Post by: Prometheus Fire on December 28, 2009, 10:24:43 PM
I tried it without the echo and span line and it didn't break anything (I suppose that's a good way of measuring success...).

I also added the 2 pieces of coding for the menu button further down in the file. Nothing appears to be broken when the website loads now, but the button doesn't show up.

updated index file attached
Title: Re: FlashChat Integration
Post by: Bigguy on December 29, 2009, 10:13:06 AM
There are no errors in this file so try it and see if it works. What I have done was take out the chat link you had in there and copied the link for the calendar and replaced the action in it and the txt with the ones from the chat. One downside is it runs with permissions from the calendar so if you allow guests to see it they will also see the chat.
Title: Re: FlashChat Integration
Post by: Prometheus Fire on December 30, 2009, 01:48:31 AM
Your fix worked, sort of, I get a tab now that links to the chat but the tab is blank. I still need to figure out a way to get the word "chat" appear. It must have something to do with the calender code.  Any idea where the labels for the menu bar are kept?
Title: Re: FlashChat Integration
Post by: Bigguy on December 30, 2009, 06:17:00 AM
index.english.php I think. There should have been text with it.
Title: Re: FlashChat Integration
Post by: Prometheus Fire on December 30, 2009, 12:51:30 PM
Okay, I managed to fix it. I discovered that modifications.english.php in my theme needed to be manually modded with the FC data (this is a good example of the importance of having the manual parsing working on the mod's page - without the manual modding instructions I really didn't know where to start.)

Once I put that in, thinks started to look up. I ended up using the original FC button code instead of the one you provided above. There were some syntax issues that was preventing it from working.

Note the very small change I made - I don't even know what that syntax means.. I've marked the changes in bold.

Original button code:
Quote// FlashChat!
   global $modSettings;
   if ($context['user']['is_logged'])
      echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
            </td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Altered code:
Quote// FlashChat!
   global $modSettings;
   if ($context['user']['is_logged'])
      echo '<li', $current_action == 'chat' || $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
            </td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '</li>';

Essentially, I removed the first set of parenthesis and added in the li tag. Though I couldn't find any info about what the li tag is for, I noticed that all the other buttons were using it.  Everything seems to be working now, including the number of users in chat.
Title: Re: FlashChat Integration
Post by: Kindred on December 30, 2009, 01:22:17 PM
li is for a LIST in HTML...   and you have tds inside that li (tds are for table cells) which is not valid html...

basically what you did does not parse.
Title: Re: FlashChat Integration
Post by: kaoss on January 02, 2010, 06:03:04 PM
Did this:

http://forum.tufat.com/showthread.php?t=56996

Running 2.0 and trying to install FlashChatSMF_v2.1.1.tar.gz. After I upload it to my site (www.806minis.com) and click install and then I get a message saying

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

What can I do?
Title: Re: FlashChat Integration
Post by: Tyrsson on January 02, 2010, 06:41:49 PM
Which version of 2.0 are you running? It has not been updated to RC2 as of yet (been busy).
Title: Re: FlashChat Integration
Post by: kaoss on January 02, 2010, 07:22:04 PM
I'm on RC2. Thanks!
Title: Re: FlashChat Integration
Post by: lethal1320.com on January 04, 2010, 06:34:22 AM
Quote from: Tyrsson™ on January 02, 2010, 06:41:49 PM
Which version of 2.0 are you running? It has not been updated to RC2 as of yet (been busy).

Any idea when you will update it?, I'd be willing to pay for this mod.
Title: Re: FlashChat Integration
Post by: snakemannva on January 04, 2010, 05:13:57 PM
Hello I am wondering is there away to make it where people can not enter the chat unless they make certain amount of post a day? Or have it where they can not enter unless it is a certain amount of post? If anyone knows how to do this i would appreciate all your help.
Title: Re: FlashChat Integration
Post by: Tyrsson on January 04, 2010, 06:06:06 PM
Quote from: snakemannva on January 04, 2010, 05:13:57 PM
Hello I am wondering is there away to make it where people can not enter the chat unless they make certain amount of post a day? Or have it where they can not enter unless it is a certain amount of post? If anyone knows how to do this i would appreciate all your help.
I plan on adding this in the next version, but it will still be awhile before I have the chance to update the mod. I just have to much going on at the moment.
Title: Re: FlashChat Integration
Post by: Maxtor on January 10, 2010, 03:18:07 PM
Does FlashChat  6.0.6 work with SMF 1.1.11?
I get this error
12. Execute Modification ./chat/inc/flashChatTag.php Test failed


But if i use FlashChat 4.7.12 with 1.1.11 everything works fine.
Title: Re: FlashChat Integration
Post by: adbrad on January 10, 2010, 03:50:25 PM
the mod is only compatiable with flashchat 4.7.12
how ever you can use 6.06 with smf just not the mod
Title: Re: FlashChat Integration
Post by: Maxtor on January 10, 2010, 03:59:01 PM
Quote from: adbrad on January 10, 2010, 03:50:25 PM
the mod is only compatiable with flashchat 4.7.12
how ever you can use 6.06 with smf just not the mod

ok i will try it
Title: Re: FlashChat Integration
Post by: Matthew K. on January 12, 2010, 08:45:56 PM
Hey there, I am working on a SMF 2.0 RC2 Forum, and I am very experienced with manually installing mods, and how all of that works, so the fact that it's only at 1.2 right now is not a problem.

I have purchased FlashChat, how do I get a version that has SMF 2.0 on the intergration list? Or where could I find the edits to do this manually?

Thanks,
Labradoodle-360
Title: Re: FlashChat Integration
Post by: Tyrsson on January 13, 2010, 02:20:55 PM
The files you will need is linked in the mods documentation.
Title: Re: FlashChat Integration
Post by: bear21211 on January 14, 2010, 02:04:00 PM
Can this mod be made to work with RC2? If so how difficult is it? I have Flashchat running but I would really like to get it integrated in my forum.
Thanks Bear
Title: Re: FlashChat Integration
Post by: adbrad on January 14, 2010, 02:29:56 PM
in what way do you want it integrated as you should be able to without mod
Title: Re: FlashChat Integration
Post by: derby on January 14, 2010, 02:49:34 PM
12.     Execute Modification     ./chat/inc/flashChatTag.php     File not found
13.    Execute Modification    ./chat/inc/cmses/smfCMS2.php    File not found
14.    Execute Code    add_settings.php
Title: Re: FlashChat Integration
Post by: Kindred on January 14, 2010, 02:52:24 PM
yes, derby.... and?
Title: Re: FlashChat Integration
Post by: bear21211 on January 14, 2010, 02:55:06 PM
I would like to have it Integrated as I had in it SMF 1.**
It would show users in chat
It would open in a popup window
Would access database for members login information.
Title: Re: FlashChat Integration
Post by: Matthew K. on January 14, 2010, 02:59:14 PM
The problem Bear is having is that the package for FlashChat that includes integration with 2.0 will not unzip (in the topic on the Tufat community).
Quote from: adbrad on January 14, 2010, 02:29:56 PM
in what way do you want it integrated as you should be able to without mod
Title: Re: FlashChat Integration
Post by: derby on January 14, 2010, 03:30:55 PM
Quote from: Kindred on January 14, 2010, 02:52:24 PM
yes, derby.... and?
do i continue installation.???i use smf 1.1.11???
Title: Re: FlashChat Integration
Post by: Kindred on January 14, 2010, 03:32:47 PM
well, you obivously either a) have not installed flashchat or b) have not installed flashchat in the [forum]/chat directory
Title: Re: FlashChat Integration
Post by: Tyrsson on January 14, 2010, 03:48:55 PM
Quote from: Labradoodle-360 on January 14, 2010, 02:59:14 PM
The problem Bear is having is that the package for FlashChat that includes integration with 2.0 will not unzip (in the topic on the Tufat community).
Quote from: adbrad on January 14, 2010, 02:29:56 PM
in what way do you want it integrated as you should be able to without mod
I just downloaded the files from the tufat site and they do unzip.
Title: Re: FlashChat Integration
Post by: bear21211 on January 14, 2010, 04:01:56 PM
Trysson could you possibly PM me the Link that you downloaded it from please?
Title: Re: FlashChat Integration
Post by: derby on January 14, 2010, 04:03:40 PM
Quote from: Kindred on January 14, 2010, 03:32:47 PM
well, you obivously either a) have not installed flashchat or b) have not installed flashchat in the [forum]/chat directory
when i was installing it i got the error on install...so i decided to ask question b4 continuing with the installation
Title: Re: FlashChat Integration
Post by: Kindred on January 14, 2010, 04:08:47 PM
you must have flashchat installed first, before attempting to install this mod
Title: Re: FlashChat Integration
Post by: Tyrsson on January 14, 2010, 04:15:30 PM
Quote from: bear21211 on January 14, 2010, 04:01:56 PM
Trysson could you possibly PM me the Link that you downloaded it from please?
Its on the mod download page. You will need to be signed in to download the files.
Title: Re: FlashChat Integration
Post by: bear21211 on January 14, 2010, 04:35:14 PM
I am signed in and for the life of me I can not find the mod download page. Is it located inside the forum ?
Title: Re: FlashChat Integration
Post by: adbrad on January 14, 2010, 05:35:40 PM
i'm assuming this is what they mean
http://custom.simplemachines.org/mods/index.php?mod=611
Title: Re: FlashChat Integration
Post by: bear21211 on January 14, 2010, 06:30:53 PM
I have that file already. That is for the 2.0 version. But when I try an install with that version using SMF RC2 I get a database error and it will not let me continue with the install.
Title: Re: FlashChat Integration
Post by: bear21211 on January 14, 2010, 06:34:50 PM
SO do I install it without the check box clicked that it will be integrated and then apply the mod in SMF is that what I am doing wrong?
Title: Re: FlashChat Integration
Post by: adbrad on January 14, 2010, 06:41:46 PM
the mod has not been made compatiable with rc2 yet as far as i know i have flash intergrated with my rc2 forum but can't see whos using chat if i knew the code would get that set up
Title: Re: FlashChat Integration
Post by: Matthew K. on January 14, 2010, 06:42:53 PM
No, it has been upgraded to SimpleMachines 2.0.
Title: Re: FlashChat Integration
Post by: bear21211 on January 14, 2010, 06:51:08 PM
Ok SO I can not get flashchat integrated with RC 2 then correct?
Title: Re: FlashChat Integration
Post by: Matthew K. on January 14, 2010, 06:53:50 PM
Incorrect. I am positive, without a doubt FlashChat was updated to support SMF 2.0.
Quote from: bear21211 on January 14, 2010, 06:51:08 PM
Ok SO I can not get flashchat integrated with RC 2 then correct?
Title: Re: FlashChat Integration
Post by: Kindred on January 14, 2010, 07:08:58 PM
Please note: This mod does NOT install flashchat.  Nor does it link flashchat into your SMF member database.   THAT is done with the flashchat installation.

All that this mod does is add the chat menu item and chatter count, add the option to keep chat wrapped in the forum and add the flashchat admin settings into smf's admin menus. The mod assumes that you have already installed and linked flashchat with SMF.
Title: Re: FlashChat Integration
Post by: Matthew K. on January 14, 2010, 11:45:08 PM
Very much get that. As I am a mod developer myself and can read descriptions.
Quote from: Kindred on January 14, 2010, 07:08:58 PM
Please note: This mod does NOT install flashchat.  Nor does it link flashchat into your SMF member database.   THAT is done with the flashchat installation.

All that this mod does is add the chat menu item and chatter count, add the option to keep chat wrapped in the forum and add the flashchat admin settings into smf's admin menus. The mod assumes that you have already installed and linked flashchat with SMF.
Title: Re: FlashChat Integration
Post by: Kindred on January 15, 2010, 12:13:24 AM
that wasn't directed at you Labradoodle... but at derby and bear. :)
Title: Re: FlashChat Integration
Post by: adbrad on January 15, 2010, 09:55:07 AM
Quote from: Labradoodle-360 on January 14, 2010, 06:42:53 PM
No, it has been upgraded to SimpleMachines 2.0.

i was talking bout the intregration mod has not been updated.

Quote from: bear21211 on January 14, 2010, 06:51:08 PM
Ok SO I can not get flashchat integrated with RC 2 then correct?

yes you can as i have flashchat v5 intregarated with my install of rc2.

Quote from: Labradoodle-360 on January 14, 2010, 06:53:50 PM
Incorrect. I am positive, without a doubt FlashChat was updated to support SMF 2.0.
Quote from: bear21211 on January 14, 2010, 06:51:08 PM
Ok SO I can not get flashchat integrated with RC 2 then correct?

think they updated from v5 to include smf 2.0 as this is what i installed but with out the mod, i am trying to get the board index to show who is in chat but was hoping someone knew the code.
if anyone can help with this please can you see my post here http://www.simplemachines.org/community/index.php?topic=351363.msg2454845#msg2454845
Title: Re: FlashChat Integration
Post by: derby on January 15, 2010, 10:34:51 AM
Quote from: Kindred on January 14, 2010, 04:08:47 PM
you must have flashchat installed first, before attempting to install this mod
how do i get it?
Title: Re: FlashChat Integration
Post by: Matthew K. on January 15, 2010, 10:36:39 AM
Check out Tufat.com (http://www.tufat.com/)
Quote from: derby on January 15, 2010, 10:34:51 AM
Quote from: Kindred on January 14, 2010, 04:08:47 PM
you must have flashchat installed first, before attempting to install this mod
how do i get it?
Title: Re: FlashChat Integration
Post by: derby on January 15, 2010, 10:58:50 AM
Quote from: Labradoodle-360 on January 15, 2010, 10:36:39 AM
Check out Tufat.com (http://www.tufat.com/)
Quote from: derby on January 15, 2010, 10:34:51 AM
Quote from: Kindred on January 14, 2010, 04:08:47 PM
you must have flashchat installed first, before attempting to install this mod
how do i get it?
can i get a direct link?
Title: Re: FlashChat Integration
Post by: Matthew K. on January 15, 2010, 11:02:06 AM
FlashChat (http://www.tufat.com/s_flash_chat_chatroom.htm)
Title: Re: FlashChat Integration
Post by: Jesna on January 15, 2010, 02:00:01 PM
Hi

Great mod you have created.

I get the log out bug - a pop screen with the message "internal server error"

Im using SMF 1.1.11 and flashchat 4.7.12. SMF theme is default core.

IS there a way to fix this ?

/Jakob
Title: Re: FlashChat Integration
Post by: Snape on January 15, 2010, 07:54:08 PM
Quote from: Jesna on January 15, 2010, 02:00:01 PM
Hi

Great mod you have created.

I get the log out bug - a pop screen with the message "internal server error"

Im using SMF 1.1.11 and flashchat 4.7.12. SMF theme is default core.

IS there a way to fix this ?

/Jakob
I had this too- check for proper permissions on /chat/dologout.php and /chat/inc/common.php.
Title: Re: FlashChat Integration
Post by: jossanaijr on January 15, 2010, 09:19:26 PM
Quote from: Tyrsson™ on December 24, 2009, 12:45:43 AM
Quote from: jossanaijr on December 23, 2009, 11:03:59 AM
Quote from: jossanaijr on December 14, 2009, 01:47:47 PM
Any help?
Suddenly it stop working.
Now after flashchat load there is only a blue screen.
Bumping...
A link to your site would help.
SOLVED. Thanks.
It was a permission problem (after my host had changed my server).
Title: Re: FlashChat Integration
Post by: Jesna on January 16, 2010, 02:09:53 AM
Quote from: Snape on January 15, 2010, 07:54:08 PM
Quote from: Jesna on January 15, 2010, 02:00:01 PM
Hi

Great mod you have created.

I get the log out bug - a pop screen with the message "internal server error"

Im using SMF 1.1.11 and flashchat 4.7.12. SMF theme is default core.

IS there a way to fix this ?

/Jakob
I had this too- check for proper permissions on /chat/dologout.php and /chat/inc/common.php.

The permission on those 2 files is 0644 - what should I change it too ?

/Jakob
Title: Re: FlashChat Integration
Post by: Smoky "Rider" Blue on January 16, 2010, 02:13:34 AM
either 755 or 777 depending on your host  ;)
Title: Re: FlashChat Integration
Post by: Jesna on January 16, 2010, 02:39:33 AM
Quote from: Smoky Mohegan on January 16, 2010, 02:13:34 AM
either 755 or 777 depending on your host  ;)

I have tried both now and it still gives the same failure

I have Danish as the default language. Both on the website and in the chat, can that be an issue ? any files I have to move around ?

The pop up refers to http://xxxxxx.com/dologout.php - could it be that file there is something wrong with?

/Jakob
Title: Re: FlashChat Integration
Post by: Tyrsson on January 16, 2010, 01:48:14 PM
Have you checked the permissions on that file? If so what permissions are set for that file?
Title: Re: FlashChat Integration
Post by: Jesna on January 17, 2010, 12:37:13 AM
Quote from: Tyrsson™ on January 16, 2010, 01:48:14 PM
Have you checked the permissions on that file? If so what permissions are set for that file?

You have saved my day. The permission was 666. I changed it to 755 and then its working  :) So simple...

Thank you

/Jakob
Title: Re: FlashChat Integration
Post by: bear21211 on January 17, 2010, 09:12:37 PM
We have flashchat installed Version 5, can someone tell me what I need to do to get the users in chat mod working? I am using Rc2 version of SMF. The chat works fine and no errors on log out. Members access through the forum no problems.
Title: Re: FlashChat Integration
Post by: Matthew K. on January 18, 2010, 01:41:33 AM
I can do the port for you Bear, I just can't update the database queries in Subs, even if Tysson could update that part of it for you, I am fine with doing the rest.

Labradoodle-360
Title: Re: FlashChat Integration
Post by: Tyrsson on January 18, 2010, 07:56:48 PM
Well its not the db stuff that really need changed. The jump to the version 5 of flashchat uses a slightly different directory structure if I remember correctly.
Title: Re: FlashChat Integration
Post by: sparker366 on January 23, 2010, 07:19:44 PM
For the life of me the chat button does not show up. I installed flash chat in the /smf/chat directory and set it up first then installed the mod and nothing shows up. No admin cp stuff nothing chat related. Using SMF 1.1.11 and FlashChat 4.1.7.2 and installed the package after I installed and configured flashchat.

What all do you need from me to help me get this too work. I want to use this shortly. If not then I need suggestions on what I can do to get a chat to work with my forums.
Title: Re: FlashChat Integration
Post by: Matthew K. on January 23, 2010, 07:29:02 PM
@ sparker366 - First of all, FlashChat Integration mod is not even compatible with SMF 1.1.11, take a peak at the edit for SMF 1.1.10 that adds a button in ./Themes/default/index.template.php make sure the edit is done in your index.template.php.
Title: Re: FlashChat Integration
Post by: sparker366 on January 23, 2010, 07:46:45 PM
Not sure what you are referring too but those edits are in place with that.

What do you suggest I do to get this to work upgraded to 2.0 and see if that will do it? I really want a chat in my forums
Title: Re: FlashChat Integration
Post by: sparker366 on January 23, 2010, 08:37:06 PM
Ok found the page mod and added that and added the bbcode entry for the page and it works just fine. Now if I can tweak the size of the chat that would be good.
Title: Re: FlashChat Integration
Post by: Beanfly on January 29, 2010, 10:44:04 AM
When Is This Going To Be Compatible With SMF 1.1.11

Thanks
Title: Re: FlashChat Integration
Post by: LC on January 30, 2010, 03:53:59 AM
Does this mod work for RC2?

It seems some are running it on there. I wanted to get something like this, but wanted to make sure.
Title: Re: FlashChat Integration
Post by: Filipina on January 30, 2010, 05:39:54 PM
Yes its works RC2 but I think the SMF MOD only integrates flashchat 4.7.12.. not the 5 or 6 version. If I am wrong someone shoot me :)
Title: Re: FlashChat Integration
Post by: adbrad on January 30, 2010, 06:26:49 PM
Quote from: Filipina on January 30, 2010, 05:39:54 PM
Yes its works RC2 but I think the SMF MOD only integrates flashchat 4.7.12.. not the 5 or 6 version. If I am wrong someone shoot me :)

this is correct however the author of the mod is planning on updating it when they get time.
Title: Re: FlashChat Integration
Post by: Goad on February 04, 2010, 02:22:31 PM
anyone got this to work with FC 6.0.6 and SMF 1.1.11 on php 5.3?

FC 4.x doesnt work with php 5.3 apparently

i can get FC 6.0.6 to work on my web server, but when i installed this mod to integrate FC and SMF, it killed my site. I had to manually uninstall it...what a mess....I made the mistake installing it straight to production.

I am going to retry it on my test site and i will post the errors I receive in hopes someone can help me sort out the errors.

I will post the results soon....thanks!
Title: Re: FlashChat Integration
Post by: Tyrsson on February 04, 2010, 02:48:02 PM
The next version that will be released that is compatible with the new versions of FlashChat will be after SMF 2.0 goes final. I just do not have the time to update with every new version.
Title: Re: FlashChat Integration
Post by: Goad on February 04, 2010, 03:01:42 PM
any idea whats causing this error?

Fatal error: require_once() [function.require]: Failed opening required 'INC_DIR ../temp/config.srv.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxx/public_html/xxxxx/chat/inc/config.srv.php on line 2

if i go to mysite.com/chat it works fine.

i get this error when i go to mysite.com/ (front page of smf)

i checked the temp/config.srv.php and looks ok. the one in inc/ is ok too
Title: Re: FlashChat Integration
Post by: Tyrsson on February 04, 2010, 03:07:57 PM
Quote/chat/inc/config.srv.php on line 2
What code is on that line?
Title: Re: FlashChat Integration
Post by: Goad on February 04, 2010, 03:12:30 PM
this is all the code that exists in that file:

Quote<?php
   require_once INC_DIR.' ../temp/config.srv.php';
?>

so I check the /temp/config.srv.php...

Quote<?php
   $GLOBALS['fc_config'] = array(
      'cacheType' => '0',
      'cachePath' => '../temp/templates/cache/',
      'cacheFilePrefix' => '775307597',
   );
   $GLOBALS['fc_config']['db'] = array(
      'host' => 'localhost',
      'user' => 'xxxxx',
      'pass' => 'xxxxxxx',
      'base' => 'xxxxxxx',
      'pref' => 'smf_fc_',
   );
?>

Title: Re: FlashChat Integration
Post by: Tyrsson on February 04, 2010, 03:23:45 PM
Yes,  but what path is defined within this constant?: INC_DIR
Title: Re: FlashChat Integration
Post by: Goad on February 04, 2010, 03:26:24 PM
not sure what that is.... how can i find out?

are you referring to this part of the error: (include_path='.:/usr/lib/php:/usr/local/lib/php')
Title: Re: FlashChat Integration
Post by: noxe on February 04, 2010, 11:32:23 PM
Quote from: Tyrsson™ on February 04, 2010, 02:48:02 PM
The next version that will be released that is compatible with the new versions of FlashChat will be after SMF 2.0 goes final. I just do not have the time to update with every new version.

Do you plan on updating it for SMF 1.1.x too with the FC 5.x and 6.x or are you simply moving onto SMF 2.0 support/integration with the newer FlashChats once it goes final?
Title: Re: FlashChat Integration
Post by: BarfBag on February 05, 2010, 11:27:52 AM
I installed this mod, and it brought down my entire board.  Getting the following error.  SMF 1.1.11.

Fatal error: require_once() [function.require]: Failed opening required 'INC_DIR../temp/config.srv.php' (include_path='.:/usr/lib/php') in /home/chexqorg/public_html/chat/inc/config.srv.php on line
Title: Re: FlashChat Integration
Post by: Smoky "Rider" Blue on February 05, 2010, 12:25:36 PM
hmm BarfBag? :o

did you have a custom theme at the time of install?

you must add the code into a custom theme.. also did you read the instructions for proper chmoding the folders and files of your site, or did you just use fantastico to install? ;)
Title: Re: FlashChat Integration
Post by: the5th on February 06, 2010, 02:59:51 AM
great mod guys.  my users and i really love it, so thanks a bunch!  quick question regarding a minor problem with my setup.  everything works great, but the number of users never shows up next to the chat button in the menu bar.  ive turned it on and off quite a few times, but i never see any difference there.  is there anything i should check?  oh let me also say the theme is default. 
Title: Re: FlashChat Integration
Post by: Tyrsson on February 06, 2010, 05:17:12 PM
Quote from: the5th on February 06, 2010, 02:59:51 AM
great mod guys.  my users and i really love it, so thanks a bunch!  quick question regarding a minor problem with my setup.  everything works great, but the number of users never shows up next to the chat button in the menu bar.  ive turned it on and off quite a few times, but i never see any difference there.  is there anything i should check?  oh let me also say the theme is default. 
Most likely your using the smf 2.0 (outdated version?) and if so then I think there was a small bug in that coding for the tab. I plan to fix it in the next version.


Title: Re: FlashChat Integration
Post by: Tyrsson on February 06, 2010, 05:17:45 PM
Quote from: BarfBag on February 05, 2010, 11:27:52 AM
I installed this mod, and it brought down my entire board.  Getting the following error.  SMF 1.1.11.

Fatal error: require_once() [function.require]: Failed opening required 'INC_DIR../temp/config.srv.php' (include_path='.:/usr/lib/php') in /home/chexqorg/public_html/chat/inc/config.srv.php on line
Which version of flashchat are you using?
Title: Re: FlashChat Integration
Post by: Tyrsson on February 06, 2010, 05:18:28 PM
Quote from: Goad on February 04, 2010, 03:26:24 PM
not sure what that is.... how can i find out?

are you referring to this part of the error: (include_path='.:/usr/lib/php:/usr/local/lib/php')
You will need to find where the constant is defined.
Title: Re: FlashChat Integration
Post by: Tyrsson on February 06, 2010, 05:19:34 PM
Quote from: noxe on February 04, 2010, 11:32:23 PM
Quote from: Tyrsson™ on February 04, 2010, 02:48:02 PM
The next version that will be released that is compatible with the new versions of FlashChat will be after SMF 2.0 goes final. I just do not have the time to update with every new version.

Do you plan on updating it for SMF 1.1.x too with the FC 5.x and 6.x or are you simply moving onto SMF 2.0 support/integration with the newer FlashChats once it goes final?

I will not be updating the 1.1.x version to use the new version of flashchat since at that point smf 2.0 will be final.
Title: Re: FlashChat Integration
Post by: the5th on February 06, 2010, 07:10:17 PM
Quote from: Tyrsson™ on February 06, 2010, 05:17:12 PM
Quote from: the5th on February 06, 2010, 02:59:51 AM
great mod guys.  my users and i really love it, so thanks a bunch!  quick question regarding a minor problem with my setup.  everything works great, but the number of users never shows up next to the chat button in the menu bar.  ive turned it on and off quite a few times, but i never see any difference there.  is there anything i should check?  oh let me also say the theme is default. 
Most likely your using the smf 2.0 (outdated version?) and if so then I think there was a small bug in that coding for the tab. I plan to fix it in the next version.

yes thank you, i am.  im using 2rc1 right now.
Title: Re: FlashChat Integration
Post by: Goad on February 08, 2010, 10:06:51 AM
Quote from: Tyrsson™ on February 06, 2010, 05:18:28 PM
Quote from: Goad on February 04, 2010, 03:26:24 PM
not sure what that is.... how can i find out?

are you referring to this part of the error: (include_path='.:/usr/lib/php:/usr/local/lib/php')
You will need to find where the constant is defined.

can you please be more specific as to what information you need?
Title: Re: FlashChat Integration
Post by: Filipina on February 08, 2010, 11:37:07 AM
Quote from: Goad on February 04, 2010, 02:22:31 PM
FC 4.x doesnt work with php 5.3 apparently

That is good to know. I almost installed FC 4.x and that would have been a waste of time :)
Title: Re: FlashChat Integration
Post by: Kindred on February 08, 2010, 03:52:58 PM
Quote from: Goad on February 08, 2010, 10:06:51 AM
Quote from: Tyrsson™ on February 06, 2010, 05:18:28 PM
Quote from: Goad on February 04, 2010, 03:26:24 PM
not sure what that is.... how can i find out?

are you referring to this part of the error: (include_path='.:/usr/lib/php:/usr/local/lib/php')
You will need to find where the constant is defined.

can you please be more specific as to what information you need?

*YOU* need to figure out what INC_DIR is defined as...    that would be somewhere in your FC settings.
Title: Re: FlashChat Integration
Post by: Goad on February 09, 2010, 02:26:58 PM
Quote from: Kindred on February 08, 2010, 03:52:58 PM
Quote from: Goad on February 08, 2010, 10:06:51 AM
Quote from: Tyrsson™ on February 06, 2010, 05:18:28 PM
Quote from: Goad on February 04, 2010, 03:26:24 PM
not sure what that is.... how can i find out?

are you referring to this part of the error: (include_path='.:/usr/lib/php:/usr/local/lib/php')
You will need to find where the constant is defined.

can you please be more specific as to what information you need?

*YOU* need to figure out what INC_DIR is defined as...    that would be somewhere in your FC settings.

I understand *I* need to figure it out. But what exactly am i looking for? give me somethin here. im finding ton of "INC_DIR" references in the config files that point at other files. Im not a programmer. just askin for some help to get your mod workin.
Title: Re: FlashChat Integration
Post by: Kindred on February 09, 2010, 02:47:11 PM
find where INC_DIR is defined...   i.e.  INC_DIR = ....
Title: Re: FlashChat Integration
Post by: Goad on February 09, 2010, 05:01:31 PM
I found this line in the config2db.php   ...is this what youre talkin about?

define('INC_DIR', dirname(__FILE__) . '/inc/');
Title: Re: FlashChat Integration
Post by: Tyrsson on February 18, 2010, 02:37:52 AM
Yep that would be it. As I have said several times in this topic, some of the files in the new versions of chat have moved iirc. Also, its not a for sure thing that even if the location is corrected that it will work as its dependent on more than one file.
Title: Re: FlashChat Integration
Post by: digit on February 23, 2010, 04:56:45 AM
I am having a problem with additional groups being banned...  from what I have read, there is no current solution when integrating FlashChat 6.0.6 and smf 1.1.11

SOOO - I am trying to do something myself.

I am using the defaultCMS.php file - that DOES successfully allow members to log in even with additional groups...  HOWEVER, I only want members in groups 1,2, and 9 to have access.... so, I thought, why not just include the SSI.php file in the main flashchat.php file, then do a..... 

if (count(array_intersect(array(1,2,9), $GLOBALS['user_info']['groups'])) > 0)
{


Well, I think I am almost there, but I am having a bit of a coding problem.

The original Flashchat.php is like this....


<?php
//Fix For flashchat.php To Secure From Direct Access To Script
//Fix For flashchat.php To Secure From Direct Login Via URI
// Fix Contribution By Ricky Huckle
define('INC_DIR'dirname(__FILE__) . '/./inc/');//for config.php
require_once(INC_DIR.'common.php');
define("flashchat",true);
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("Expires: Thu, 01 Jan 1970 00:00:01 GMT");
?>

<html>
<head>
<title>My Chat</title>
<?php 
require_once('flashchat_inc.php');
?>

</head>

<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" scroll="no" >
<center>
<div id="flashchat"></div>
           
            <script type="text/javascript" src="js.php"></script>
           
</center>
</body>
</html>
<?php 
//End Fix For Secure flashchat.php

?>




My hacked version is like this.....

<?php
//Fix For flashchat.php To Secure From Direct Access To Script
//Fix For flashchat.php To Secure From Direct Login Via URI
// Fix Contribution By Ricky Huckle
define('INC_DIR'dirname(__FILE__) . '/./inc/');//for config.php
require_once(INC_DIR.'common.php');

require(
'/users/SSI.php');
global 
$context$settings$options$scripturl$txt;

define('flashchat',true);
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
header('Expires: Thu, 01 Jan 1970 00:00:01 GMT');

require_once(
'flashchat_inc.php');

if (
count(array_intersect(array(1,2,9), $GLOBALS['user_info']['groups'])) > 0)
{
echo
'
<html>
<head>
<title>My Chat</title>



</head>

<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" scroll="no" >
<center>
<div id="flashchat"></div>
            
            <script type="text/javascript" src="js.php"></script>
            
</center>
</body>
</html>'
;

}

//End Fix For Secure flashchat.php

?>




but I am getting this error.....


Warning: array_intersect() [function.array-intersect]: Argument #2 is not an array in /users/tchat/flashchat.php on line 18


Can someone please tell me where (I mean how) my version is breaking?

Thanks,
digit
Title: Re: FlashChat Integration
Post by: hcvshare on February 23, 2010, 02:05:05 PM
Please someone help!

I have smf 1.1.11, Flashchat 4.7.12 and FlashChat Integration 1.0a

My Menu "Chat" is not there, but when I log in, I get "[1 User]" where it should say "CHAT [1 User]"

My options in Admin Configuration are not "labeled" with description of what the options are, but the options are there.

And, in the bottom where it lists users online and in forum, the "label" for the in forum is not there either.

Please tell me someone knows what is wrong here!

I love the FlashChat Integration!

Thanks in advance for any help at all!
Tim
Title: Re: FlashChat Integration
Post by: Tyrsson on February 25, 2010, 09:44:43 AM
Check to make sure the edits in the language files were made.
Title: Re: FlashChat Integration
Post by: hcvshare on February 25, 2010, 09:23:50 PM
Thanks!
The edits were in the english language file, but i was configured for english-utf8, so I found a mod that loads regular english file first all time.

Title: Re: FlashChat Integration
Post by: TAR-FOUNDER on February 26, 2010, 03:18:04 AM
I'm trying to install this on my forums via the package manager and I get this error before installing it:

12.     Execute Modification     ./chat/inc/flashChatTag.php     File not found
13.    Execute Modification    ./chat/inc/cmses/smfCMS2.php    File not found

Any suggestions?
Title: Re: FlashChat Integration
Post by: adbrad on February 26, 2010, 04:02:24 AM
did you install chat first as thats suggests no
the mod dosen't install flash chat just integrates it with smf, it does state this on the mod page
Title: Re: FlashChat Integration
Post by: TAR-FOUNDER on February 26, 2010, 06:57:31 PM
this makes sense now.  i was extremely tired when i was trying to do this last night.

i now have the chat installed, but i'm still getting this error

   Execute Modification     ./Themes/default/languages/Help.english.php     Test successful
12.    Execute Modification    ./chat/inc/flashChatTag.php    Test failed

i have that file in the folder too, any ideas?
Title: Re: FlashChat Integration
Post by: Kindred on February 26, 2010, 09:34:52 PM
what version of flashchat?
Title: Re: FlashChat Integration
Post by: TAR-FOUNDER on February 26, 2010, 10:18:17 PM
not sure what the issue was, but i just tried again and everything said successful.

i installed it and it's working now.  thanks guys/gals!
Title: Re: FlashChat Integration
Post by: Rasyr on February 27, 2010, 10:23:41 AM
Is this going to be updated soon so that it works with SMF 2.0 RC2 soon?
Title: Re: FlashChat Integration
Post by: chrishicks on February 27, 2010, 10:22:41 PM
So yesterday I started getting these 2 errors whenever someone enters the chat:

8192: Function split() is deprecated
File: /home/xxxxx/public_html/forum/chat/inc/classes/db.php
Line: 20

8192: Assigning the return value of new by reference is deprecated
File: /home/xxxxx/public_html/forum/chat/inc/common.php
Line: 87

Does anyone have any idea as to what they are?

I'm running Flashchat version 4.7.12 I believe(I installed it almost 3 years ago so I don't really remember) and my forum is 1.1.11.
Title: Re: FlashChat Integration
Post by: hcvshare on March 02, 2010, 02:26:48 AM
deprecation errors are usuaaly a sign that the underlying language (php in this case?) has been upgraded to a new version on the hosting server.  I suggest you check with your hosting solution administrator.

HTH
Tim
Title: Re: FlashChat Integration
Post by: Kat9119 on March 08, 2010, 02:59:47 PM
Quote from: donjoe on April 13, 2009, 02:35:59 PM
Quote from: ankitj on March 06, 2009, 08:33:03 PMI have 1.1.8 SMF and 5.x Flash chat. Is there a mod for integrating these two specific versions?
Nope, but since I wanted to integrate exactly these versions myself, here's how I did it:

The Quick and Dirty FlashChat v5.0.11 Integration for SMF v1.1.8
(I mention exact version numbers because I'm not going to guarantee that the procedure below works for any combination of versions that I haven't tried myself.)

What this does:

- adds a link in the SMF menu at the top (after "SEARCH"), which reads "CHAT" if there's no-one in the chat or "CHAT(x)" if there are currently x people in the chat (including those who have chosen to hide their online status in the forum); clicking this link opens up the chat in a new browser tab/window (no in-page integration, sorry) and gets you right in if you're already logged into the forum.

- adds a new "Users Online" section at the bottom (under "Users active in past 15 minutes:") which reads "No users in chat." if there's no-one in the chat or "Users in chat:" followed below by the "real" names of all the users currently in the chat (but only those who haven't chosen to hide their online status in the forum); all these names will be links to forum profiles.


How to apply it:

Install FlashChat v5.0.11 according to these instructions: http://www.tufat.com/docs/flashchat/integration.html (http://www.tufat.com/docs/flashchat/integration.html), but skip the last step where you have to follow another link at the bottom of the instructions page.
While installing, make sure to accept the suggested database tables prefix "fc_". Otherwise, you will have to look for it in the code insertions below and replace it manually where I used "fc_". :) (Needless to say, this "mod" will only keep working without corrections as long as you continue to use the same database table names as those generated by the above installation.)

After you've verified that you can login with your forum Administrator account and use the chat from a link that looks approximately like this:
http://www.yourwebsite.com/forum/chat/flashchat.php
or
http://forum.yourwebsite.com/chat/flashchat.php

... you'd do well to fix a little blunder in one of FlashChat's SMF integration support files that may generate "you have been banned" messages for some of your users even if they're not banned.

Find this code in {your_forum_folder}\chat\inc\cmses\smfCMS2.phpif($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;
... and change it to:if($status == 0 || ($status > 3)) return ROLE_USER;

Next, you have to modify just 2 files in each of your forum themes where you want this to work - BoardIndex.template.php and index.template.php.

Find this code in {your_forum_folder}\Themes\{your_theme}\BoardIndex.template.php:        // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

... and add this after it:        // --- Begin FlashChat Integration ---
// Load all the users currently in the chat
        global $db_prefix;
$result = db_query("
SELECT fc.userid, mem.realName, mem.showOnline
    FROM {$db_prefix}fc_connections AS fc
    LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = fc.userid)
    WHERE fc.userid IS NOT NULL
    AND mem.ID_MEMBER != 0
            ORDER BY mem.realName ASC",
                       __FILE__, __LINE__);

$context['users_chat'] = array();

// Loop through all users in chat
while($row = mysql_fetch_assoc($result))
{
// Build the link to their profile
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userid'] . '">' . $row['realName'] . '</a>';

        if($row['showOnline'])
        {
            // Add them to the 'Users Online' list
            $context['users_chat'][$row['realName']] = $link;
        }
}
mysql_free_result($result);

    echo '<br />';
// If there are users in the chat, show who they are
if(!empty($context['users_chat']))
    {
        echo 'Users in chat:<br />', implode(', ', $context['users_chat']);
    }
    else // otherwise just report the situation
    {
        echo 'No users in chat.';
    }
// --- End FlashChat integration ---


Then, find this code in {your_forum_folder}\Themes\{your_theme}\index.template.php:        // The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

... and add this after it:        // --- Begin FlashChat Integration ---
// Count all the users currently in the chat
        global $db_prefix;
$result = db_query("
SELECT COUNT(*) AS count
FROM {$db_prefix}fc_connections AS fc
WHERE fc.userid IS NOT NULL", __FILE__, __LINE__);
$row = mysql_fetch_assoc($result);
mysql_free_result($result);

    // Display the 'CHAT' menu link
    echo '
                <td valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
                    <a href="', $GLOBALS['boardurl'], '/chat/flashchat.php" target="_blank">CHAT';
if($row['count'] > 0) // only add parantheses if there's at least one user in the chat
    {
        echo '(', $row['count'], ')';
    }
    echo '</a>
                </td>' , $current_action == 'chat' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
// --- End FlashChat integration ---


And you should be all set. :)


Disclaimer: the above procedure description is provided as-is, with no implied guarantee whatsoever etc. etc. 8)

I used this method until recently. FlashChat 6.0.7 came out, and I'm running SMF 1.1.11. However, there are login issues when using this code on Firefox. It never finishes loading. You have to log out of the forum, click the chat link, login with forum login info, and then you are okay.

Anyone know of a fix for this? this is a HUGE issue for me.
Title: Re: FlashChat Integration
Post by: Rasyr on March 08, 2010, 03:15:59 PM
QuoteI used this method until recently. FlashChat 6.0.7 came out, and I'm running SMF 1.1.11. However, there are login issues when using this code on Firefox. It never finishes loading. You have to log out of the forum, click the chat link, login with forum login info, and then you are okay.

Actually, I think that some of the login issues may be somewhat caused by Flashchat 6.0.7 on Firefox.  I am using that version of Flashchat with SMF 2.0 RC2 and get all sorts of odd things when trying to log into Flashchat from my forums (in Firefox, when logging in as admin, I do not get the admin icon, nor see anything I send, and even trying to send wipes what was already there).

However, I am also waiting for this mod  to be updated for Flashchat 6.0.7 and SMF 2.0 RC2

Title: Re: FlashChat Integration
Post by: Kat9119 on March 08, 2010, 03:46:17 PM
Quote from: Rasyr on March 08, 2010, 03:15:59 PM
QuoteI used this method until recently. FlashChat 6.0.7 came out, and I'm running SMF 1.1.11. However, there are login issues when using this code on Firefox. It never finishes loading. You have to log out of the forum, click the chat link, login with forum login info, and then you are okay.

Actually, I think that some of the login issues may be somewhat caused by Flashchat 6.0.7 on Firefox.  I am using that version of Flashchat with SMF 2.0 RC2 and get all sorts of odd things when trying to log into Flashchat from my forums (in Firefox, when logging in as admin, I do not get the admin icon, nor see anything I send, and even trying to send wipes what was already there).

However, I am also waiting for this mod  to be updated for Flashchat 6.0.7 and SMF 2.0 RC2



Yeah, I really wish I could go back to FlashChat 5.0.11, but my SQL backup has an error in it, and I don't know how to get the flashchat tables out of that whole forum back up. Otherwise I have all the old 5.0.11 files (except the install.php) otherwise I'd just reinstall it from scratch.

Sadly, I have 1.1.11, and a few pages back I read that this mod will not every be fixed to work with that :(
Title: Re: FlashChat Integration
Post by: BarfBag on March 17, 2010, 10:04:30 AM
I'm not sure whether this is a bug in FlashChat, or a bug in this modification.

FlashChat is not integrating properly with my member list.  You can log-in as your forum user name, and your group does carry over (Administrator, Global Moderator, etc.), but passwords mean nothing.  As long as you enter the correct user name, you can enter any password you want.  Anybody know how to fix this?
Title: Re: FlashChat Integration
Post by: blackone on March 30, 2010, 07:22:42 AM
Hi I was install SMF 2.0 RC3, FlashChat 4.7.12 and flashchat integration, but I can't see chat link can someone help me with that? =)
Title: Re: FlashChat Integration
Post by: Tyrsson on April 05, 2010, 05:32:15 PM
Can you post a screenshot of what you mean by you cant see the chat link?
Title: Re: FlashChat Integration
Post by: hcfwesker on April 14, 2010, 12:22:36 AM
I'm going to warn you all right now.  I'm flat out stupid when it comes to thsi stuff.  :(

I've purchased FlashChat, and have my downloads saved. 

What do I do from there?  With my FlashChat downloads.  didn't see anything on  the first few pages of this topic.

I'm on smf 1.1.11, when i install the package right away, I get all these test failures.  I can fix the errors through parsing, but the files that are not found, what do i do?

8.   Execute Modification   ./Themes/default/BoardIndex.template.php   Test successful
9.   Execute Modification   ./Themes/default/index.template.php   Test failed
10.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
11.   Execute Modification   ./Themes/default/languages/Help.english.php   Test successful
12.   Execute Modification   ./chat/inc/flashChatTag.php   File not found
13.   Execute Modification   ./chat/inc/cmses/smfCMS2.php   File not found


Title: Re: FlashChat Integration
Post by: adbrad on April 14, 2010, 04:53:03 AM
Quote from: adbrad on February 26, 2010, 04:02:24 AM
did you install chat first as thats suggests no
the mod dosen't install flash chat just integrates it with smf, it does state this on the mod page
Title: Re: FlashChat Integration
Post by: hcfwesker on April 14, 2010, 04:56:06 AM
Like .... how?   I have the zip fiels from FlashChat, I unzipped it for those 2 files it called for.   Now I'm getting this.

12.   Execute Modification   ./chat/inc/flashChatTag.php   File not found  <--- this file no matter how many times i upload it, it fails.
13.   Execute Modification   ./chat/inc/cmses/smfCMS2.php   Success


I'm not a coder genious, and the way the instructions are written out the writer assumes everyone understands.  There are some of us completely brand new to this stuff.

Title: Re: FlashChat Integration
Post by: adbrad on April 14, 2010, 05:07:23 AM
unzip and upload the fiels to a chat directory
then run..../chat/install.php and follow the instructionshere (http://www.tufat.com/docs/flashchat/integration.html)
Title: Re: FlashChat Integration
Post by: hcfwesker on April 14, 2010, 06:15:40 AM
Thanx for the help.

I'm just not cut out for this.  I have tried and tried and can't get past step 1.
Title: Re: FlashChat Integration
Post by: adbrad on April 14, 2010, 10:46:05 AM
upload the file out the zip into a directory called chat  then send me the link to your forum
unzip the files first then upload via ftp
Title: Re: FlashChat Integration
Post by: FireDitto on April 14, 2010, 07:59:39 PM
Is this mod compatible with RC3?
Title: Re: FlashChat Integration
Post by: adbrad on April 15, 2010, 04:18:14 AM
Quote from: FireDitto on April 14, 2010, 07:59:39 PM
Is this mod compatible with RC3?
nope it will be updated by the author at some point
Title: Re: FlashChat Integration
Post by: FireDitto on April 15, 2010, 04:59:56 AM
Okay, thank you =)
Title: Re: FlashChat Integration
Post by: BarfBag on April 26, 2010, 03:58:36 PM
I get the following error when I try to install this mod:

12.   Execute Modification   ./chat/inc/flashChatTag.php   Test failed

According to the Package Parser,

This:
$tag .= "'width','".$height."',\n";
$tag .= "'height','".$height."',\n";

Must Be Replaced With This:
// Bug fix by Daniel15 for SMF FlashChat Integration
//$tag .= "'width','".$height."',\n";
$tag .= "'width','".$width."',\n";
$tag .= "'height','".$height."',\n"

I can't find it anywhere in the file, though!  Anybody have any ideas?  If requested, I can post the file in question.
Title: Re: FlashChat Integration
Post by: Kindred on April 26, 2010, 06:00:24 PM
I am betting you are not using flashchat 4.7.x
Title: Re: FlashChat Integration
Post by: teh_Krall on May 05, 2010, 03:40:01 PM
Question, we were running this awesome mod with FlashChat on SMF 1.1.11. I uninstalled the mod, but not the FlashChat files while moving to SMF 2.0 RC3. I haven't checked to see if this mod will work with that version of SMF, but if it does do I just install the mod again or do I have to remove all the FlashChat files first and basically start over?

BTW, has anyone ever gotten the FC bots to work?
Title: Re: FlashChat Integration
Post by: Kindred on May 05, 2010, 04:08:28 PM
you will have to reinstall flashchat with the 2.0 integration selected because the smf 2.0 data structure is different from smf 1.1.x

Also, I do not think this mod has been updated to run on 2.0
Title: Re: FlashChat Integration
Post by: teh_Krall on May 05, 2010, 04:18:04 PM
Quote from: Kindred on May 05, 2010, 04:08:28 PM
you will have to reinstall flashchat with the 2.0 integration selected because the smf 2.0 data structure is different from smf 1.1.x

Also, I do not think this mod has been updated to run on 2.0

Thanks for the heads up Kindred.

This mod does support 2.0 RC1.2, not sure what's required to make it work with RC3, but I'll read back in this support forum.
Title: Re: FlashChat Integration
Post by: adbrad on May 05, 2010, 04:59:50 PM
the mod author has said they will be updating it when they get time
Title: Re: FlashChat Integration
Post by: SmackDaddy on May 10, 2010, 12:15:58 AM
I have it installed with the flashchat addon for 2.0 RC3 from the flashchat forums:  http://forum.tufat.com/showthread.php?t=56996

The only issue I am having is logging into the flashchat admin page is where the login cycles back to the login page when i click an administration function/link at the top.....
Title: Re: FlashChat Integration
Post by: teh_Krall on May 11, 2010, 12:39:42 PM
Quote from: SmackDaddy on May 10, 2010, 12:15:58 AM
I have it installed with the flashchat addon for 2.0 RC3 from the flashchat forums:  http://forum.tufat.com/showthread.php?t=56996

The only issue I am having is logging into the flashchat admin page is where the login cycles back to the login page when i click an administration function/link at the top.....

You installed Flashchat 4.7.12 on a SMF2 RC3 forum? Did you use the Flashchat integration 2.0 RC1.2 package? I couldn't get that to work, keep getting the "The package you are trying to download or install is either corrupt or not compatible with this version of SMF." error.

Did you have to use the emulate feature when installing the package or did you do a manual install?
Title: Re: FlashChat Integration
Post by: J-Bird on June 01, 2010, 10:48:50 AM
Quote from: chrishicks on February 27, 2010, 10:22:41 PM
So yesterday I started getting these 2 errors whenever someone enters the chat:

8192: Function split() is deprecated
File: /home/xxxxx/public_html/forum/chat/inc/classes/db.php
Line: 20


I'm running Flashchat version 4.7.12 I believe(I installed it almost 3 years ago so I don't really remember) and my forum is 1.1.11.

Same issue with me. Flashchat 4.7.12 SMF 1.1.11.
Chat wont complete loading, and shows the above error in the SMF error log.
Host moved us to a new server, and now this error.
Host suggest a re-install of chat, but I would rather not.
Any suggestions?
Title: Re: FlashChat Integration
Post by: J-Bird on June 02, 2010, 09:40:05 PM
Problem solved by info from Flashchat forum.
Posted below for reference.


Quote:
Originally Posted by klj2000 
If they upgraded there php version to 5.3 only version 6 of flashchat will work now. All other scripts on this site are not updated for this version of php if that ends up being the case.


That was exactly the case.
The host rolled back the version of PHP and all is well.

Thanks.
Title: Re: FlashChat Integration
Post by: Masterd on June 13, 2010, 01:26:55 PM
Can you make this mod for SMF 2.0 RC3?
Title: Re: FlashChat Integration
Post by: Tyrsson on June 14, 2010, 03:55:59 AM
It will be updated but most likely not until 2.0 goes final.
Title: Re: FlashChat Integration
Post by: Mr. Jinx on June 20, 2010, 02:49:07 PM
How cool, I order flashchat about 5 years ago. Today I wanted to give it another shot, and my $5 license was still active :)
Was a bit surprised to see exactly the same 'bugs' as 5 years ago: loginnames are displayed instead of the real names. And UTF8 isn't working, so the special characters are displayed wrong.
...but after some digging in the tufat forums I've got it working.
Now to the next step: Installing the mod.
Title: Re: FlashChat Integration
Post by: Mr. Jinx on June 21, 2010, 02:59:01 PM
Quote from: Tyrsson™ on February 06, 2010, 05:17:12 PM
Quote from: the5th on February 06, 2010, 02:59:51 AM
great mod guys.  my users and i really love it, so thanks a bunch!  quick question regarding a minor problem with my setup.  everything works great, but the number of users never shows up next to the chat button in the menu bar.  ive turned it on and off quite a few times, but i never see any difference there.  is there anything i should check?  oh let me also say the theme is default. 
Most likely your using the smf 2.0 (outdated version?) and if so then I think there was a small bug in that coding for the tab. I plan to fix it in the next version.
I'm having the same problem with SMF2.0. The number of users in chat is not displayed in the menu.
It seems $context[num_chat] is empty in the function setupMenuContext(); in subs.php
Anyone know how to fix this?
Title: Re: FlashChat Integration
Post by: Tyrsson on June 22, 2010, 04:01:57 AM
It will be fixed in the next version.
Title: Re: FlashChat Integration
Post by: Mr. Jinx on July 01, 2010, 12:49:58 PM
Ok, will be waiting for it!
For now I have found a quick fix for this problem, so the number of users in chat are displayed in the chat button (SMF 2.0 RC3).
Title: Re: FlashChat Integration
Post by: crustybum on July 08, 2010, 08:50:59 AM
I get this when trying to install it on a default theme 1.1.11

Type     Action     Description
1.    Extract File    ./Sources/Chat.php    
2.    Extract File    ./Themes/default/Chat.template.php    
3.    Extract File    ./dologout.php    
4.    Execute Modification    ./index.php    Test successful
5.    Execute Modification    ./SSI.php    Test successful
6.    Execute Modification    ./Sources/ModSettings.php    Test successful
7.    Execute Modification    ./Sources/Subs.php    Test successful
8.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
9.    Execute Modification    ./Themes/default/index.template.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
11.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
12.    Execute Modification    ./chat/inc/flashChatTag.php    File not found
13.    Execute Modification    ./chat/inc/cmses/smfCMS2.php    File not found
14.    Execute Code    add_settings.php    



Any ideas?

Chris
Title: Re: FlashChat Integration
Post by: Mr. Jinx on July 08, 2010, 11:41:51 AM
Did you install Flashchat before installing the mod?
Title: Re: FlashChat Integration
Post by: Tyrsson on July 08, 2010, 11:50:47 AM
EIther you have not installed flashchat or you have not installed it per the integration instructions for flashchat.
Title: Re: FlashChat Integration
Post by: J-Bird on July 11, 2010, 01:12:19 PM
Quote from: J-Bird on June 02, 2010, 09:40:05 PM
Problem solved by info from Flashchat forum.
Posted below for reference.


Quote:
Originally Posted by klj2000 
If they upgraded there php version to 5.3 only version 6 of flashchat will work now. All other scripts on this site are not updated for this version of php if that ends up being the case.


That was exactly the case.
The host rolled back the version of PHP and all is well.

Thanks.

So now host wants to revert back to php 5.3 which will cause Flashchat 4.7 to stop functioning.
I do not want to be a tester for version 6 until it is more stable.

So what are my other options?
VPS using PHP 5.2 with a new host?
Find a host using older php that will not be upgrading?
Hold my breathe that someone will mod flashchat 4.7 to work with php 5.3?
Title: Re: FlashChat Integration
Post by: J-Bird on July 13, 2010, 03:18:10 PM
Bump.




Tyr?  :-\
Title: Re: FlashChat Integration
Post by: Tyrsson on July 13, 2010, 04:03:18 PM
The problem with this is that it is core flashchat code which they need to fix, since they are the ones getting paid for flashchat don't ya think?
Title: Re: FlashChat Integration
Post by: J-Bird on July 13, 2010, 04:14:27 PM
Quote from: Tyrsson™ on July 13, 2010, 04:03:18 PM
The problem with this is that it is core flashchat code which they need to fix, since they are the ones getting paid for flashchat don't ya think?

Thanks for the reply Tyrsson.
Yes, but THEY, the ones paid for it have pretty much been absent for years, and now that they are working on a new version, they have no intrest in making the old version (last stable) compliant with new PHP.

My question here was asking what you and others think my options are.
Title: Re: FlashChat Integration
Post by: Genesisnx on July 13, 2010, 06:20:56 PM
Hello! I feel a little stupid asking for help, but after hours of trying to actually get flashchat to work itself, which I managed, I now get a problem with the intergration mod. Specifically when I try and alter the subs.php file (I'm doing it manually), after adding the code the front page of the forum is just blank.

Any idea why? I'm a little stumped.
Title: Re: FlashChat Integration
Post by: Tyrsson on July 13, 2010, 10:18:12 PM
Quote from: J-Bird on July 13, 2010, 04:14:27 PM
Quote from: Tyrsson™ on July 13, 2010, 04:03:18 PM
The problem with this is that it is core flashchat code which they need to fix, since they are the ones getting paid for flashchat don't ya think?
Yea, trust me I understand... I plan on updating the mod for the new version of flashchat, but... Its not as simple as just updating the mod... I also have to make sure the new version is stable and has no known security issues so as to make sure it does not open SMF to a vulnerability due to my mod ;)

Thanks for the reply Tyrsson.
Yes, but THEY, the ones paid for it have pretty much been absent for years, and now that they are working on a new version, they have no intrest in making the old version (last stable) compliant with new PHP.

My question here was asking what you and others think my options are.
Title: Re: FlashChat Integration
Post by: Tyrsson on July 13, 2010, 10:26:42 PM
Quote from: Genesisnx on July 13, 2010, 06:20:56 PM
Hello! I feel a little stupid asking for help, but after hours of trying to actually get flashchat to work itself, which I managed, I now get a problem with the intergration mod. Specifically when I try and alter the subs.php file (I'm doing it manually), after adding the code the front page of the forum is just blank.

Any idea why? I'm a little stumped.
Need a little more info so that I can help a little better on this.

1.) Version of flashchat you are using.
2.) Version of SMF you are using.
3.) Link to your forum.
4.) Any errors you have encountered.
Title: Re: FlashChat Integration
Post by: Genesisnx on July 14, 2010, 12:20:57 PM
Aye sorry, I wasn't sure what information you'd need. :D

I'm using the latest version, 6.0.8 I believe. As well as 1.1.11 of SMF.

Forum is here: www.skulduggeryforums.co.uk/forum/ (You get the idea even with the spam prevention :))

As for errors, the only error I encountered was with Flashchat itself which I managed to fix. I don't get any visible errors when I edit the subs.php file, just a blank (white) board index, all the other pages such as profiles and the admin panel can still be accessed fine however.
Title: Re: FlashChat Integration
Post by: Kindred on July 14, 2010, 12:41:38 PM
this integration mod does not work with any version of flashchat above 4.7.x
Title: Re: FlashChat Integration
Post by: Genesisnx on July 14, 2010, 03:00:00 PM
Hmm, I had pondered that but wasn't too sure since I couldn't find any word on it in the original post, Unless I'm blind.

Anyway, thanks and sorry to be a bother.  ;)
Title: Re: FlashChat Integration
Post by: Acans on July 21, 2010, 06:26:04 AM
Hi, will this mod be updated to work with 2.0 RC3?
Title: Re: remove FlashChat Integration
Post by: aaaall on July 21, 2010, 06:38:25 PM
I have flashChat installed but we didn't use it. How do I remove it?
Title: Re: FlashChat Integration
Post by: Antechinus on July 23, 2010, 01:39:01 AM
Just making a note here for anyone who is using a fixed top menu with drop menus and needs them to work with the flashchat.

With IE (yes, I know, bloody IE) if you have a fixed top menu or drop menus the flashchat window will cover them by default if you scroll down. To fix this so that the fixed top menu and the drop menus always display over the flash do this:

chat/inc/flashChatTag.php

Find:
$tag .= "'flashvars','".$fv."',\n";
$tag .= "'menu','true',\n";


Replace:
$tag .= "'flashvars','".$fv."',\n";
$tag .= "'wmode','transparent',\n";
$tag .= "'menu','true',\n";


It's that simple. :)
Title: Re: FlashChat Integration
Post by: Lou69 on August 08, 2010, 10:05:17 AM
Quote from: Kindred on July 14, 2010, 12:41:38 PM
this integration mod does not work with any version of flashchat above 4.7.x

Crud .... that is a shame. The only version I found on http://www.tufat.com/s_flash_chat_chatroom.htm
was for version 6.0.8.

Been looking for something to replace Ajax chat with. 
Title: Re: FlashChat Integration
Post by: Tyrsson on August 08, 2010, 03:28:59 PM
It will be updated, i just have to many things to get it done before 2.0 final most likely.
Title: chat in 2.0
Post by: vypr on August 18, 2010, 12:52:29 AM
howdy all!
I recently had my 1.1.11 database crash and was unsuccesfull in reviving it, so I did the smf2.0rc3. I want a chat again like I had in the previous version. we had flashchat. all I can find that works with 2.0 is ajax. well I get to the install part and it does the test and says there is an error in package installation.

      Type   Action   Description
   1.   Execute Modification   ./Sources/Admin.php   Test successful
   2.   Execute Modification   ./Sources/BoardIndex.php   Test successful
   3.   Execute Modification   ./Sources/Load.php   Test successful
   4.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
   5.   Execute Modification   ./Sources/ManageSettings.php   Test successful
   6.   Execute Modification   ./SSI.php   Test successful
   7.   Execute Modification   ./Sources/Subs.php   Test successful
   8.   Execute Modification   ./Themes/default/BoardIndex.template.php   Test successful
   9.   Execute Modification   ./Themes/default/index.template.php   Test failed
   1.   Replace   ./Themes/default/index.template.php   Test successful
   2.   Add Before   ./Themes/default/index.template.php   Test failed
   10.   Execute Modification   ./Themes/default/languages/Help.english.php   Test successful
11.   Execute Modification   ./Themes/default/languages/Help.persian.php   Skipping file

how do I fix this???
thanks
Title: Re: chat in 2.0
Post by: Sabre™ on August 18, 2010, 01:38:35 AM
Im not a genius or nothing, but it might help to ask in the "chat" support board.
Title: Re: chat in 2.0
Post by: Akyhne on August 18, 2010, 02:55:52 AM
Several chats/shoutboxes works for SMF2, so look again.
Title: Re: FlashChat Integration
Post by: Tyrsson on August 18, 2010, 09:57:12 AM
Make the edits for index.template.php manually. This mod has not been updated to work with the Curve them as of yet which is why you are getting those errors.
Title: Re: FlashChat Integration
Post by: MoreBloodWine on August 27, 2010, 05:09:30 PM
This is a comment of mine from a reply here back in 2008 and damned if I can find the answer so I ask it again.

SMF 1.1.11 & FC 4.7.12

Quote from: MoreBloodWineHow do I get it to stop showing the room name under users online and in the info up top when you havee that specific option set, right now it looks like this.

Users currently in chat:
MoreBloodWine (EoJ Lounge)

Since I only have one room it doesnt make sense to have the room name listed, that and it makes things the user online section and the info up top when set really huge if you have alot of people logged into chat because for every user it lists the room name.

Edit: Any chance of a 2.0 RC3 compatible version ?
Title: Re: FlashChat Integration
Post by: mrtrick on September 15, 2010, 10:32:28 AM
I second this question. My members love flashchat and are greatly missing the integration since the upgrade.
Title: Re: FlashChat Integration
Post by: tamasir on September 15, 2010, 12:57:18 PM
SMF versio : 1.1.11
FlashChat versio: FlashChat v6.0.7
Smf mod: FlashChat Integration: FlashChatSMF_1-0a
The mod I installed it me. I received an error message then:
QuoteFatal error: require_once() [function.require]: Failed opening required 'INC_DIR../temp/config.srv.php' (include_path='.') in /users/smf-teszt/www/chat/inc/config.srv.php on line 2

My forum disappeared. I was not talented in order to invite it. My web page does not appear.
Hi Help....Thanks
Title: Re: FlashChat Integration
Post by: Kindred on September 15, 2010, 12:59:09 PM
1- it very clearly states that this mod does not support any version of flashchat other than 4.x
2- ALWAYS take a backup before you do anything
3- you will probably have to manually remove the changes for this mod... follow the manual install instructions form the mod site, in reverse.
Title: Re: FlashChat Integration
Post by: tamasir on September 15, 2010, 01:18:43 PM
He was my backup. I resettled it.  He functions properly resettled on all of them.
How I can integrate it FlashChat v6.0.7 verizon it smf my forum?
Please help me.

If I install it FlashChat v4.7.12 version, everything well then.
The chat appears then button in the menu.
Title: Re: FlashChat Integration
Post by: Kindred on September 15, 2010, 01:41:05 PM
I am not certain what your first statement means....

There is no integration of FC6.x and SMF apart from the standard FC integration (shared logins)

This mod does work with FC 4.7.12.
Title: Re: FlashChat Integration
Post by: tamasir on September 15, 2010, 02:29:28 PM
Kindred
FlashChat integracion mod works for me on my forum, v4.8.3 with a version. ;)
Thanks....
tamasir~
Title: Re: FlashChat Integration
Post by: Kat9119 on September 30, 2010, 05:16:08 PM
Quote from: mcalan2001 on August 23, 2008, 05:54:08 AM
This is the bit of code that controls which groups can access the chatroom:
This isn't a bit of code to paste in, you must adapt it to what you want.
//  if($status == 0 || ($status > 3 && $status < 99 )) return ROLE_USER;
  if(in_array(14, $additionalGroups)) return ROLE_USER;

//  if(in_array(0, $additionalGroups)) return ROLE_USER;

If the first line wasn't commented out, it would allow all groups to access chat. You just need to change the '9' to '99' if you have any problems with groups being excluded.
The next line I added. Group '14' is the additional group on my board, that I wanted to have access to chat. So only admins, moderators and members of this additional group can see the chatroom.
The last line also needs commenting out, if you are restricting access.

Thanks, I'm giving this a try now. I've been searching for well over a year on how to fix this. One person said to edit that file, but didn't say how or what.

So I tried your edits. Except I made mine look like this:

function getRoles($status, $additionalGroups) {

  if($status == 1 || in_array(1, $additionalGroups)) return ROLE_ADMIN;

  if($status == 2 || in_array(2, $additionalGroups)) return ROLE_MODERATOR;
  if($status == 3 || in_array(19, $additionalGroups)) return ROLE_MODERATOR;

//  if($status == 0 || ($status > 3)) return ROLE_USER;
  if(in_array(4, $additionalGroups)) return ROLE_USER;
  if(in_array(14, $additionalGroups)) return ROLE_USER;
  if(in_array(15, $additionalGroups)) return ROLE_USER;
  if(in_array(16, $additionalGroups)) return ROLE_USER;
  if(in_array(17, $additionalGroups)) return ROLE_USER;
  if(in_array(18, $additionalGroups)) return ROLE_USER;
  if(in_array(20, $additionalGroups)) return ROLE_USER;
//  if(in_array(0, $additionalGroups)) return ROLE_USER;


Because I want all my custom groups to have access, but not the banned group which is group #11. However, right after I did this someone in group #17 tried to get into the chat room and could not.
Title: Re: FlashChat Integration
Post by: Kat9119 on October 08, 2010, 06:45:02 PM
Never did get help for the above question....not that I really expected to...but anyhow..

But I'm curious if anyone ever got SMF 2.0 RC3 and FC 5.0.11 to work together in some mod like this? Its the only thing stopping me from upgrading to 2.0
Title: Re: FlashChat Integration
Post by: DarkflameQ on October 08, 2010, 08:26:21 PM
I've been running Flashchat v6.0.8 on my SMF 2.0 RC3 site for just over a month now.

I can definitely vouch that this is one of best affordable embeddable chat programs out there in terms of customization, functions and resource usage (with 15+ people chatting, only takes up roughly 4-8% CPU usage where shout boxes take up anything between 14-30%) but be warned the support for this product is currently non existent!

It's just a good thing it only set me back $5 and not $50 otherwise i'd be more angry about my questions on the forum being completely ignored, lol

Anyhoo, i look forward to this mod being updated to support the 6x series eventually (the 4x series is vulnerable to hacks and exploits, just youtube it and you'll see what i mean).
Title: Re: FlashChat Integration
Post by: rocknroller on November 28, 2010, 04:54:09 PM
can someone help me with flash chat? SMF 2.0RC 2

I was install flash chat manualy a long ago, witout this mod.  And i was create chat button ni the Subs.php. All I want is number how manny users are in chat next to the button chat, like in this mod.

Can some one help me in this?
Title: Re: FlashChat Integration
Post by: avguste on January 03, 2011, 09:23:28 AM
I am also having a problem integrating with SMF 2.4
I posted on the FlashChat site and here is the link

http://forum.tufat.com/showthread.php?t=69385

Any ideas?
Title: Re: FlashChat Integration
Post by: Mr. Jinx on January 08, 2011, 01:01:37 PM
I'm getting the exact same thing.
I know the mod doesn't support Flashchat 6, but even the simple flashchat<>smf integration provided by tufat doesn't work :(
Title: Re: FlashChat Integration
Post by: Tyrsson on January 09, 2011, 10:09:44 PM
If memory serves the integration that is posted on the tufat site was at one time for the 1.x.xx version of smf. If it has not been updated there could very well be code that needs to be updated, dif $vars etc.
Title: Re: FlashChat Integration
Post by: Bobn on January 10, 2011, 08:12:06 PM
Any chance this will work on RC4?
Title: Re: FlashChat Integration
Post by: Kindred on January 10, 2011, 10:47:08 PM
no chance at all
Title: Re: FlashChat Integration
Post by: impreza on January 11, 2011, 06:46:04 AM
great mod, thanks for making it
Title: Re: FlashChat Integration
Post by: Mr. Jinx on January 13, 2011, 05:44:45 AM
Quote from: Tyrsson™ on January 09, 2011, 10:09:44 PM
If memory serves the integration that is posted on the tufat site was at one time for the 1.x.xx version of smf. If it has not been updated there could very well be code that needs to be updated, dif $vars etc.

There is an update to make Flashchat 6 work with SMF 1.x and SMF 2.x
http://forum.tufat.com/showthread.php?t=65648

Works great! This solves the problem where you get a blue screen after login, and also fixes the admin interface.

please note: This is not a fix for the mod, it is only a fix for the smf/flashchat integration.
Title: Re: FlashChat Integration
Post by: [Lucien] on January 18, 2011, 03:33:45 PM
Quote from: Bobn on January 10, 2011, 08:12:06 PM
Any chance this will work on RC4?

Quote from: Kindred on January 10, 2011, 10:47:08 PM
no chance at all
Pleaseee, i hope the creator can make it compatible for RC4.......
Title: Re: FlashChat Integration
Post by: Tyrsson on January 18, 2011, 03:57:53 PM
It will not be for RC4, but there will be an update for 2.0 final.
Title: Re: FlashChat Integration
Post by: [Lucien] on January 18, 2011, 04:00:56 PM
Quote from: Tyrsson™ on January 18, 2011, 03:57:53 PM
It will not be for RC4, but there will be an update for 2.0 final.

Oke i'm happy now that i know :) Thnx
Title: Re: FlashChat Integration
Post by: TeaTephi on January 23, 2011, 10:01:26 AM
Quote from: Tyrsson™ on January 18, 2011, 03:57:53 PM
It will not be for RC4, but there will be an update for 2.0 final.

Okay, but I'm gonna try to find a work-around!  Could I add my own tab with a link to the chat interface, OR I could add a tinyportal block with a link to chat!

Just thinking out loud here.
Title: Re: FlashChat Integration
Post by: Tyrsson on January 23, 2011, 12:36:15 PM
You can link to it yes. There is many post here that describe how to add a tab.
Title: Re: FlashChat Integration
Post by: Tyrsson on January 23, 2011, 12:36:51 PM
Oh, and I may try to add support for simple portal and portamx blocks in the next release just to make life easier.
Title: Re: FlashChat Integration
Post by: Sakurachan on January 27, 2011, 03:06:32 PM
Needs to be updated. :(
Title: Re: FlashChat Integration
Post by: Kindred on January 27, 2011, 06:00:43 PM
did you even bother to read one page back?

Quote from: Tyrsson™ on January 18, 2011, 03:57:53 PM
It will not be for RC4, but there will be an update for 2.0 final.
Title: Re: FlashChat Integration
Post by: lawnmowertech on February 01, 2011, 11:45:44 AM
 2.0  Final  when will that be  ? 

Title: Re: FlashChat Integration
Post by: grynmoors on February 18, 2011, 03:06:39 AM
Here's something you can do. I have it on 2.0 rc5 and I use Simple Portal. I created a page with Simple Portal  and I put the FlashChat in an iframe on that page.  I then used "custom top menu" mod to make a link to the chat (although doing it manually  to the regular menu area is always an option).

The only thing I really care about, at this point, is what code would I need to use to show how many people are in the chat ? I'd like to have that showing somewhere on the site (like on the front page in the block that has the users online or something like that).
Title: Re: FlashChat Integration
Post by: Tyrsson on March 10, 2011, 10:58:21 AM
When I can find the time I may code a simple portal block (will have to look up the doc info on that) so that you can display a list of users in a block anywhere that SP allows a block to be shown. You can also create a php block and put the code in that, If I get time this evening I will post the code for that.
Title: Re: FlashChat Integration
Post by: NoFeaR / NFSMW on April 12, 2011, 04:07:31 AM
How do you guys get is to work on rc4?
When i try to use the Manual Install i get this error
QuoteAn Error Has Occurred!
Sorry, but this modification does not appear to be compatible with the selected version.
Title: Re: FlashChat Integration
Post by: Harvester on April 18, 2011, 11:49:01 AM
Any chance that someone will be updating this mod, or at least create a version, so that it will integrate FlashChat 6.0.8 with SMF 1.1.13? 

My newest server runs php 5.3.5 and FC 4.7 doesnt work with it at all it seems. 

FC 6 is pretty awesome compared to FC 4.7   

I would love if someone could help get this accomplished.
Title: Re: FlashChat Integration
Post by: Tyrsson on April 19, 2011, 01:50:59 AM
I will be updating it, and have already started updating the code for most of my mods, however, I will NOT be coding it for the 1.x line of smf, only for smf 2.0.
Title: Re: FlashChat Integration
Post by: Harvester on April 19, 2011, 11:06:47 AM
I would actually be careful of this chat program. I was looking for a solution for this and sadly I must report that my flashchat 6.0.8 was compromised yesterday. Somehow someone was able to get into and remove me from admin and kick and ban other members out of the room.

Needless to say I deleted my copy of FC and will not be installing it again.
Title: Re: FlashChat Integration
Post by: Tyrsson on April 19, 2011, 12:15:23 PM
And that is the very reason it takes so long to do this type of mod, you have to review the code and make sure there is no holes, I will check into it and will post back when I figure out what the issue is.
Title: Re: FlashChat Integration
Post by: mibodega on April 21, 2011, 07:11:59 PM
I bought this Mod and I have 1 question, Is it compatible with SMF 2.0 RC5?
Title: Re: FlashChat Integration
Post by: Kindred on April 21, 2011, 09:41:33 PM
bought?   The mod for integration is free, as far as I know...   and again, as far as I know.. no, this mod will not work with 2.0RC5 at the moment.

That being said, Flashchat itself worked with 2.0RC3, so it should continue to work with 2.0RC5...   just no in-board integration (like a menu item or "who is in chat" section on the board index)
Title: Re: FlashChat Integration
Post by: Tyrsson on April 21, 2011, 11:26:27 PM
The Mod is free, although I have not had time to complete upgrading it, and as you can see from the previous post by Harvester, the mod will be upgraded, however, the question whether it will be updated to work with the new version of flashchat, well.... The security questions will have to be sorted first and as flashchat will not allow me modifying the source code or distributing any modification to their code, and I can not, and will not, open a hole in smf via the integration with flashchat I can only wait and see if the issue will be addressed by tufat (which I doubt).
Title: Re: FlashChat Integration
Post by: Angie on Dialysis on May 04, 2011, 07:43:10 AM
Quote from: Tyrsson™ on April 21, 2011, 11:26:27 PM
The Mod is free, although I have not had time to complete upgrading it, and as you can see from the previous post by Harvester, the mod will be upgraded, however, the question whether it will be updated to work with the new version of flashchat, well.... The security questions will have to be sorted first and as flashchat will not allow me modifying the source code or distributing any modification to their code, and I can not, and will not, open a hole in smf via the integration with flashchat I can only wait and see if the issue will be addressed by tufat (which I doubt).

I look forward to when it eventually will be combatible with the latest version of FlashChat as I have SMF 1.1.13 but our host upgraded php so we were forced to also have to go to the latest version of FlashChat. At that time the integration broke. We didn't know what we were doing wrong. The host tech support kept saying it was something we were doing wrong..
Title: Re: FlashChat Integration
Post by: Tyrsson on May 05, 2011, 06:02:40 PM
That issue can be worked around, as far as the php needing to be upgraded. The chat app itself does not handle backwards compatibility very well iirc. Its been awhile since I looked at it. I will try to check into that in the next day or so and see if I can post the edits to fix it.
Title: Re: FlashChat Integration
Post by: Sandmansa on May 05, 2011, 09:26:01 PM
Quote from: Tyrsson™ on May 05, 2011, 06:02:40 PM
That issue can be worked around, as far as the php needing to be upgraded. The chat app itself does not handle backwards compatibility very well iirc. Its been awhile since I looked at it. I will try to check into that in the next day or so and see if I can post the edits to fix it.

I really would appreciate any insites you may have.
Title: Re: FlashChat Integration
Post by: Angie on Dialysis on May 05, 2011, 10:56:25 PM
Quote from: Tyrsson™ on May 05, 2011, 06:02:40 PM
That issue can be worked around, as far as the php needing to be upgraded. The chat app itself does not handle backwards compatibility very well iirc. Its been awhile since I looked at it. I will try to check into that in the next day or so and see if I can post the edits to fix it.

Sandman is the one who helps me with my site which I need this for. He hasn't had much luck and any help or insights you can give will be great! Look forward to the edits when you post them! Thx :)
Title: Re: FlashChat Integration
Post by: Kat9119 on May 06, 2011, 04:05:55 PM
Flashchat is nice and pretty looking, but a royal pain in the butt when it comes to integrating within SMF.

I haven't upgraded to the latest chat from 5 (which was discontinued but works perfectly fine for me) because you can't have the menu items of how many is in chat and who's in chat. When I did try to upgrade and lost that menu my members did nothing but complain and rarely people ever even went into the chat room because they couldn't see who was there.

When I downgraded Flashchat to 4, or upgraded to 6 I had no menu and my users kept getting kicked out randomly from the chat room. There was nothing but issues, and no support. The Flashchat support team is really lacking. You almost never get help for anything there.

Oh and forget banning people there. You can change their password & email address, ban them via SMF, and they still aren't banned. Heck you can DELETE their username and they can still get in. The only way to ban is by IP (if their IP doesn't change) and sticking that in an .htaccess file within the directory that you have the chat installed.

Its a shame there isn't another sort of chat that is as "nice" looking as this one, that can have the menu, cause I'd switch in a heartbeat.
Title: Re: FlashChat Integration
Post by: Angie on Dialysis on May 07, 2011, 04:45:10 AM
Quote from: Kat9119 on May 06, 2011, 04:05:55 PM
Flashchat is nice and pretty looking, but a royal pain in the butt when it comes to integrating within SMF.

I haven't upgraded to the latest chat from 5 (which was discontinued but works perfectly fine for me) because you can't have the menu items of how many is in chat and who's in chat. When I did try to upgrade and lost that menu my members did nothing but complain and rarely people ever even went into the chat room because they couldn't see who was there.

When I downgraded Flashchat to 4, or upgraded to 6 I had no menu and my users kept getting kicked out randomly from the chat room. There was nothing but issues, and no support. The Flashchat support team is really lacking. You almost never get help for anything there.

Oh and forget banning people there. You can change their password & email address, ban them via SMF, and they still aren't banned. Heck you can DELETE their username and they can still get in. The only way to ban is by IP (if their IP doesn't change) and sticking that in an .htaccess file within the directory that you have the chat installed.

Its a shame there isn't another sort of chat that is as "nice" looking as this one, that can have the menu, cause I'd switch in a heartbeat.

Wow sounds like you had more issues than us! Yeah it no longer says how many are in chat but my members aren't complaining about that because they are just glad chat is back as I said it might never be lol! I would not have upgraded neither but my host gave me no choice. My host tried to say our errors were because they upgraded php and our chat was not compatible. Turns out it was but the integration mod wasn't .. I guess ..

Well it was fine til our host said we had to upgrade. Then when we couldn't get things working with the old one our host went ahead and put in the new (6) chat himself .. so yeah .. we had no choice. So now we are looking toward the day when integration will be updated and we can use it again. :) Don't really want to use Ajax even though it seems to be easier to make it work. We paid for FlashChat and kinda want to use what we paid. ;)
Title: Re: FlashChat Integration
Post by: Tyrsson on May 14, 2011, 02:26:51 PM
The real issue here is the within the old version of chat they are using functions that are deprecated = can no longer be used. I remember seeing this problem with a few sites when users first started upgrading to php5. As php evolves the scripts that are coded in it must also evolve and new solutions have to be programmed and the code has to be updated to use the new functions that are then available to replace the old more or less.

This mod will be updated, however, please keep in mind that I have to read over all the security reports that exist for flashchat 6, and there are many from what I have been seeing. I have a responsibility to every user of this mod to not introduce a security issue into smf due to bridging it with flashchat. It takes time.
Title: Re: FlashChat Integration
Post by: Angie on Dialysis on May 14, 2011, 02:51:53 PM
Quote from: Tyrsson™ on May 14, 2011, 02:26:51 PM
The real issue here is the within the old version of chat they are using functions that are deprecated = can no longer be used. I remember seeing this problem with a few sites when users first started upgrading to php5. As php evolves the scripts that are coded in it must also evolve and new solutions have to be programmed and the code has to be updated to use the new functions that are then available to replace the old more or less.

This mod will be updated, however, please keep in mind that I have to read over all the security reports that exist for flashchat 6, and there are many from what I have been seeing. I have a responsibility to every user of this mod to not introduce a security issue into smf due to bridging it with flashchat. It takes time.

That makes sense to me Tyrsson™. Thanks for explaining it to me. Sounds like my host was correct when he was talking about something being deprecated but I didn't understand when he explained it. I await the time when we can use this again. Glad to hear you will be doing it but it will just take time. I can wait now that I know what I am waiting for. Thanks :)
Title: Re: FlashChat Integration
Post by: pevanis on July 02, 2011, 02:13:20 PM
Quote from: Tyrsson™ on May 14, 2011, 02:26:51 PM
The real issue here is the within the old version of chat they are using functions that are deprecated = can no longer be used. I remember seeing this problem with a few sites when users first started upgrading to php5. As php evolves the scripts that are coded in it must also evolve and new solutions have to be programmed and the code has to be updated to use the new functions that are then available to replace the old more or less.

This mod will be updated, however, please keep in mind that I have to read over all the security reports that exist for flashchat 6, and there are many from what I have been seeing. I have a responsibility to every user of this mod to not introduce a security issue into smf due to bridging it with flashchat. It takes time.
I Was paid for FlashChat v 4.7.12 3 years ago and it's worked very good on SMF1.*.*.
Can i have running  FlashChat v 4.7.12 on SMF2

1.) Version of flashchat you are using. - FlashChat v 4.7.12
2.) Version of SMF you are using.         - SMF 2.0
3.) Link to your forum.
4.) Any errors you have encountered.  - Fatal error: Cannot redeclare dologin() (previously declared in /home/bdsmhrva/public_html/Sources/LogInOut.php:467) in /home/bdsmhrva/public_html/chat/admin/login.php on line 13
  - I have login screen but after login only blank screen with theme picture

Title: Re: FlashChat Integration
Post by: digit on July 04, 2011, 02:41:57 AM
Quote from: Harvester on April 19, 2011, 11:06:47 AM
I would actually be careful of this chat program. I was looking for a solution for this and sadly I must report that my flashchat 6.0.8 was compromised yesterday. Somehow someone was able to get into and remove me from admin and kick and ban other members out of the room.

Needless to say I deleted my copy of FC and will not be installing it again.

Thanks for the heads up - I was reinstalling this - after a blank screen popped up - probably due to a php upgrade, but after reading this - and I believe it to be true,  I am discontinuing use of Flashchat - and will hope a nice - similar looking and functioning - chat comes along soon.
Title: Re: FlashChat Integration
Post by: mrselnombre on July 04, 2011, 06:36:29 AM
Quote from: pevanis on July 02, 2011, 02:13:20 PM
I Was paid for FlashChat v 4.7.12 3 years ago and it's worked very good on SMF1.*.*.
Can i have running  FlashChat v 4.7.12 on SMF2

1.) Version of flashchat you are using. - FlashChat v 4.7.12
2.) Version of SMF you are using.         - SMF 2.0
I have the same, but my chat works fine. There was a new "patch" on the flashchat forum to get it to work with smf2.

i just can't integrate it into the forum until this mod is updated.
Title: Re: FlashChat Integration
Post by: Sandmansa on July 04, 2011, 10:58:02 PM
Quote from: digit on July 04, 2011, 02:41:57 AM
I was reinstalling this - after a blank screen popped up - probably due to a php upgrade,

Probably?  No, your assumption is accurate.  The newest version of php is causing this.
Title: Re: FlashChat Integration
Post by: digit on July 05, 2011, 12:48:15 AM
Quote from: Sandmansa on July 04, 2011, 10:58:02 PM
Quote from: digit on July 04, 2011, 02:41:57 AM
I was reinstalling this - after a blank screen popped up - probably due to a php upgrade,

Probably?  No, your assumption is accurate.  The newest version of php is causing this.

Thanks.  Is there a fix?
Title: Re: FlashChat Integration
Post by: Sandmansa on July 05, 2011, 09:45:37 PM
As of yet?  Not to my knowledge.  I am still waiting on the patch myself.

There is a workaround for this problem but for most people who rent servers, it's only a dream.  For those who host their own servers, it's not really a wise decision.  That would be, downgrade your php software.

Otherwise, just keep bumping this thread and wait patiently. Someone will figure out how to fix this plugin.... eventually.
Title: Re: FlashChat Integration
Post by: arreferee on July 31, 2011, 07:36:52 PM
So, is this something that FlashChat needs to fix?
Title: Re: FlashChat Integration
Post by: Tyrsson on July 31, 2011, 10:52:16 PM
Well if flashchat would include a compat.php file and include the function and surround the call to the function with a check to see if it exist, and if not load it from the compat file, or code a custom function to replace the functionality of the function that has been deprecated. It would then be a none issue. I am looking for someone to take this mod over that has time to recode it, as I have started my own project and it will be a minute before I find time to recode this mod. If no new developer has been found soon the mod will be archived due to my current lack of time to update it.

-Tyrsson
Title: Re: FlashChat Integration
Post by: studiowi33 on July 31, 2011, 11:40:34 PM
I used to use FlashChat, but like so many others, it wasn't worth the time spent troubleshooting. I now use prochatrooms and am more than happy with the product.
No, it isn't FlashChat. Thank gawd.

-s.w
Title: Re: FlashChat Integration
Post by: mrselnombre on August 16, 2011, 04:33:15 AM
i don't want to buy another chat program, i like flashchat. We've not had any problems with it either!
Title: Re: FlashChat Integration
Post by: razors edge on December 09, 2011, 08:19:19 AM
I have been able to get Flashchat v6 working with my smf 2.0.1

Has their been anyone who has taken over this project? Currently everythign works on the site except for auto login, the database is integrated but when a person clicks the chat button it takes them to the login page where they must enter the username and password. They are the same username and password as the forum but they must still enter them. Any ideas how to get auto login to work?

Title: Re: FlashChat Integration
Post by: studiowi33 on December 09, 2011, 08:31:22 AM
Quote from: razors edge on December 09, 2011, 08:19:19 AM
I have been able to get Flashchat v6 working with my smf 2.0.1

Has their been anyone who has taken over this project? Currently everythign works on the site except for auto login, the database is integrated but when a person clicks the chat button it takes them to the login page where they must enter the username and password. They are the same username and password as the forum but they must still enter them. Any ideas how to get auto login to work?
To bypass the chat log in, make sure u use the http://YOUR_SITE.com/chat/flashchat.php
address in your link.

hth

-s.w
Title: Re: FlashChat Integration
Post by: Tyrsson on December 09, 2011, 10:03:18 PM
I have not found anyone to further the development of this mod, and at this point in time I have no idea when I will have the time to update it. I am just way to busy at work and it is not going to get any better in the near future. Maybe after the new year I might find time to update it if no one takes up the development before then.
Title: Re: FlashChat Integration
Post by: punjabizone on December 24, 2011, 07:30:07 PM
hello  today they release smf 2.0.2 nd i updated it i never install this mod on my 2.0.1 i want to install this mod please help i already have flash chat install flash chat verison  6.0.8 and its paid version
Title: Re: FlashChat Integration
Post by: Matthew K. on December 24, 2011, 08:08:13 PM
FlashChat has always been paid, so of course it's a paid version. This modification however is written by a volunteer (we're all volunteers), meaning it's free; and the author has not updated it to support SMF 2.0.* at this point, meaning you'll have to wait.
Title: Re: FlashChat Integration
Post by: punjabizone on December 24, 2011, 08:46:58 PM
ohhh but my freind using smf 2.01 he also have the same version as mine he added chat menu to the menu bar i don't know how he added if author has not updated to 2.0 version 
Title: Re: FlashChat Integration
Post by: Matthew K. on December 24, 2011, 08:48:39 PM
It's possible to integrate FlashChat with SMF 2.0.2, although it's a fairly difficult process; which I have done three times.
Title: Re: FlashChat Integration
Post by: punjabizone on December 25, 2011, 12:40:55 AM
ohh u try three time can u tell me how i can do it or its better to wait
Title: Re: FlashChat Integration
Post by: Matthew K. on December 25, 2011, 12:56:39 AM
I didn't try, I was successful all "attempts" to integrate the two softwares together. I would suggest waiting until someone has more time to look into integrating without such hackish methods.
Title: Re: FlashChat Integration
Post by: punjabizone on December 25, 2011, 01:03:04 AM
ok i will wait i want to contact the author who make this mod do u have his email
Title: Re: FlashChat Integration
Post by: Tyrsson on December 25, 2011, 03:30:35 AM
You dont have to email me, although I did not originally create it, but I am the one currently handling its development and to be honest it will be awhile before I have time to update it. Currently my time is very limited due to work and my current projects. I am looking for a developer to take over the development so that it can be updated. I will post as soon as I find one.
Title: Re: FlashChat Integration
Post by: punjabizone on December 25, 2011, 04:48:16 AM
okay thanks sir i will be waiting for that
Title: Re: FlashChat Integration
Post by: [Lucien] on December 26, 2011, 09:08:34 AM
Would it be possible to make a page without this mod ? (www.mysite.com/index.php?action=chat)

So that it's shown on that page within the forum?
Title: Re: FlashChat Integration
Post by: Realinfo on January 16, 2012, 09:55:01 PM
I tried on 2.0.2

1.    Extract File    ./Sources/Chat.php    
   2.    Extract File    ./Themes/default/Chat.template.php    
   3.    Extract File    ./dologout.php    
*    4.    Execute Modification    ./index.php    Test successful
*    5.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
*    6.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
*    7.    Execute Modification    ./Sources/Admin.php    Test failed
      1.    Replace    ./Sources/Admin.php    Test successful
      2.    Add After    ./Sources/Admin.php    Test failed
*    8.    Execute Modification    ./Sources/ManageSettings.php    Test successful
*    9.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Add After    ./Sources/Subs.php    Test failed
      2.    Add Before    ./Sources/Subs.php    Test successful
      3.    Add After    ./Sources/Subs.php    Test successful
*    10.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
      1.    Add After    ./Themes/default/BoardIndex.template.php    Test successful
      2.    Replace    ./Themes/default/BoardIndex.template.php    Test failed
*    11.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Add Before    ./Themes/default/index.template.php    Test failed
   12.    Execute Modification    ./chat/inc/cmses/smfCMS20.php    File not found
   13.    Execute Modification    ./chat/inc/flashChatTag.php    File not found



So is there any hope to get this mod on my 2.0.2.............
Title: Re: FlashChat Integration
Post by: Matthew K. on January 16, 2012, 10:00:20 PM
Quote from: Realinfo on January 16, 2012, 09:55:01 PM
I tried on 2.0.2

1.    Extract File    ./Sources/Chat.php    
   2.    Extract File    ./Themes/default/Chat.template.php    
   3.    Extract File    ./dologout.php    
*    4.    Execute Modification    ./index.php    Test successful
*    5.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
*    6.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
*    7.    Execute Modification    ./Sources/Admin.php    Test failed
      1.    Replace    ./Sources/Admin.php    Test successful
      2.    Add After    ./Sources/Admin.php    Test failed
*    8.    Execute Modification    ./Sources/ManageSettings.php    Test successful
*    9.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Add After    ./Sources/Subs.php    Test failed
      2.    Add Before    ./Sources/Subs.php    Test successful
      3.    Add After    ./Sources/Subs.php    Test successful
*    10.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
      1.    Add After    ./Themes/default/BoardIndex.template.php    Test successful
      2.    Replace    ./Themes/default/BoardIndex.template.php    Test failed
*    11.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Add Before    ./Themes/default/index.template.php    Test failed
   12.    Execute Modification    ./chat/inc/cmses/smfCMS20.php    File not found
   13.    Execute Modification    ./chat/inc/flashChatTag.php    File not found



So is there any hope to get this mod on my 2.0.2.............
Since you've not read the past couple posts, the short answer is: no, not until someone updates it. It's NOT compatible with your version.
Title: Re: FlashChat Integration
Post by: Realinfo on January 27, 2012, 12:39:42 AM
No one can update this mod for 2.0.2............... is there any other Mod somewhat like that for 2.0.2
Title: Re: FlashChat Integration
Post by: punjabizone on January 28, 2012, 01:01:33 AM
yeah i am also waiting for like 2 months to someone update this mod
Title: Re: FlashChat Integration
Post by: hcvshare on February 05, 2012, 01:42:20 AM
I'll take a stab at getting an integration mod ported to SMF 2.01 and FlashChat 6.08.

Questions to help me:
1. It says the current mod only works for Flashchat 4.7.12, is this correct?  No update has been made for 6.0x yet?
2. Does the mod work with the SMF 2.x RC's as stated?

If these are correct, it appears the tasks will be:
1. setup a sandbox with known working latest versions.
2. update integration mod to work with flashchat 6.08.
3. update integration mod to work with SMF 2.01.

Does that sound about right?

Regards,
Tim
Title: Re: FlashChat Integration
Post by: Matthew K. on February 05, 2012, 04:02:20 PM
SMF 2.0.2 is now released. Basically, the whole modification should be re-written. I might take a crack at it if people would be willing to make donations for the time spent?
Title: Re: FlashChat Integration
Post by: Tyrsson on February 05, 2012, 10:39:45 PM
Quote from: hcvshare on February 05, 2012, 01:42:20 AM
I'll take a stab at getting an integration mod ported to SMF 2.01 and FlashChat 6.08.

Questions to help me:
1. It says the current mod only works for Flashchat 4.7.12, is this correct?  No update has been made for 6.0x yet?
2. Does the mod work with the SMF 2.x RC's as stated?

If these are correct, it appears the tasks will be:
1. setup a sandbox with known working latest versions.
2. update integration mod to work with flashchat 6.08.
3. update integration mod to work with SMF 2.01.

Does that sound about right?

Regards,
Tim
@hcvshare

How much programming experience do you have? Doing bridges like this can be a fairly in-depth thing, since you need to do the research to make sure there is no vulnerabilities in the new version of Flashchat or you could be opening a hole into users SMF installs. Which, is the precise reason I have not had time to update the mod... The reason I ask is that I want to make sure whoever takes over the mod has the experience to handle its updating.
Title: Re: FlashChat Integration
Post by: Realinfo on February 06, 2012, 04:16:37 AM
Waiting to get this mod on 2.0.2..............
Title: Re: FlashChat Integration
Post by: MESWEB on May 16, 2012, 07:37:39 AM
Updated version to 2.0.2 can anyone test this update??
I have XP 64 Pro + Xampp beta and I need restart winsock  to reboot every couple days.
Title: Re: FlashChat Integration
Post by: Matthew K. on May 16, 2012, 11:49:12 AM
Did you test it with the latest version of FlashChat, too?
Title: Re: FlashChat Integration
Post by: MESWEB on May 16, 2012, 12:12:31 PM
No I only update installation
Installation FlashChat 6.0.8 On MySql version 5.3.x and higher is not possible:
Could not create DB table 'smf_fc_bans'
You  have an error in your SQL syntax; check the manual that corresponds to  your MySQL server version for the right syntax to use near '(14) NOT  NULL, userid int(11) default NULL, banneduserid int(11) default NULL, r'  at line 1
Title: FlashChat Integration
Post by: pevanis on May 18, 2012, 05:39:46 AM
Quote from: pevanis on July 02, 2011, 02:13:20 PM
Quote from: Tyrsson™ on May 14, 2011, 02:26:51 PM
The real issue here is the within the old version of chat they are using functions that are deprecated = can no longer be used. I remember seeing this problem with a few sites when users first started upgrading to php5. As php evolves the scripts that are coded in it must also evolve and new solutions have to be programmed and the code has to be updated to use the new functions that are then available to replace the old more or less.

This mod will be updated, however, please keep in mind that I have to read over all the security reports that exist for flashchat 6, and there are many from what I have been seeing. I have a responsibility to every user of this mod to not introduce a security issue into smf due to bridging it with flashchat. It takes time.
I Was paid for FlashChat v 4.7.12 3 years ago and it's worked very good on SMF1.*.*.
Can i have running  FlashChat v 4.7.12 on SMF2

1.) Version of flashchat you are using. - FlashChat v 4.7.12
2.) Version of SMF you are using.         - SMF 2.2
3.) Link to your forum.
4.) Any errors you have encountered.  - Fatal error: Cannot redeclare dologin() (previously declared in /home/bdsmhrva/public_html/Sources/LogInOut.php:467) in /home/bdsmhrva/public_html/chat/admin/login.php on line 13
  - I have login screen but after login only blank screen with theme picture
Title: Re: FlashChat Integration
Post by: Matthew K. on May 23, 2012, 02:36:11 AM
Would anyone be willing to donate for an updated version of this modification that worked on the latest version of FlashChat and SMF?
Title: Re: FlashChat Integration
Post by: MESWEB on May 23, 2012, 04:42:16 PM
Quote from: dooie on May 23, 2012, 10:00:27 AM
I tried this with SMF 2.0.2 and FlashChat 6.0.8 and there were two errors...
*    11.    Execute Modification    ./Themes/default/index.template.php    Test failed
When I find free time for me then I correct this code
Quote from: dooie on May 23, 2012, 10:00:27 AM
*    13.    Execute Modification    ./chat/inc/flashChatTag.php    Test failed
This file is required before You Install this mod. That's mean You need install Flash Chat befor install this mod.
Title: Re: FlashChat Integration
Post by: dooie on June 02, 2012, 01:53:59 PM
I reinstalled my old Flashchat version 4.7.12 and then tried the mod again. Everything came up fine except  Execute Modification    ./Themes/default/index.template.php    Test failed

I ignored the error and proceeded.

In ./Themes/default/index.template.php create following edits

find
// Save a session so it wont loop
$_SESSION['unread_sound'] = $context['user']['unread_messages'];
}


add after
// --- Begin FlashChat Integration ---
// Do we need to display a list of the users in the chat?
// Are there users online?
if (!empty($modSettings['fc_showUsers']) && !empty($context['users_chat']))
echo '
', $txt['fc_users_online'], ': ', implode(', ', $context['list_users_chat']), '<br />';
// --- End FlashChat Integration ---



It is now fully integrated in SMF 2.0.2 but I do not have the functionality of (Number of users on Chat menu button).

Does anyone know how to get the number of users on the chat button working in this SMF version with default theme (Curve)?

Cheers.
Title: Re: FlashChat Integration
Post by: dooie on June 03, 2012, 01:00:57 AM
Quote from: MESWEB on May 16, 2012, 07:37:39 AM
Updated version to 2.0.2 can anyone test this update??
I have XP 64 Pro + Xampp beta and I need restart winsock  to reboot every couple days.

I uninstalled the other version that required an emulator.
I installed your version for SMF 2.0.2 and it worked like a charm. You still need FlashChat version 4.7.12 though for proper integration. FlashChat 6.0.8 will not work with this mod.
I still have the same issue as before however, the (Show number of users on Chat button?) still does not work with the default theme of SMF 2.0.2
The other FlashChat Configuration settings in admin panel do work.

Could someone work on getting the (Show number of users on Chat button?) feature working for this default theme.

Cheers.
Title: Re: FlashChat Integration
Post by: Realinfo on June 03, 2012, 04:02:49 AM
12.    Execute Modification    ./chat/inc/cmses/smfCMS20.php    File not found
   13.    Execute Modification    ./chat/inc/flashChatTag.php    File not found


How this issue can be solved..............
Title: Re: FlashChat Integration
Post by: dooie on June 03, 2012, 11:49:19 AM
***IMPORTANT***  A quick few things before you start.

This is FlashChat 4.7.12 install and integration instructions for SMF 2.0.2 in Default theme (Curve) only. Download FlashChat ver. 4.7.12 from www.tufat.com

You need to remove all the old Flashchat files from your database from previous installations before you start or this will not work.
***First create a database backup***
In your Control Panel/Databases/PhPMyAdmin/"YourDatabaseName"  go to your Structure tab and select all files with the prefix smf_fc_
go to the bottom of the page and select "Drop" you will be asked for confirmation to delete these database files.

upload via FTP, FlashChat version 4.7.12 in Binary Mode Only into your Forum directory. After installation you need to add more files.

Once you have successfully installed FlashChat 4.7.12, you need to upload the following to your chat directory to change the needed files. attached file FlashChat4712.rar will add ./chat/inc/cmses/smfCMS20.php and other required files.

After FlashChat has been successfully installed go to ./chat/inc/cmses/ and remove everything except the following files...
./chat/inc/cmses/.htaccess
./chat/inc/cmses/smfCMS.php
./chat/inc/cmses/smfCMS2.php
./chat/inc/cmses/smfCMS20.php


A word of Caution, some of the included CMS integration files in ./cmses had a backdoor vulnerability which is why it is important to remove them after successful install. Especially files for aedating.

After Flashchat has been fully installed, you can use the Integration mod for SMF 2.0.2 provided by MESWEB with the file named FlashChatSMF_v2.1.2.zip attached below.

This all worked for me, just make sure you follow all the steps.

Cheers.
Title: Re: FlashChat Integration
Post by: Realinfo on June 03, 2012, 11:10:11 PM
13.    Execute Modification    ./chat/inc/flashChatTag.php    File not found
From where we get above file.............
Title: Re: FlashChat Integration
Post by: dooie on June 04, 2012, 12:34:53 AM
Quote from: Realinfo on June 03, 2012, 11:10:11 PM
13.    Execute Modification    ./chat/inc/flashChatTag.php    File not found
From where we get above file.............
You get it from a fully installed FlashChat version 4.7.12. If you have error 13.    Execute Modification    ./chat/inc/flashChatTag.php    File not found, you have not installed the FlashChat before executing the integration modification.

If you follow all of my instructions to the letter in my previous post, it will work for you. You had Version 6.0.8 of FlashChat installed, if you did not drop the smf_fc_ database files and the whole chat directory for the previous version before installing FC 4.7.12, this will not work.

It worked for me and I had everything you had before today.

Cheers.
Title: Re: FlashChat Integration
Post by: Realinfo on June 04, 2012, 04:01:26 AM
Ok.............. and that Flash Chat I need to BUY first in $5.............. and then this 2.1.2 MOD can help me in integration..............
Title: Re: FlashChat Integration
Post by: dooie on June 04, 2012, 11:47:24 AM
Quote from: Realinfo on June 04, 2012, 04:01:26 AM
Ok.............. and that Flash Chat I need to BUY first in $5.............. and then this 2.1.2 MOD can help me in integration..............

Yes, that is correct.
Title: Re: FlashChat Integration
Post by: Sandmansa on June 04, 2012, 08:52:29 PM
I don't suppose SMF 1.1 will get the same treatment?  ie: updated plugin.
Title: Re: FlashChat Integration
Post by: Matthew K. on June 04, 2012, 08:53:29 PM
I am actually considering updating this within the next couple weeks, assuming Tyrsson is still okay with that.
Title: Re: FlashChat Integration
Post by: Sandmansa on June 04, 2012, 09:01:33 PM
One more question.  Does flashchat 4.7.12 work with the latest version of php?  Because I was informed by my host that it won't and they forced me to update my flashchat to 6.0.8.
Title: Re: FlashChat Integration
Post by: Matthew K. on June 04, 2012, 09:03:10 PM
I'm not sure...you'd be better off addressing that question in the Tufat community.
Title: Re: FlashChat Integration
Post by: Sandmansa on June 04, 2012, 09:10:31 PM
Oh yeah..... them.  I would have better luck finding Jimmy Hoffa over there before any Tufat staff.  LOL  Thanks anyway.
Title: Re: FlashChat Integration
Post by: Matthew K. on June 04, 2012, 09:13:09 PM
Tufat staff have always been helpful to me...I wish you luck :)
Title: Re: FlashChat Integration
Post by: dooie on June 04, 2012, 10:20:16 PM
I do not know what the latest version of PHP is, but my server is running PHP version 5.2.17 with a Build Date of Jan 21 2012 02:24:36 and FlashChat version 4.7.12 runs without issue on my forum.

Cheers.
Title: Re: FlashChat Integration
Post by: Sandmansa on June 04, 2012, 10:45:46 PM
Please correct me if I am wrong but I believe the latest version of PHP is v5.3.6.  At least, that is what is on my server anyway.
Title: FlashChat integration (number of users on Chat button not working)
Post by: dooie on June 24, 2012, 05:13:17 PM
I am running SMF 2.0.2 Default Curve theme with FlashChat version 4.7.12. I tried it in Core Theme as well and still not working. Is there something with the coding that is preventing this from behaving the way it should?
I have integrated FlashChat with the integration mod but I am curious why even though the code is there in the menu to display the number of users in the chat on the chat button in the menu bar. Instead of just saying "Chat", it should say something like "Chat [2 Users]" (assuming 2 users are in the chat) however this is not working while members are in chat.

The code in the menu is this
//Start FlashChat integration
'chat' => array(
    'title' => $txt['fc_chat'],
    'href' => $scripturl . '?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), '>', $txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' . $context['num_chat'] . ' ' . ($context['num_chat'] == 1 ? $txt['user'] : $txt['users']) . '</strong>]' : ''),
    'show' => !$user_info['is_guest'],
         'sub_buttons' => array(
    ),
),
//End FlashChat integration


This is in Subs.php

Attached is my Subs.php file if someone who understands coding can explain why the number of users is not working.
This would be greatly appreciated as most of the chat users do not use the Welcome User drop down so there is no visible indication that anyone is in chat.

If possible, I would really like to integrate a flashing icon such as a small animated gif next to the chat button when someone is in the chat room.

Any help will be greatly appreciated!

Cheers.
Title: Re: FlashChat Integration
Post by: dooie on June 28, 2012, 07:07:11 PM
Anyone?
Title: Re: FlashChat Integration
Post by: Kat9119 on June 28, 2012, 10:31:00 PM
Quote from: dooie on June 28, 2012, 07:07:11 PM
Anyone?

Have you tried using FlashChat 6 and using these directions?
http://forum.tufat.com/showthread.php?t=80167

I'm in the process of upgrading to a fresh install of 2.0.2 and my users love the chat, and rely on the # in the top menu, so I hope it works!
Title: Re: FlashChat Integration
Post by: dooie on June 28, 2012, 11:46:21 PM
Quote from: Kat9119 on June 28, 2012, 10:31:00 PM
Quote from: dooie on June 28, 2012, 07:07:11 PM
Anyone?

Have you tried using FlashChat 6 and using these directions?
http://forum.tufat.com/showthread.php?t=80167

I'm in the process of upgrading to a fresh install of 2.0.2 and my users love the chat, and rely on the # in the top menu, so I hope it works!


Yes, I did try Sebastian's method first after upgrading and it did not work so I went back to my original FlashChat 4.7.12 and used the integration tool here with the emulator and got it to work. I just cant get the # of users on the top menu to work with the code included. That is the one thing left for this to work completely for me.

Cheers.
Title: Re: FlashChat Integration
Post by: Kat9119 on June 29, 2012, 10:09:52 AM
Quote from: dooie on June 28, 2012, 11:46:21 PM
Quote from: Kat9119 on June 28, 2012, 10:31:00 PM
Quote from: dooie on June 28, 2012, 07:07:11 PM
Anyone?

Have you tried using FlashChat 6 and using these directions?
http://forum.tufat.com/showthread.php?t=80167

I'm in the process of upgrading to a fresh install of 2.0.2 and my users love the chat, and rely on the # in the top menu, so I hope it works!


Yes, I did try Sebastian's method first after upgrading and it did not work so I went back to my original FlashChat 4.7.12 and used the integration tool here with the emulator and got it to work. I just cant get the # of users on the top menu to work with the code included. That is the one thing left for this to work completely for me.

Cheers.

Hum, I wonder if I'll have the same issue then, probably. I don't think the chat button with # of users has worked for a long long time because I remember having to use someone's code edits listed here a couple years ago.

So it shows people in chat listed at the bottom of your forum? What version did you emulate? I'm curious because I'm going to have to try these in a couple days, and I know nothing about editing codes myself lol.
Title: Re: FlashChat Integration
Post by: dooie on June 29, 2012, 02:35:05 PM
Hi Kat,

Try it this way,

***IMPORTANT***  A quick few things before you start.

This is FlashChat 4.7.12 install and integration instructions for SMF 2.0.2 in Default theme (Curve) only. Download FlashChat ver. 4.7.12 from www.tufat.com

You need to remove all the old Flashchat files from your database from previous installations before you start or this will not work.
***First create a database backup***
In your Control Panel/Databases/PhPMyAdmin/"YourDatabaseName"  go to your Structure tab and select all files with the prefix smf_fc_
go to the bottom of the page and select "Drop" you will be asked for confirmation to delete these database files.

upload via FTP, FlashChat version 4.7.12 in Binary Mode Only into your Forum directory. After installation you need to add more files.

Once you have successfully installed FlashChat 4.7.12, you need to upload the following to your chat directory to change the needed files. attached file FlashChat4712.rar will add ./chat/inc/cmses/smfCMS20.php and other required files.

After FlashChat has been successfully installed go to ./chat/inc/cmses/ and remove everything except the following files...
./chat/inc/cmses/.htaccess
./chat/inc/cmses/smfCMS.php
./chat/inc/cmses/smfCMS2.php
./chat/inc/cmses/smfCMS20.php


A word of Caution, some of the included CMS integration files in ./cmses had a backdoor vulnerability which is why it is important to remove them after successful install. Especially files for aedating.

After Flashchat has been fully installed, you can use the Integration mod for SMF 2.0.2 provided by MESWEB with the file named FlashChatSMF_v2.1.2.zip attached below.

This all worked for me, just make sure you follow all the steps.

Cheers.
Title: Re: FlashChat Integration
Post by: Kat9119 on June 29, 2012, 03:16:37 PM
^ Thank you, I saw that a couple posts up and was going to give it a try when I uploaded my forum. I can't run a test install of Flashchat apparently when doing it on my computer as PHP version fails.

I can't post my new forum up for a little longer. I'm really hoping this works because we have a big event happening in the chat room in two weeks, so I don't have a lot of wiggle room to get it working once I do get the site up. And the event can't be postponed lol.

Quote from: Labradoodle-360 on June 04, 2012, 08:53:29 PM
I am actually considering updating this within the next couple weeks, assuming Tyrsson is still okay with that.

I bet you a lot of people would really appreciate that. I saw your previous posts about donations for working on this. If I had it, I'd gladly fork over some $. Unfortunately I'm a few grand in the hole due to medical bills otherwise I'd definitely help out for this to work properly with 2.0.2
Title: Re: FlashChat Integration
Post by: Matthew K. on June 30, 2012, 11:40:26 PM
Would anyone be interested in a paid FlashChat integration modification? $5.00 bucks a license? For the latest of both SMF and FlashChat?
Title: Re: FlashChat Integration
Post by: Kat9119 on June 30, 2012, 11:59:10 PM
Quote from: Labradoodle-360 on June 30, 2012, 11:40:26 PM
Would anyone be interested in a paid FlashChat integration modification? $5.00 bucks a license? For the latest of both SMF and FlashChat?

As long as it showed the [Chat] button at the top with the # of users next to it, as well as who's in chat at the bottom, I could do $5 via PayPal. Something set up like I already have on my site www.campblood.net/forum

Problem is, I need to have my room working by Fri the 13th for a big event I have in there. Or I need to wait to put my new site up till after so that the old chat still works.
Title: Re: FlashChat Integration
Post by: Matthew K. on July 01, 2012, 12:00:00 AM
With how big my to-do list is right now, I don't think I'd have time to release the modification until early August unless more financial support was offered to move it up on my list.
Title: Re: FlashChat Integration
Post by: Sandmansa on July 01, 2012, 01:29:02 AM
Quote from: Labradoodle-360 on June 30, 2012, 11:40:26 PM
Would anyone be interested in a paid FlashChat integration modification? $5.00 bucks a license? For the latest of both SMF and FlashChat?

Would this also support the latest versions of php as well?  Unfortunately, I'm still using smf 1.1.  I don't suppose you would cover that too?
Title: Re: FlashChat Integration
Post by: Matthew K. on July 01, 2012, 01:36:43 AM
It'd cover SMF 1.1.16+, SMF 2.0.2+, FlashChat (latest version) and it'd be compatible with PHP 4 or PHP 5.
Title: Re: FlashChat Integration
Post by: Sandmansa on July 01, 2012, 05:00:36 PM
I don't know how well you are aware of this but there has been a big change in php somewhere between version 5.1 and 5.3.  And I fear that this is the main reason why this plugin has failed.
Title: Re: FlashChat Integration
Post by: Kat9119 on July 28, 2012, 01:23:08 AM
Quote from: Labradoodle-360 on July 01, 2012, 01:36:43 AM
It'd cover SMF 1.1.16+, SMF 2.0.2+, FlashChat (latest version) and it'd be compatible with PHP 4 or PHP 5.

I'm still interested in this...I haven't uploaded my new forum yet, so I haven't tried the directions above. Know you are busy though from crossing paths in other topics. Curious if you've worked on this at all or if its still far in the future?
Title: Re: FlashChat Integration
Post by: Matthew K. on August 01, 2012, 02:48:16 AM
Still relatively far in the future unless someone wants to fund the development.
Title: Re: FlashChat Integration
Post by: Inti31 on September 13, 2012, 03:28:12 PM
I've tinkered a little bit and it works fine (v6.0.8) - also I implemented the "show count / show active member are in which rooms" into the boardindex (see att'ed picture)

I implemented 2 iframes for showing up this info - just modified info_embedded_user.php (have now 2 more files are called info_embedded_count.php and info_embedded_user.php

you see the chat button only if you are logged in... (see details above)

one stupid question... - is there a way to have an embed tag for pictures?
I want to show pictures inside that flashchat like the way it is possible with the AJAX Chat (which use img tags)

if someone want to try it / to advise me:

alt.epica-forum.de
username: Test
pw:12345678
Title: Re: FlashChat Integration
Post by: Kindred on September 13, 2012, 03:31:46 PM
you'll get support for flashchat itself over at flashchat support. :P

on a side-note,  iframes... ick...
Title: Re: FlashChat Integration
Post by: Inti31 on September 13, 2012, 03:44:38 PM
Quote from: Kindred on September 13, 2012, 03:31:46 PM
on a side-note,  iframes... ick...
you're right - but it is implemented very well - and it is just a testforum...
the chat runs fine without that - as I already mentioned - I've tinkered - and it is a testforum...  8)
Title: Re: FlashChat Integration
Post by: michael H on September 22, 2012, 05:14:44 PM
i am using flash chat on my site and would like to see a update on the mod and would like to see the avatar's pulled from the account to show in flash chat instead of green balls.
Title: Re: FlashChat Integration
Post by: Matthew K. on September 23, 2012, 12:38:14 PM
I think I might eventually rewrite this and release it as a paid modification.
Title: Re: FlashChat Integration
Post by: Sakurachan on September 30, 2012, 04:29:35 PM
I'd love to see this mod rewritten for SMF 1.1 and SMF 2.0.. 5 bucks for a license and up to date
Title: Re: FlashChat Integration
Post by: Tonyvic on September 30, 2012, 05:57:31 PM
Quote from: Labradoodle-360 on September 23, 2012, 12:38:14 PM
I think I might eventually rewrite this and release it as a paid modification.
Yes please, I'd be happy to pay! 8)

Tony
Title: Re: FlashChat Integration
Post by: Sandmansa on October 01, 2012, 07:44:21 PM
I would be willing to contribute $5 for it too.
Title: Re: FlashChat Integration
Post by: Matthew K. on October 01, 2012, 07:58:34 PM
Who said anything about $5.00 bucks? It'd be closer to $10-15.
Title: Re: FlashChat Integration
Post by: Sandmansa on October 01, 2012, 08:01:19 PM
As long as it works as advertised, even that would still be worth it.
Title: Re: FlashChat Integration
Post by: Matthew K. on October 01, 2012, 08:52:15 PM
Dated June 30th, long time ago. Licenses would probably be $10.00.

How dare you even insinuate that I am greedy. You're a loser. Have no appreciation for half the ****** I do.
Title: Re: FlashChat Integration
Post by: Sandmansa on October 01, 2012, 09:03:23 PM
Even though it was about 3 months ago, dooie was right about who said it.  That is why I said, I was in for $5.  That seemed fair enough since flashchat it self is only $5
Title: Re: FlashChat Integration
Post by: Matthew K. on October 01, 2012, 09:05:07 PM
Yeah, I just didn't remember saying $5.00. I'm really not sure what I'm going to charge for it, I think that's exactly why I said $5, in the first place. But I can say it'll be no more than $15, and hopefully closer to $5 than $15. However, my modification will COMPLETELY integrate the chat, and even modify some of the chat system itself.

It'll improve a lot of the integration that even this modification didn't.
Title: Re: FlashChat Integration
Post by: Kindred on October 01, 2012, 09:30:41 PM
Lab...   name calling? Please...
Title: Re: FlashChat Integration
Post by: Matthew K. on October 01, 2012, 09:46:28 PM
First of all, let me say that I am an adult. Just frustrated with the lack of realization people have when it comes to how much work is put into quality products, and people just want everything for free and think someone is greedy if it's not free. What do you mean by "not sticking to my word"? Do you mean by saying the price changed from something I said 3-4 months ago? Things change, just because I said it would be $5.00 months ago, doesn't mean that it's not going to change? That doesn't seem very logical to me.

Please, humor me. How am I being arrogant?
Title: Re: FlashChat Integration
Post by: Matthew K. on October 01, 2012, 09:57:27 PM
From my country it's more of a term used for someone being rude, stupid, or mean. Not liking something someone is doing or saying. Therefore my calling someone a loser who was being idiotic does not make me arrogant. Feel free to think otherwise. Also, 18 = legal adult in my country.
Title: Re: FlashChat Integration
Post by: Kindred on October 01, 2012, 10:05:12 PM
As someone older than both of you...   Knock it off guys.
Title: Re: FlashChat Integration
Post by: Matthew K. on October 01, 2012, 10:07:36 PM
I wasn't showing an offensive attitude of superiority. I don't think you quite understand how offensive what they said was to me...I've spent countless hours (literally) developing free modifications, providing support and so forth. Most don't care and just want more for free.

I am now to the point where I need to start getting paid for some of the products I release, for many reasons. Size, time, and so forth. And I don't think there's anything wrong with that. I've spent years building experience to get where I am now knowledge / skill wise. There shouldn't be anything wrong with occasionally asking to be paid in compensation for a veryy almost insignificant amount of time I've put in and in turn for supporting a VERY little bit financially for all of the time I put into the SMF project and getting a nice quality product in return.

Really, think about it. Now with a little bit of context (not nearly all of it) you should be able to see how offensive his post could be. Showing no regard for all of the time I have sacrificed for this project, for free, not asking anything in return. Losing time with my family, friends, and so forth.
Title: Re: FlashChat Integration
Post by: Kindred on October 02, 2012, 12:28:12 AM
And, as obnoxious as he might be...  THAT was going way beyond obnoxious. Deleted.
Title: Re: FlashChat Integration
Post by: Kindred on October 02, 2012, 12:57:04 AM
Dooie, if you are the age you claim to be, then act your bloody age.
You started in on lab... And while his response was not the most mature, you kept it going as well.

Cut it out.

Also, although it is hardly secret, I removed my name from your post, because your attempt to look clever was merely annoying (and arrogant)
Title: Re: FlashChat Integration
Post by: Sakurachan on October 02, 2012, 03:52:42 AM
Quote from: Kindred on October 02, 2012, 12:28:12 AM
And, as obnoxious as he might be...  THAT was going way beyond obnoxious. Deleted.

He bothered me, so I got him back.
Quote from: dooie on October 02, 2012, 01:06:23 AM
Well I cleaned up my part, anyone else prepared to step up and let this thread be about FlasChat integration and remove extranious posts


Not until you stop arguing over someone being greedy
Title: Re: FlashChat Integration
Post by: Smoky "Rider" Blue on October 02, 2012, 06:12:00 AM
Filling up my mail box with this argument wont work either, it tends to make me show back up too.

Knock it off.. if you want something working decent, pay someone.

If not, then do it yourself.

No offense to anyone but its too early in the am here for me to get on my pc and see a ton of crap on this thread.
Title: Re: FlashChat Integration
Post by: Sakurachan on October 02, 2012, 09:59:15 AM
Quote from: Smoky "Rider" Blue on October 02, 2012, 06:12:00 AM
Filling up my mail box with this argument wont work either, it tends to make me show back up too.

Knock it off.. if you want something working decent, pay someone.

If not, then do it yourself.

No offense to anyone but its too early in the am here for me to get on my pc and see a ton of crap on this thread.

Ignore it?
Also, it's kinda obvious this mod will never be worked on again.
Title: Re: FlashChat Integration
Post by: Smoky "Rider" Blue on October 02, 2012, 10:10:34 AM
Quote from: Joey Smith™ on December 25, 2011, 03:30:35 AM
You dont have to email me, although I did not originally create it, but I am the one currently handling its development and to be honest it will be awhile before I have time to update it. Currently my time is very limited due to work and my current projects. I am looking for a developer to take over the development so that it can be updated. I will post as soon as I find one.

How about this? Anyone froggy enough to take it? some do have it working so, obviously once a new coder picks this mod up, support can go on, if people that do have it working and are paying attention to this thread. Personally, I will not take this. I admire what Joey has done for the mod, and well.. I do wish someone would help this mod out.

cheers!
Title: Re: FlashChat Integration
Post by: Inti31 on October 02, 2012, 01:26:54 PM
to be honest - I think the Ajax Chat fits much better to SMF than the Flashchat v6.0.8


But the flashchat v608 is easy to implement.

1: Use the gz file and restore it into your smf database: http://ul.to/ejaf7z29
Important: the {db_prefix} is smf_fc_
if you use another prefix, rename the 11 tables afterwards - I recommend MySQLDumper for the restore action

2: Download this free flashchat and extract it to the root of your webserver: http://ul.to/fnse3wvk (~23MB)
Then open config.srv.php (is located in chat/temp) and enter your database details like username, dbname, dbpass and prefix (if necessary) (line 8-12)

3: to have a menu (only visible to member) and also viewable how many user are currently in the chat (at the top / in info-center)
Download this (http://ul.to/kb4pehz8) and replace the original files (if you are using a fresh installation) -- else compare the files and copy & paste the little necessary snippets manually.

4 Finally:
open Subs.php and change the link in line 3906 (it includes my old testforum link *sorry*)
for Non-Germans:
open BoardIndex.template.php and enter your tranlsation like "member in chat" in line 356
open info_embedded_user.php (in /chat) and translate it also (line 96, 116)
open info_embedded.php (in /chat) and translate it also (line  96, 117)

Done! Needs just 5 minutes to get it running.
i know - in normal I would use variables for that - but I don't like this chat... - was just to see how I could get it working  :laugh:

Admins in SMF are admins in chat, moderators moderators,...

Last: I am German and modified some tpls... - use the original ones else modify them...

Done! Now you have a working chat with 3 chatrooms (Café, Séparée and Administration (password protected: asdf)

Open now the admin page: http://YourDomain.com/chat/admin and do what you like

How it looks: test.epica-forum.de

use Test / 12345678 to login (normal member account)

cheers Inti31
Title: Re: FlashChat Integration
Post by: Smoky "Rider" Blue on October 02, 2012, 01:54:14 PM
Kindred this is the instructions.. i'd leave it but eh.. if you think you want to remove it  :P

thank you Inti31  8)
Title: Re: FlashChat Integration
Post by: Sakurachan on October 02, 2012, 01:55:27 PM
Plus, FlashChat by Tufat is really buggy and attracts hackers on your site.
Title: Re: FlashChat Integration
Post by: Smoky "Rider" Blue on October 02, 2012, 01:57:38 PM
Anything Flash or Java will do that  ::)

even key words, and images as well as code bits..

the point was it was a good chat application, back in its own day. People still do use it, and if you know how to secure flash, it really is not a big deal.  O:)

Had to edit to include other bits  :-X
Title: Re: FlashChat Integration
Post by: Sakurachan on October 02, 2012, 02:01:03 PM
Quote from: Smoky "Rider" Blue on October 02, 2012, 01:57:38 PM
Anything Flash or Java will do that  ::)

the point was it was a good chat application, back in its own day. People still do use it, and if you know how to secure flash, it really is not a big deal.  O:)

Java and flash both can be exploited, yes. I have seen only Flash Chat used in one big environment and it was pretty stable. I think there was around 100-200 users online at any given time.

I remember the oooollldd flash chat version back in like 2006 or 2007.
Title: Re: FlashChat Integration
Post by: Kindred on October 02, 2012, 02:01:38 PM
whoops... my mistake. I read it quickly and thought you were posting instructions for ajaxchat. :)

mea culpa.


Sakurachan,
evidence?   I have never had a problem with Flashchat attracting hackers... and although there are some issues, every system has some of them and I don't think that describing it as "really buggy" is at all accurate.
Title: Re: FlashChat Integration
Post by: Smoky "Rider" Blue on October 02, 2012, 02:02:40 PM
eh.. hackers and kiddie scripters, I still giggle over.. let them come, it's just more amusing entertainment :P
Title: Re: FlashChat Integration
Post by: Smoky "Rider" Blue on October 02, 2012, 02:04:47 PM
Quote from: Kindred on October 02, 2012, 02:01:38 PM
whoops... my mistake. I read it quickly and thought you were posting instructions for ajaxchat. :)

mea culpa.


Sakurachan,
evidence?   I have never had a problem with Flashchat attracting hackers... and although there are some issues, every system has some of them and I don't think that describing it as "really buggy" is at all accurate.

I never had any issue, other than the occassional blonde moment, and have installed both the FC and mod in many many websites  ;D

Kindred... no biggie.. and I am very happy to see you are still around.. it's been an even longer time than I thought..
Title: Re: FlashChat Integration
Post by: Matthew K. on October 02, 2012, 02:08:15 PM
FlashChat actually has a lot of PHP errors that are covered up by their error reporting value. If I wanted to take the time, I could rewrite the entire PHP side of the chat and then make it more SMF based for the admin panel, layout, etc.
Title: Re: FlashChat Integration
Post by: Sakurachan on October 02, 2012, 02:09:35 PM
You don't need any evidence to know v4 was pretty buggy.
Title: Re: FlashChat Integration
Post by: Smoky "Rider" Blue on October 02, 2012, 02:11:10 PM
Quote from: Labradoodle-360 on October 02, 2012, 02:08:15 PM
FlashChat actually has a lot of PHP errors that are covered up by their error reporting value. If I wanted to take the time, I could rewrite the entire PHP side of the chat and then make it more SMF based for the admin panel, layout, etc.

I think that was Joey's intentions Lab.. but if you have the free time, and can get something working that will pass, I am sure he will turn this mod over to you.. it'd be a welcome relief, I know..  O:)
Title: Re: FlashChat Integration
Post by: Matthew K. on October 02, 2012, 02:17:30 PM
It wouldn't really be that hard, it'd more be an issue of time. Plus as people have already said, they wouldn't want to pay that much for it, and so I wouldn't be even close to compensated for the time I'd put in.

He's already said he'd turn it over to me in the past. Although I've been developing a chat software with one of my buddies which is another reason why I wouldn't want to sink the time in to redeveloping FlashChat on an SMF side. Plus, I'm not even sure if their license would allow for it, would they?
Title: Re: FlashChat Integration
Post by: Smoky "Rider" Blue on October 02, 2012, 02:33:31 PM
not too sure now, been away since ummm a few years now. might head over and check it out.

since you are involved with something else, tho.. maybe someone who really cared about this mod could.. me personally, I don't have the time. My mom died in Jan, and I am glad I have my brother helping me out. I'd love to come back full time, but maybe by next summer, once things are settled. Till then, will try to pop in more.  ;)
Title: Re: FlashChat Integration
Post by: Inti31 on October 02, 2012, 02:40:09 PM
ups.. I won't raise any dicussion for pro & cons about fc - i guess i should remove my little instruction, should I?
Title: Re: FlashChat Integration
Post by: Matthew K. on October 02, 2012, 02:41:45 PM
Feel free to keep your instructions if they're about FlashChat.
Title: Re: FlashChat Integration
Post by: Smoky "Rider" Blue on October 02, 2012, 02:53:53 PM
Inti31, you are good, promise!!

thank you for the instructions, i am sure someone will be able to use them! ;)
Title: Re: FlashChat Integration
Post by: Kindred on October 02, 2012, 03:15:53 PM
yeah, no need to remove the instructions...   my complaint was due to my own confusion... :) It's one of those things that happens as you get older. :P
Title: Re: FlashChat Integration
Post by: uspacheco on November 02, 2012, 04:59:17 PM
Hi !

I'm not a programmer and everything I did on my website was from tutorials and help from forums like this one.
The last thing I wanted to add at my website is a chat.  I've chosen FlachChat 6.0.8 because it is affordable and has a good tutorial.

Everything worked fine during installation and I read a post at TUFAT how to modify some codes to integrate FlashChat with SMF 2.0.2

http://forum.tufat.com/showthread.php?s=27bf10eaff1037a064454aa6f26b3d49&t=80167 (http://forum.tufat.com/showthread.php?s=27bf10eaff1037a064454aa6f26b3d49&t=80167)

I did everything the way it says, but at the end, when I get into flashchat.php and try to login, nothing happens. The login window disappear after clicking on login.

If I try to go to admin.php , I get an error:

Fatal error: Call to a member function next() on a non-object in /hermes/bosoraweb005/b2162/ipg.uspacheco/trades/chat/inc/cmses/smfCMS20.php on line 102


If necessary, I paste some files I've changed :

@smfCMS20.php changed to:

function getRoles($status, $additionalGroups)
{
if($status == 1 || in_array(1, $additionalGroups)) return ROLE_ADMIN;

if($status == 2 || in_array(2, $additionalGroups)) return ROLE_MODERATOR;
if($status == 3 || in_array(3, $additionalGroups)) return ROLE_MODERATOR;

if($status == 0 || ($status > 3 && $status < 99 )) return ROLE_USER;
if(in_array(0, $additionalGroups)) return ROLE_USER;

return null;
}


@smfCMS2.php changed to:

function getRoles($status, $additionalGroups) {

if($status == 1 || in_array(1, $additionalGroups)) return ROLE_ADMIN;

if($status == 2 || in_array(2, $additionalGroups)) return ROLE_MODERATOR;
if($status == 3 || in_array(3, $additionalGroups)) return ROLE_MODERATOR;

if($status == 0 || ($status > 3 && $status < 99 )) return ROLE_USER;
if(in_array(0, $additionalGroups)) return ROLE_USER;

return null;
}


@BoardIndex.template.php  I added this:

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
{
echo '
', sprintf($txt['users_active'], $modSettings['lastActive']), ':<br />', implode(', ', $context['list_users_online']);
// flashchat users
echo '

</p><p class="inline smalltext">Chat Users

<iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], '/chat/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe>

';



@subs.php I added

// [Flashchat button] button
'Chat' => array(
'title' => $txt['Chat'],
'href' => 'http://www.yoursite.com/chat/flashchat.php "target=blank"',
'show' => true,


),


@modifications.english.php and other languages installed , I added

$txt['Chat']='Chat';


Thank you very much for your time and help.
Title: Re: FlashChat Integration
Post by: Tyrsson on November 03, 2012, 12:04:36 AM
Folks,

Sorry I have not had the time to update this but but with work, and other projects taking priority I just have not had the time and I do not see me putting much time into coding mods for SMF. If and when I get the time to code, it will be smcore focused.

@Lab 360,
I wouldnt mind someone updating the mod, but it would need to remain a free mod and I would also want to make sure Daniel15 doesnt want to pick it back up as well, if I can get in touch with him that is.
Title: Re: FlashChat Integration
Post by: antler on January 23, 2013, 09:16:02 PM

I got Flash Chat Integration to run in smf 2.0.3 but am puzzled with something.   Example chat post: [Shadow] 4:15 pm [undefined]: test   - this is what is puzzling.....  what does (undefined) mean

what needs to be defined?   Any help on this one?
Title: Re: FlashChat Integration
Post by: makdeb on February 18, 2013, 06:25:46 PM
Hello everyone!
I have a trouble with FlashChat. I've installed it on my SMF site and it worked fine for some time. But a week ago I've got an error message when open Chat. It displays an error:
Fatal error: Call to a member function next() on a non-object in /home1/sporttf0/public_html/nwhunttalk/chat/inc/config.php on line 82

In that lines there is such code:
if( !isset( $_REQUEST['step'] )  )
{
      if( time() - $arr>5 )
      {
         //added on 090706 for chat instances
         $stmt = new Statement('SELECT * FROM '.$GLOBALS['fc_config']['db']['pref'].'config_main', 1);

         $rs = $stmt->process();
         $main_records = array();
         while($rec = $rs->next())
         {
             $GLOBALS['fc_config']['fc_instance'][$rec['level_0']] = $rec['value'];

         }
      }
}

(Line 82 is bold)
Maybe someone have experience in resolving such issue? What can I do to fix that?!
Title: Re: FlashChat Integration
Post by: Kindred on February 18, 2013, 06:46:19 PM
Tis question belongs ver on the flash chat support forums...
Title: Re: FlashChat Integration
Post by: MoreBloodWine on February 28, 2013, 05:49:51 PM
Quote from: Labradoodle-360 on October 02, 2012, 02:17:30 PM
It wouldn't really be that hard, it'd more be an issue of time. Plus as people have already said, they wouldn't want to pay that much for it, and so I wouldn't be even close to compensated for the time I'd put in.

He's already said he'd turn it over to me in the past. Although I've been developing a chat software with one of my buddies which is another reason why I wouldn't want to sink the time in to redeveloping FlashChat on an SMF side. Plus, I'm not even sure if their license would allow for it, would they?
What would you need at a minimum to even do this ?

Make FC more SMF friendly, clean up the code etc to fix any current issues / possible exploits ?

I guess 4.7.12 is what they say is the last stable version before the 5x branch.
Title: Re: FlashChat Integration
Post by: Matthew K. on February 28, 2013, 05:55:41 PM
I'll go ahead and send you a PM explaining what the deal with FlashChat is.
Title: Re: FlashChat Integration
Post by: MoreBloodWine on February 28, 2013, 05:58:51 PM
Quote from: Labradoodle-360 on February 28, 2013, 05:55:41 PM
I'll go ahead and send you a PM explaining what the deal with FlashChat is.
K, I ue to use it and this mod on a few old sites and started thinkin about it again. I want to try and find a chat to use on my 2.0.4 sites that lets users chat under their registered names etc like this mod allows. I checked out some of the old IRC chat stuff but didn't really find anything I like. I also like the user pane next to the chat window among a few other features offered by this mod and FC.
Title: Re: FlashChat Integration
Post by: ElectroPheonix on May 04, 2013, 12:38:17 AM
Hi,

I've had Flashchat 5.0.4 for ages. I had it integrated to the forum (I think I somehow used the integration mod with a bit of other code) but when I updated to smf 2 (now 2.0.4, Coalblack theme) some time ago, the integration wouldn't work so I gave up. The chat still works but since people can't see who is in the chat rooms, activity has declined. All I want is to get this to show up in the info centre  :laugh:.

Quote from: Joey Smith™ on January 05, 2007, 03:44:53 AM
"Users Online" display:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dansoftaustralia.net%2Fimages%2Fscreenshots%2Fsmfmods%2Fflashchat_users-online.png&hash=e6fc2e5c99a4153e293ada7f17d4c58b3396b6d6)

Has anyone managed to use the integration code from this mod to integrate other chat versions to SMF 2+ ? If so, could you please enlighten a lost soul.

Thanks.
Title: Re: FlashChat Integration
Post by: Matthew K. on May 13, 2013, 08:28:02 PM
Is there still any interest for an updated FlashChat Integration Mod that supports the latest versions of both SMF and FlashChat with some new things? Who would be interested in such an update, and are there people who would donate to see it get finished and released?
Title: Re: FlashChat Integration
Post by: Smoky "Rider" Blue on May 13, 2013, 09:30:16 PM
Not sure, Lab.. but I hope there would be..  8)

WoW.. I miss SMF.. playing on vB sites really makes me remember how it was long long time ago..

Would be nice to see this mod run smooth and fast.. Flash has that capability, and smf has the simplicity.. up to you, Lab.. or turn it into a paid mod.. I know there are quiet a number of users that will pay for it working  into websites.  ;)
Title: Re: FlashChat Integration
Post by: Matthew K. on May 13, 2013, 09:35:27 PM
I'd really rather not turn this into a paid modification, but that being said, it'd still be nice to get something for the time spent which is why donations are nice. :) Also slightly off topic, why'd you leave SMF then?
Title: Re: FlashChat Integration
Post by: FragaCampos on June 20, 2013, 06:59:20 PM
I'm interested on this.
If you can make this mod work on 2.0.4, without overloading the server too much, I'm willing to donate.


Quote from: Labradoodle-360 on May 13, 2013, 08:28:02 PM
Is there still any interest for an updated FlashChat Integration Mod that supports the latest versions of both SMF and FlashChat with some new things? Who would be interested in such an update, and are there people who would donate to see it get finished and released?
Title: Re: FlashChat Integration
Post by: Draffi on June 20, 2013, 07:14:26 PM
Count me in, too.

(O-T: had SMF 2 RC5 before, changed to vB 4.2 and now i`m back to SMF 2.0.4..... :laugh:)
Title: Re: FlashChat Integration
Post by: FragaCampos on July 19, 2013, 01:54:52 PM
Are you still interested in developing this mod, Labradoodle-360?

Quote from: Labradoodle-360 on May 13, 2013, 08:28:02 PM
Is there still any interest for an updated FlashChat Integration Mod that supports the latest versions of both SMF and FlashChat with some new things? Who would be interested in such an update, and are there people who would donate to see it get finished and released?
Title: Re: FlashChat Integration
Post by: Matthew K. on August 03, 2013, 10:58:36 AM
I've thought about it. I'd need a collection of donations to release it.
Title: Re: FlashChat Integration
Post by: gaswigg on January 02, 2014, 09:09:31 PM
Like how much you talking about to release it and would it involve all the codeing the old flashchat did if so not interested
Title: Re: FlashChat Integration
Post by: beetleman628 on January 19, 2014, 09:03:44 AM
It seems to not run on 2.0.6 version as well. Do you know if there will be an updated version anytime soon?
Title: Re: FlashChat Integration
Post by: Arantor on January 28, 2014, 01:18:41 PM
Moved to the Chat/Shoutboxes category.
Title: Re: FlashChat Integration
Post by: Sakurachan on March 21, 2014, 06:45:09 PM
It'd not be too bad to update. I'd donate money whenever I can to support this to be upgraded to work on the latest SMF.

(Also, sorry for bumping a topic that's a few months old)
Title: Re: FlashChat Integration
Post by: gaswigg on April 13, 2014, 04:57:55 PM
Quote from: Labradoodle-360 on May 13, 2013, 08:28:02 PM
Is there still any interest for an updated FlashChat Integration Mod that supports the latest versions of both SMF and FlashChat with some new things? Who would be interested in such an update, and are there people who would donate to see it get finished and released?

I would love a vers of Flash chat that would work on the new ver of SMF and would even better if it would install like other mods without writing code. I am looking for a chat to add to my 2 forums but really like flash chat. anyone help me out here
Thanks
Glen
Title: Re: FlashChat Integration
Post by: gaswigg on May 16, 2014, 09:11:33 PM
Quote from: Labradoodle-360 on May 13, 2013, 08:28:02 PM
Is there still any interest for an updated FlashChat Integration Mod that supports the latest versions of both SMF and FlashChat with some new things? Who would be interested in such an update, and are there people who would donate to see it get finished and released?

Yes would love one that will work on the new SMF plus would be great if it installed like most other Mods without having to rewrite code as some of us can't write code and if not I guess I would give the person that makes this work on 2.0.7 access to my forums to install it

Thanks
Glen
Title: Re: FlashChat Integration
Post by: Witch-king of Angmar on December 15, 2014, 10:16:07 PM
Hello guys, I am running SMF 1.1.20 and I got this error:

Could not create DB table 'h5lgh_fc_bans'
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(14) NOT NULL, userid int(11) default NULL, banneduserid int(11) default NULL, r' at line 1


and

Strict Standards: Non-static method ChatServer::prepare() should not be called statically in /home/getbpetw/public_html/clone/chat/install_files/step_2.php on line 15

Any ideas where is the problem?

Hosting conf.

Apache version   2.2.29
PHP version   5.4.33
MySQL version   5.5.36-cll-lve
Architecture   x86_64
Operating system   linux
Title: Re: FlashChat Integration
Post by: Kindred on December 16, 2014, 08:39:51 AM
Looks to me as if that would be a question for the flashchat support site - since your error seems to happen when you install flashchat, not when you are installing the integration....
Title: Re: FlashChat Integration
Post by: jack001 on December 15, 2017, 01:20:17 AM
is it possible to have this for my smf 2.0.15?
Title: Re: FlashChat Integration
Post by: Kindred on December 15, 2017, 01:20:49 AM
I don't believe so...
Title: Re: FlashChat Integration
Post by: Tyrsson on February 14, 2022, 03:11:14 AM
I have recently returned to programming but not to SMF per say. I may look into updating this particular mod IF I can find the time to install the new version and see what all has to be done... Its been a long time... In the mean time if anyone would like to give it a go. PM me. Im not trying to hold up the process and in all honesty it will be atleast 2-3 months before I have time to even install the newest version. Not to mention the learning curve.