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 actionThe 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)
PrerequisitesYou 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.htmSupportSupport 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 ChangesPlease see http://www.daniel15.com/forum/index.php/topic,856.html for the theme changes required to support this mod.
Changelog1.0 (Final)
-----------
- Several new features:
- Option to open chat in new window.
- Option to show chat seperate from forum (full-page), like standard FlashChat.
- Option to show users in chat at top of forum.
- Option to show number of users in chat on chat button (eg. "Chat [2 Users]").
- A few very minor bugs (including the "logout bug") fixed
0.1 Beta
--------
Initial release (beta!)
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 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
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
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?
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.
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
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.
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
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
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
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! :)
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 . '"> </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 . '"> </td>' : '';
Replace with:
// FlashChat!
if ($context['user']['is_logged'])
echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
I'll probably add an option for this (choosing to open the chat in a new window) in the next release
Top geezer! Cheers for that :D
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!
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
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)
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.
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.
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).
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!
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.
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
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?
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?
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 ;)
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!
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 ;)
Ah ok. Thanks for the welcome and awesome mod! :)
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
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.
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.
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?
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:
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
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?
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:
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 ;)
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
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"
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
http://custom.simplemachines.org/mods/index.php?mod=611
read the integration..
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)
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 :)
daniel , you ROCK!!!!!!!!!!!!!!!!
thanks man!
i could't find files
./chat/inc/flashChatTag.php
./chat/inc/cmses/smfCMS2.php
pls help me
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.
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
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
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?
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?
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...
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
Thanks.. I missed the checkbox.. I figured it was something stupid...
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. :(
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?
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.
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 . '"> </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 . '"> </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!
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 . '"> </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 . '"> </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>';
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
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
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.
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
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.
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!
Man the above fix is awesome thanks also..
QuoteAnd Daniel15 by any chance do you know what happened to cwhnetworks?
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?
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.
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
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 :)
you did - thanks very much
I believe I'm gonna buy it and try it
Dont you go anywhere :)
QuoteDont you go anywhere
It's alright - I'll be right here :D
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!
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
Any chance of getting a basic permissions check added? Like allowing only certain membergroups access to flashchat? That would be awesome :)
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 ;)
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)
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!
Very helpful mod! Thanks a lot!
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.
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..
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.
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.
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.
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!
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.
Does anyone know how to make a php block for MKPORTAL to show Number of Users in Chat?
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)
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'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];
?>
It's not tested by me (I don't use MKPortal anymore), but it should work :)
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?
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
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.
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.
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.
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).
like in a zip
<a href="http://alittlebitofmagick.com/Mythica/smfCMS2.zip" target="_blank"></a>
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...
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).
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.
The logout bug is a known bug... I'll try to fix it in a future release.
ok
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)
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
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');
Simplemachines Cowboy Nice it worked for me....
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?
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.
QuoteQuote 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.
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??
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...
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
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
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
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.
Daniel can you pm me
thanks Daniel, that's a great help, cheers
apart from what's already mentioned on the previous 8 pages, does anyone know of any conflict this mod may have with other mods?
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?
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?
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
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 ???
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 ???
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";
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;
}
?>
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!
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 ?
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.
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?
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.
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
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 banedI 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: 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.
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.
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 == 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(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($password, strtolower($login));
$sha1_password= sha1(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'] = '';
}
?>
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 ;)
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.
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;
}
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'
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.
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...
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.
Disregard, a friend helped me out :D
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 . '"> </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 . '"> </td>' : '';
but it still pulls the original url. How do I fix this?
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?
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.
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.
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.
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=¶mfilename=' . $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
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=¶mfilename=' . $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
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
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?
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.
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
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
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.
Is this mod ready for 1.1.2? I plan on purchasing the software tomorrow.
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
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
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
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!!
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.
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 :)
Okay, I'll look around. If you get that working, post it here please. :P
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.
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' => '',
),
),
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.
Thanks. I updated my flashchat and installed this mod... but now what? I don't see any changes.
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.
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.
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
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'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $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;" />
<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 ' > ';
}
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 , '"> </td>';
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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 . '"> </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 . '"> </td>' : '';
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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 . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
</td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
// The [3guk] Button
echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// the [chat] button
echo ($current_action=='chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </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"> </td>' : '';
// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
// FlashChat!
if ($context['user']['is_logged'])
echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
//Begin SMFShop code
//loadLanguage("shop");
echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </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 . '"> </td>' : '';
// The end of tab section.
echo '
<td class="maintab_' , $last , '"> </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> </td>';
echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode(' | ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </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.
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
******. 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.
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
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>';
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>';
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.
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>';
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
Check your PM here
is there one for smf 1.1.2 yet?
thanks!
My install of this was with 1.1.1.
When I ran the 1.1.2 upgrade, this mod still worked fine.
Works fine if you do a upgrade, if you do a new install you might have to edit the mod for 1.1.2
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?
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!
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 :)
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!
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');
Where can I find directions on how to use the flash chat after it is installed?
Here http://tufat.com/docs/flashchat/index.html
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
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
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 ---
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.
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"> </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?
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
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)
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?
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.
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.
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.
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.
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?
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.
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.
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
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
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 ;)
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.
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
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.
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 MANUALLYFirst 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 filesOpen 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.phpfind: 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
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!
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
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
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.
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);
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
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.
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 ??
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 :)
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
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
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.
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.
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 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
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!!
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!
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!!
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.
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?
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
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 ---
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.
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>
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 ;)
You should be able to set the height and width within the Flashchat template though! As you said, not really an issue anyway.
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 ---
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
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
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?
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'] != 1 ? $txt[153] : $txt[471]) . '</a>' . $txt['newmessages4'] . ' ' . $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1']) : '', '.';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '<br />
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $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" /> ';
}
// 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'] ? ' | ' : '<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>';
}
?>
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"
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?
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');
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
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.
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.
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
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 :)
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'] == 1 ? $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).
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'] == 1 ? $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.
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 :)
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.
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.
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.
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 . '"> </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 . '"> </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 ?
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.
Ah, of course. I did read Daniel's post about posting at his forum - I forgot.
Thanks.
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) . . . 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.
What am I missing here? Ideas? Fixes? Please help! Thanks in advance!
This is the link MSport meant to post: http://forum.tufat.com/showthread.php?t=33721
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!)
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.
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?
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.
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 />';
}
//
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
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?
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.
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.
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.
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,
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...
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.
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.
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!
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...
Niiiice.
I like it, MegaTinkerCoder. Good work.
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!!
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.
I installed the code into my board template so the users in chat show up but they don't seem to show up?
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.
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.
No errors when I move from chat to home with the code installed.
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:
- Show the number of people in the chat next to the chat link in the menu bar, like the "My Messages" link. It would display like "Chat [2]"
- Display a list of all the current users in the chat at the top of the page. MegaTinkerCoder posted code for this, as did I somewhere on my forum (www.daniel15.com)
- Open FlashChat in a new window/tab
- Whether to show the chat "inside" the forum or not
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?
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.
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!
Version 1.0 of this mod has been released!
Changes:
- Several new features:
- Option to open chat in new window.
- Option to show chat seperate from forum (full-page), like standard FlashChat.
- Option to show users in chat at top of forum.
- Option to show number of users in chat on chat button (eg. "Chat [2 Users]").
- A few very minor bugs (including the "logout bug") fixed
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.
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)
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
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?
// 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
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.
Please try this:
Directly below
// Show the [chat] button.
(but above the echo)
Add:
global $modSettings;
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:
Find:
'</strong>]' : ''), '</a>
Replace with:
'</strong>]' : ''), '</a>';
:)
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.
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.
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".
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
I simply use the AJAX shout box, I prefer it anyway... :)
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.
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?
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.
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
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.
same here
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.
Can I change the title to say my board name chat?
Could you install coppermine and then install flashchat? Is their a bridge for Coppermine and flashchat that is conflicting?
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.
ditto with what tick said. I'm not using tiny portal though.
I am getting an error when trying to uninstall the 0.1 mod.
"3. Execute Modification ./index.php Test failed"
Anyone have a suggestion?
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.
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
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.
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
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.
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
I already have; I'm "Agahnim" there. My posts there have been ignored for two days, just like here.
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.
Could someone please make a Helios_Multi (its a popular theme) FlashChat button or link me to one please? Thanks!
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????????????
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.
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.
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 :)
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.
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.
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
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?
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
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
here you go
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 :(
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
Can you try installing it again, start from scratch? PM me if you are still having trouble.
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
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 ---
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.
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.
i have tried the uninstall flashchat (shoutbox worked)
and reinstall (shoutbox stopped working)
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?
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.
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
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).
thanks for that I will try it out and let you know, but at first glance it looks like the solution
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?
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.
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'],
);
I am experiencing...
12. Execute Modification ./chat/inc/flashChatTag.php File not found
13. Execute Modification ./chat/inc/cmses/smfCMS2.php File not found
Make sure you are using the latest version of flashchat.
Older versions will fail because those files do not exist.
Has anyone figured out how to remove what room the users are in so that it takes less space to provide all the names?
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.... ::)
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.
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 ---
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"
I can't find that file??
Is this compatible with smf 1.1.3??
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!
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.
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!
Have you purchased FlashChat (just $5) and installed it before you installed this mod? This mod just provides for a fuller integration with SMF.
Yes flash chat has been installed first before the mod.
Should flash chat be sitting in a certin place on my host ?
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?
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. >:(
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.
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
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
It would be worth upgrading your forum to 1.1.3 first, whether or not there is a problem with the mod.
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.
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)
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".)
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?
Depending on your language it would be <language>.template.php in Themes/default/languages/
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?
great mod :D easy and clean
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
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
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
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
Hi Bertie,
I would think that the FlashChat site would be able to help with that.
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 ;).
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
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 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 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 :)
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..
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
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 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.
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
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.phpHope 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 :)
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
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?
Enough with the support in here lol! Post it at Daniel15's site.
http://www.daniel15.com
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.
True, very true :)
we have to pay for this Mod?!?
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...
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
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
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
This is a better explanation for one of the problems:
http://forum.tufat.com/showthread.php?p=162441#post162441
:)
I get a popup window with the error code 500 when leaving FlashChat via the top menu bar
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.
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
I have AA New Damage, how i insert flashchat?
Yea i bought it, please step by step :S
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.
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?
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.
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?
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
Thanks Col I had a look but can't see anything else about it, have you heard of this problem before?
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
I am not really tech savvy and I want to apply this mod since I need a chat mod on the board. Help anyone?
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
Have you already purchased FlasChat ($5) and installed it to your forum? This mod purely integrates FlashChat more completely with your SMF forum.
Ahhhhh k! Thanks. I didn't realize it had to be purchased.
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.
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?
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?
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
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.
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.
??? ??? ???
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?
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?
No, I don't. See my answer above please.
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
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 ...
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.
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.
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.
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?
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
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.
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
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...
???
I'm thinking to buy the license but the link is not working? There are errors in all buy products!
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
Has anyone tried this with FlashChat Beta version 4.8.3
seems to work just fine...
Quoteseems to work just fine...
Is it just me that gets errors when collapsing/expanding boards?
why/how would that be related to the flashchat mod?
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...
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.
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?
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
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.
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...
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.
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?
you should be calling www.whateverdomain.com/forum/chat/flashchat.php to open the integrated version....
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.
URL?
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?
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?
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.
I just tried this with no errors showing up...
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']?
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.. ?
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.
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)
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?
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..
on the other hand... you could just forget about $context and just query the database directly to get the number of chatters...
Hmm.. anyway to do it through SSI? Since I'm already grabbing other codes from SSI.
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.
Ok.
But what is this 'whoschatting' file you are speaking of? I can't seem to find it anywhere.
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;
}
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
  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;
}
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.)
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');
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..?
include/require does not us a URL... it uses a PATH
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?
ummm.... did you echo out the return value?
echo 'there are ' . $rec['numb'] . ' users in the chatroom';
Yup.
', (!empty($numusers) ? ' [' . $numusers . ']' : ''), '
that won't work.
numusers is not a variable (not $) it's a function.
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?
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...
Cool, thanks a lot. :)
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.
You can run the mod through the mod-parser at sleepycode.com
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.
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');
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.
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...
Fair enough but I think for the most part most users would not.
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.
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?
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.
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
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)
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
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.
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
If http://yourdomain.../index.php?action=chat open your chat perhaps only the button is missing.
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
Under Admin, features and options, do you have Display chat window inside forum checked, and open chat in new window unchecked?
also.. you should not have spaces or periods in your site name/folder.......
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
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
[
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.
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)
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
&emulate_version=1.1.3
I don't know what that means, Kindred.
Which file is the package manager saying is corrupt or incompatible?
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. "
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
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
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.
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"
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.
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.
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??
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.
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...
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.
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
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)
That's the exact info I needed TrueSatan. Thank you! You are the man!!
I did have a corupt file by the way ::)
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?
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)
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?
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
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.
???
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...
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.)
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
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!
oooooppppppssssss! :-[
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 :)
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.
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.
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!
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.
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.....
It may be the easiest way...annoying as it is.
Any idea how I can remove a room? How can I disable a user from creaeting new rooms?
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...
Thanks, exactly the pointers I needed!
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 :)
All my special characters in my usernames (åäöÅÄÖ - scandics) are messed up really bad. Is this an issue with the integration, or with flashchat itself?
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/
are you running in english? (not english utf-8)
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.
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...
Are you using the default theme? Are you running in English (not engligh-utf8)?
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.
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!
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
try the mod parser at sleepycode.com
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.
well, that's your problem then... the mod only installs into modifications.english.php... add the phrases into your language modifications file
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....
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.
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.
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.
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
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.
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.
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
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.
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.
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.
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.
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...
Thanks Kindred,
I only use the default English language on my forum - are you able to help with solving the problem?
Regards,
Wilsy.
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.
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..
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.
Is there a way to allow only certain member groups from joining the chat?
I cant see anything in permissions.
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"
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 . '"> </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 . '"> </td>' : '';
And got a mass of errors. Suggestions appreciated.
Alison
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)
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
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.
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.
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
Your attacks say a great deal more about you than about me or anyone else. Merry Xmas!
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.
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
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.
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.
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.
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.
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.
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!"
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?
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!)
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.
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
found it, thanks :)
I have SMF 1.1.4.
How to change so RealName is showed, not LoginName ?
Is that possible ?
Thank you.
modify smfcms2.php in flashchat
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.
Hm...
I ask question there, and they say to come here. LOL...
It's like tennis. :)
I will try Kindred solution.
Thank you.
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.
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 ?
I suggest you ask over on tufat.... I think I even have a sticky over there that tells the code to modify
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.
it worked just fine for me...
that error suggests that you did not input your path or connection information correctly
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
did you install flashchat FIRST?
Flashchat is a separate utility that must be installed BEFORE you install this mod.
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.
I'll try again and see what happens.
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?
Should be in the flash chat docs...
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.
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.
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. :)
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.
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
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.
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. "
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)
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...
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.
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
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
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
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
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
I suggets re-downloading flashchat then.. both of those files are in the copy that I downloaded.
@ 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
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
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
That's what I thought too as I looked, and I am running 'English'.
I'll try that modify.
~Kirok
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 ---
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?
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)
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.
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.
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
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... :(
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?
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
First time I actually looked at this.I gotta say, I may swap it with the chatbox.
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.
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?
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.
Did you read the first post to Daniel15
http://www.simplemachines.org/community/index.php?topic=139769.msg891920#msg891920
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.
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!
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
Will give it a try, thanks!!
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!
try switching the smf default theme and see if that helps?
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.
1- check your server permissions...
2- you can't RUN config.php. ??? It's an include file, not a runnable file.
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?
yes I am using it with 1.1.4 and Tiny portal 0.983 no problems :)
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?
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
:'( :'( :'( :'( :'( :( :( :( :( >:( >:( >:( :'( :'( :'( :'( :'(
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.
Im sorry, I dont even know what to look for? :'( :'( :'( Im soooo dissapointed...
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.
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
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.
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.
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.
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) ??
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.
I found the Php files called smf_awards and smf_memberawards in myphp admin.
would it be safe to delete them?
If that is phpmyadmin, those are the database tables. Not what you are looking for.
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
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
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 ;)
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.
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
You want the insert tab at the top, actually.
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
Any answers for me me yet?
Is there anyone that can please help with my problem, I have completely come to a dead end.
ANYONE?????
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.
I said the same thing yesterday, I think it's the easiest way in the long run :)
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
Will this chat mode work on SMF 1.1.4 yet?
yes it has done for some time :)
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
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
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!
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
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' => $txt[119], is the title of the button
Thanks, I actually just figured that one out ... now to add user counts.
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
$txt['ChatButton'] = 'Chat [' . $context['num_chat']. ']';
'title' => $txt['ChatButton'],
the pop-up is turned on/off in the flashchat config file..
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.
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
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.
OK sorry...I guess waiting 4 days is too soon to say they're dead :)
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 . . .
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.
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
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
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)
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.
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
in flashchat/inc/config.php
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
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 :)
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?
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 ---
yes... you figured it out... please do not serial post like that, however. Modify your previous post if no one has repsonded.
Can anybody show me a demo pls, there isnt´s any chat on daniel´s forum!
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?
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
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
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?
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!
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?
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?
yes
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.
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?
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
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> | ';
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?
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.
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?
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 :)
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?
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)
Gotcha. Mine isn't wrapped in each other. Just share a common user base. Thanks.
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
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
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.
here
put it where you have the others eg where you have this one
http://www.kaartenleggen.nl/Themes/kaartenleggen/images/dutch/calendar.gif
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.
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'];
Does anyone have a modification to allow this Mod towork in v2 of SMF, please?
Kind regards
Kevin Hannan
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
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.
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..
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.
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
:'(
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?
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? :)
i love the flash chat! very cool!
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
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;
where are they?
thanks
sorry - found it
thanks
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!
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
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
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.
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.
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)
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 ---
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
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.
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
run the mods through the mod parser and then manually do the changes to the babylon theme files.
can you post a example what i need to look for what code do i use etc.
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. :)
mod parser can you tell me where this is at ?
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.
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 ?
did you install flashchat?
It needs to be installed in YourForumDir/chat
that has nothing to do with the theme.
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
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.
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 ?
yes. Now install flashchat in that directory - and make sure you set it up integrated with smf 1.1.x
ok its loaded in the directory now what do i do ?
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 ?
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)
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 ?
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.
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
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!
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?
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)
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?
read this thread on the tufat flashchat forum (http://forum.tufat.com/showthread.php?t=12059&highlight=groups&page=2)
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
Does this work with SMF 2 BETA 3?
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.
Was FlashChat installed before and working?
yep. I just don't have the links in the forum. This works still http://domain.com/forum/chat/flashchat.php
ok, and do you use english default theme?
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.
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.
Damn i didn't notice.
Thanks anyways
can you make it for SMF2 Beta 3, please?
thx
flashchat itself does not run with SMF 2.0 yet (well, not without manual tweaking)
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.
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)
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?
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?
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
ok, are you using English default theme?
edit: yes, ok , I checked.
So I suggest you to compare your files with parser.
when you installed your flashchat program did you check the box that said you wanted to integrate it with smf? Just checking
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.
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.
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.
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.
Well, I did not know too... so I asked ... ;)
http://www.simplemachines.org/community/index.php?topic=237155.0
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.
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.
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?
Are you using the red button upper right to exit the chat?
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.
:)
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!
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.
It shows to me the names in the top and also in the user`s online...
I'm talking about on the Board Index row of buttons, as shown in the screencap below.
ok.
It`s because I`m using default theme and it shows in welcome area and in users online area.
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.
Ok, attached some pictures how it is shown in my forum.
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.
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.
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.
She also tells me that on her screen, it still shows no one in the chat at all, even though she's in there.
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.
But it still doesn't list the members inside the chat. :(
Sorry I really cannot help you because I`m not an expert in finding this error...
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.
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.
chat.php and cat.template.php are in the mod package.
your "root directory" would be where ever you have your FORUM installed.
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.
???
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.
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.
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.
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?
1- do you actually have flashchat installed and configured to bridge with smf?
2- are your smf and flashchat installed in two separate databases?
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.
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
is SMF installed in /home/content/y/a/k/yakfisher/html (aka your web root)?
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
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.
My bad, many apologies... if I run the installer again I'll just get the same errors, no?
not if you corrected the paths.
Chat must be installed in a subdirectory of the forum...
i.e.
/whateveryourforumdirectoryis/chat
Hi... exist this MOD for SMF 1.1.5??? please I'need this MOD Thanks, and sorry by my english I' From argentina Thanks
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.
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
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?
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
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?
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...
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>';
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 :)
does it show when you are logged in? if so post a screen shot plz
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)
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.
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?
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
:-[ Oh gezzz. I can't believe I overlooked that. ::)
Thank you Kindred. That got it.
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?
I know this sounds like a silly question but have you checked the permissions for all member groups?
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.
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?
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.
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?
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! :'(
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
you'll have to change your theme's index.template.php
and probably boardindex.template.php (for the who's online list/link)
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. :)
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)
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! :'(
without looking at your code, I'm not really sure...
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 :))
No ideas on my questions? I posted code and references to what is causing a problem...
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?
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.
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?
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.
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?
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.
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.
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.
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.
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.
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?
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.
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.
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
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
how do you install it so that your regestered forum members can log in
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?
what do i put in these so that it works???
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.
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
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.
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!
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?
EDIT: Never mind -- I wasn't really paying attention to the code...
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 ....
???
if action=chat is not working, then that implies that the mod was never actually/fully installed
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.
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.
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)
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
I think that is in admin.template.php
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 . '"> </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 . '"> </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?
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...
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 . '"> </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 . '"> </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
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.
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?
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
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 !!
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 !!!
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
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?
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 . '"> </td>' : '' , '
<td>',($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/chatbutton.GIF" alt="' . $txt[182] . '"/>' : ''),'
</td><td> <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 . '"> </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> <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 . '"> </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 . '"> </td>' : '';
ANY HELP IS APPRECIATED...
GMC
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 ><>
you can do most of those things in Flashchat... go to the flashchat forums and ask about them.
Yes - I should have said without editing the config file - I think they should be options in Admin.
Nugget ><>
of course, with a bridged/integrated flashchat, none of those permission features would be usable anyway... (Flashchat uses the forums permission/user features)
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... :)
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.
anyone know if this will be updated for version 2 ?
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 . '"> </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 . '"> </td>' : '';
Hey, how do i make more membergroups Admin or Mod on the flashchat besides Administrator and Global Moderator
again... this sort of question belongs over on the flashchat support fourms.
Short answer: modify smfcms2.php
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 . '"> </td>' : '' , '
<td>',($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/chatbutton.GIF" alt="' . $txt[182] . '"/>' : ''),'
</td><td> <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 . '"> </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> <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 . '"> </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 . '"> </td>' : '';
ANY HELP IS APPRECIATED...
GMC
Can some one point me in the right direction?
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
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
Is it possible to give permissions for the chatroom? I would like only certain membergroups to enter.
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.
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....
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.
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....
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
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.
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?
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
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
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)
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
I want what I want simply because I want it and the mods supposed to have it...
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.
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
you have to install flashchat FIRST, before you can install this mod.
Ok, thougt i can manage that in the settings later. I'd already installed it, but in another directory.
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
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
:( 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
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
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..
THAT box is in the MOD config (SMF admin)
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
Admin > Features and Options > Basic Features
You may need to scroll down a bit but the setting are right there.
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...
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)
note... removed message that was a thinly veiled promotion of another system/mod. Doesn't belong in this thread.
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
Did you find any of the FlashChat options there?
Yes.. I located all of the, except for that option..
So you have all the other options but not the one with the arrow pointing to it? Is there a blank there?
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! :(
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.
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
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
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.
both of these issues have been covered, in detail over on tufat forums...
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.
not sure exactly where... but I know they are there, because I (among others) have posted them
This one talks about the diplay name / login name on the other forum:
http://forum.tufat.com/showthread.php?t=50984
Is it possible to set permissions with this thing? I'd like it so that only certain membergroups can enter the chat.
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.
Of course I didn't, this is a 49 page topic. Thanks for the help though.
(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.
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.
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
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.
well.... anyone??
Kindred? :-\
Can i use Flash Chat Integration on Version 1.1.5 . How to use it !
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.
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?
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.
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?
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
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. :(
Can somebody please give some advice on making the Integration mod work with SMF 1.1.6?
what version of flashchat?
I am using 4.7.12 version of flashchat (and it works nicely -- not extremely interested in updating it -- at least not soon)
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
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?
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
ahh..... thanks... That might help me with one or two other mods as well...
Does this mod work with SMF 1.1.5 and TP?
I am considering loading flashchat
Thanks...RR
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
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.
also... this mod only work with flashchat 4.7.12 and earlier.
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?
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").
<<Removed by User>>
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
as most mods, this only installs in english.
Modify modifications.italian.php to add the italian versions of the english text strings.
so what files do you need to install this? the chat and then the intergration file or is it just 1 file to install?
you must have a valid and correctly installed copy of flashchat and SMF before you can run this mod.
i have smf 1.1.5 which version of the chat do i download?
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.
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.
Is this what you're looking for?
http://www.tufat.com/docs/flashchat/whos_chatting_smf.html
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.
:-[ 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.........
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)
and one more time.... this mod only works with flashchat 4.7.x
Thanks. :-[
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
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]
Yeah this mod is for chat 4.7.x but tufats version is at 5.?
Will this still work?
@BlueDevil - no this mod will not work with FlashChat version 5.x
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.
Cool, i have an old copy of flashchat (v.4.7.12). Just installed it and it works great.
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
you'll have to manually uninstall...
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
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!
Is there a way to allow guests to log into the chat as well as members?
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.
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??
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"
is there any way to install this mod on smf 2.0 beta 4 ?
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
ok I will wait until then....
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?
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.
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
what tables are you deleting?
because SMF will not ever do anything with fc_*** tables.
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.
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.
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)
I don't use the bots... but I would say you really need to ask that question over on tufat forums
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.
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?
Ask that over on tufat, but my answer would be... probably not easily... messages are erased from the chatroom after a short time anyway.
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?
this mod offers the option to enclose the chat within the forum header/footer and puts the chat admin into the smf admin section
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.)
iframe is bad process....
Quote from: Kindred on February 07, 2009, 12:22:55 PM
iframe is bad process....
What would be a better way for this info?
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.)
just incorporate it into the smf template, as the mod used to do...
begs
can you post the code and where to put it for dummies like me?
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.
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?
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"> </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*/
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.
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
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 ;)
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
oh i see. let me try. thanks! ;)
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 ?
How do you stop the Logging in and Leaving time stamp?
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!
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"> </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
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->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;
}
/**
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->process( SPY_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->process( SPY_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>
which smf will this work for and what version of flashchat is it for?
it's for RC1... i forget the version of flashchat... but it's the only version of fc that will work on RC1.
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->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;
}
/**
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->process( SPY_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->process( SPY_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.
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
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!
just to clarify, is changing the info_embedded.php all youve done or have you made other edits elsewhere?
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
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
http://tufat.com/docs/flashchat/whos_chatting_smf.html is where that information is...
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
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...
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: 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?
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
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->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;
}
/**
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->process( SPY_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->process( SPY_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>
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->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;
}
/**
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->process( SPY_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->process( SPY_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"> </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>';
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!
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.
Yeah, I'm using RC1 also and got it working by modifying the code above.
dang, i can't find it in my file.... i'll have to look again tomorrow. it must be a theme thing.
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.
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!
ahhhhh, FOUND IT! now, i just need to shorten the height somehow, it's taking up way too much real estate!
fabulous, i whittled the size, removed the <h4> and now it looks PERFECT! many, many thanks!
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.
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?
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.
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.
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.
wen it wil be comatible with smf 2.04?
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?
you have installed flashchat incorrectly.
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.
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ção Definições';
$txt['fc_in_chat'] = 'no Chat';
$txt['fc_not_found'] = 'FlashChat não parece estar instalado!';
$txt['fc_no_guests'] = 'Desculpa, convidados não estã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órum?';
$txt['fc_newWindow'] = 'Abrir Bate-papo em uma nova janela?';
$txt['fc_showUsers'] = 'Mostrar Utilizadores no Bate-papo no topo do fórum?';
$txt['fc_showUserCount'] = 'Mostrar o número de utilizadores no botã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á preencher todo o ecrã horizontalmente)<br /><strong>Nota:</strong> If "' . $txt['fc_inForum'] . '" está ligado, por favor, não use uma percentagem para a altura. Ele não irá 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ção Definições';
$txt['fc_in_chat'] = 'no Chat';
$txt['fc_not_found'] = 'FlashChat não parece estar instalado!';
$txt['fc_no_guests'] = 'Desculpa, convidados não estã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órum?';
$txt['fc_newWindow'] = 'Abrir Bate-papo em uma nova janela?';
$txt['fc_showUsers'] = 'Mostrar Utilizadores no Bate-papo no topo do fórum?';
$txt['fc_showUserCount'] = 'Mostrar o número de utilizadores no botã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á preencher todo o ecrã horizontalmente)<br /><strong>Nota:</strong> If "' . $txt['fc_inForum'] . '" está ligado, por favor, não use uma percentagem para a altura. Ele não irá 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ção Definições';
$txt['fc_in_chat'] = 'no Chat';
$txt['fc_not_found'] = 'FlashChat não parece estar instalado!';
$txt['fc_no_guests'] = 'Desculpa, convidados não estã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órum?';
$txt['fc_newWindow'] = 'Abrir Bate-papo em uma nova janela?';
$txt['fc_showUsers'] = 'Mostrar Utilizadores no Bate-papo no topo do fórum?';
$txt['fc_showUserCount'] = 'Mostrar o número de utilizadores no botã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á preencher todo o ecrã horizontalmente)<br /><strong>Nota:</strong> If "' . $txt['fc_inForum'] . '" está ligado, por favor, não use uma percentagem para a altura. Ele não irá 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ção Definições';
$txt['fc_in_chat'] = 'no Chat';
$txt['fc_not_found'] = 'FlashChat não parece estar instalado!';
$txt['fc_no_guests'] = 'Desculpa, convidados não estã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órum?';
$txt['fc_newWindow'] = 'Abrir Bate-papo em uma nova janela?';
$txt['fc_showUsers'] = 'Mostrar Utilizadores no Bate-papo no topo do fórum?';
$txt['fc_showUserCount'] = 'Mostrar o número de utilizadores no botã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á preencher todo o ecrã horizontalmente)<br /><strong>Nota:</strong> If "' . $txt['fc_inForum'] . '" está ligado, por favor, não use uma percentagem para a altura. Ele não irá 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á exibido "dentro" do fórum, utilizando o seu fórum de cabeçalho e rodapé. Se unticked, FlashChat seá exibido autônomo, preenchendo toda a tela (como um padrão FlashChat instalação)';
$helptxt['fc_showUserCount'] = 'Mostrar o número de utilizadores no chat sobre o bate-papo no botão da barra de menus. Em vez de simplesmente dizer "Chat", ele vai dizer algo como "Bate-papo [2 Utilizadores]" (assumindo 2 utilizadores estã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á exibido "dentro" do fórum, utilizando o seu fórum de cabeçalho e rodapé. Se unticked, FlashChat seá exibido autônomo, preenchendo toda a tela (como um padrão FlashChat instalação)';
$helptxt['fc_showUserCount'] = 'Mostrar o número de utilizadores no chat sobre o bate-papo no botão da barra de menus. Em vez de simplesmente dizer "Chat", ele vai dizer algo como "Bate-papo [2 Utilizadores]" (assumindo 2 utilizadores estã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á exibido "dentro" do fórum, utilizando o seu fórum de cabeçalho e rodapé. Se unticked, FlashChat seá exibido autônomo, preenchendo toda a tela (como um padrão FlashChat instalação)';
$helptxt['fc_showUserCount'] = 'Mostrar o número de utilizadores no chat sobre o bate-papo no botão da barra de menus. Em vez de simplesmente dizer "Chat", ele vai dizer algo como "Bate-papo [2 Utilizadores]" (assumindo 2 utilizadores estã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á exibido "dentro" do fórum, utilizando o seu fórum de cabeçalho e rodapé. Se unticked, FlashChat seá exibido autônomo, preenchendo toda a tela (como um padrão FlashChat instalação)';
$helptxt['fc_showUserCount'] = 'Mostrar o número de utilizadores no chat sobre o bate-papo no botão da barra de menus. Em vez de simplesmente dizer "Chat", ele vai dizer algo como "Bate-papo [2 Utilizadores]" (assumindo 2 utilizadores estão no chat).<br /> Note que, a fim de usar isso, o tema deve ser compatível.';
// --- End FlashChat Integration ---
]]></add>
</operation>
</file>
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
Are the chats logged somewhere for a time? Where can I retrieve them?
Thanks
you would need to ask that over on tufat.
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.
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???
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?
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.
QuoteIt's Chat 5 I believe
This is the problem. All versions of the mod are for flashchat 4.7.12 only.
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.
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 . '"> </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 . '"> </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 . '"> </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)
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.
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>]';
}
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.
Ive installed flashchat no probs,but does anybody know how to delete one of the rooms i made on installing the flashchat???
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.
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.
in my database, why does the table smf_fc_patterns have a 148,533 records?
what is this table for?
Good question. My install of FC 4.x.x doesn't have that db table.
Do you have fc 5?
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
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!
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?
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...)
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
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.
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
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.
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.
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 :)
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.
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. :)
Sorry I had some stuff come up yesterday evening. Will look into this here shortly.
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)
VERY patient :D
I sent you a 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>';
thanks tyrsson!!! ;)
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)
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.
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
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.
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?
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.
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.
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.
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;
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.
Its in the modifications english file. Just make sure that ?> is the last line of the file.
Will there be a released version of this mod for 2.0 RC1-1? Or will I have to do it manually?
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.
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.
: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! :)
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
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.
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.
Hi. You know the googlebot package. What does that do? :(
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
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.
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
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.
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.
// Mod authors, once again, if you have a whole section to add do it AFTER this line, and keep a comma at the end.
// --- 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.
// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!
I can't see FlashChat settings and I checked the error log and I got undefined index: fc_(something)
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.
The version I am referring to is FlashChatSMF_2.0.zip
I emulated it on a RC1-1 version of SMF.
I will look into it but it may be a couple days before I have the chance to check it. Work has been killer.
That's fine. No one from my forum has been complaining about the chat not being present, so take your time. :)
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
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.
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
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.
change the call for name in the smf integration file (in flashchat to realname)
(this is listed in several threads over on tufat forums)
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
what program did you use to edit the file?
i used the online one in the cpanel
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>';
123flashchat is different from flashchat. this thread is specifically working with flashchat form tufat.com
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?
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?
Check your lang. files? If I'm not mistaken that's where we had a problem. Realy hope this helps
Thanks for your reply. Was this similiar to the issue we are having, if so - was there a specific file?
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
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!
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
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]
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.
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
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]
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?
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]
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.
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!
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.
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.
@Souls In Serenity --- Thanks for the info
Grinch843....
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.
It didn't work for me by just moving the ?> to stand alone on the last line. For whatever reason - it needed both. (shrugs)
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!
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.
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?
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.
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.
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
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. :)
I am in the process of updating this mod now. I hope to be done within a few days.
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 :-)
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.
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.
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. :)
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.
thank you so much, now is perfect :D
uh....everything is perfect but...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi28.tinypic.com%2Fxfp7qs.jpg&hash=b65aa983c022dd1390148d0cc9b507f650576bc3)
yeah......
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 ;)
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. ;)
Should have this updated in a day or so.
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.
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.
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.
i am getting File not found when trying to install should i continue?
/chat/inc/flashChatTag.php
chat/inc/cmses/smfCMS20.php
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??
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
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
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.
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
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!
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.
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
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?
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.
Tyrsson,
Very well, will do. So I install the ver 5 and then attempt to install ver 4 over it. Correct?
Cloud
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.
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
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. ;)
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
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
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
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
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
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
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
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.
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
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
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
Thanks for the info.
It is just bout 2am so I am done.
the chat is working for now. ???
Be Well
Cloud Walker
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?
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
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.
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
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.
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.
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
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.
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)
Do you have the flashplayer plugin installed in your browser?
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.
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.
I can get to the admin area fine for chat.
But, will take a look. It goes thru the load screen and then stops
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
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!!!!!
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.
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.
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.
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.
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 ]
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.
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 :)
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 :)
resolved. thanks for all the help!!
Please attach your Modifications.english.php file to your next post.
Also, this mod only works for the 4.7.12 version of flashchat.
resolved. thanks
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.
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...?
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.
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)
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 ;)
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
It pulls the permissions for Global moderators and admins. Beyond that people are regular users. This will not be expanded.
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...
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
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
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.
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
Quote from: Tyrsson on August 21, 2009, 08:59:00 AM
Also, this mod only works for the 4.7.12 version of flashchat.
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
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.
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
you would have to add something to the menu array function in subs.php
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
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)
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
This Chat doesnt work on SMF 1.1.10???? Please someone answer !!!!
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.
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.
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?
??? you must have smf AND flashchat already installed and working before you install this mod.
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...
Install flashchat as per the instructions for integration with SMF. Those instructions are found on the tufat website.
Then install the mod.
Got the flash chat installed fine.
You just have to tick 'SMF 1.1' when you want to integrate
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.
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 !
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
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
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.
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
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.
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
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"
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.
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!
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.
I was able to get one just a second ago...
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.
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.
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.
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
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.
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.
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.
Info sent.
Hit me up if you need anything on there and see me signed in as TK2012.
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 ;)
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
QuoteTable 'smf2.connections' doesn't exist
Was this table created in the database?
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)
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
Which version of flashchat are you using?
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
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
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.
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.
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.
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.
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.
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.
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 :)
Here is a question.
Did you update the integration files that I linked to from the mod download page before running the install?
and i am a idiot :). Thanks
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 :)
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.
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?
just wondering with this mod is going to be updated to work with rc2 version of smf
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.
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
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.
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?
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.
What version of SMF are you using?
What version of the mod are you using?
What version of flashchat are you using?
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
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!
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.
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?
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.
As soon as I can get to it.
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 ..
Follow the instructions on the mod page. Do you already have flashchat downloaded? The chat has to be installed first.
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.
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 ?!
Use the version emulate option in the package manager to install it. Its under advanced options iirc.
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 ..! ???
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)
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...
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.
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.
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.
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?
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.
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
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
Any help?
Suddenly it stop working.
Now after flashchat load there is only a blue screen.
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
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
Sorry, I forgot to include that - I'm using SMF 1.1.11
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...
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.
bump
Just at first guess, I would say it could be related to the pretty url's mod as that uses .htaccess rewrite.
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.
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.
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
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>';
}';
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
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.
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?
index.english.php I think. There should have been text with it.
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 . '"> </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 . '"> </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 . '"> </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 . '"> </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.
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.
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?
Which version of 2.0 are you running? It has not been updated to RC2 as of yet (been busy).
I'm on RC2. Thanks!
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.
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.
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.
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.
the mod is only compatiable with flashchat 4.7.12
how ever you can use 6.06 with smf just not the mod
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
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
The files you will need is linked in the mods documentation.
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
in what way do you want it integrated as you should be able to without mod
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
yes, derby.... and?
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.
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
Quote from: Kindred on January 14, 2010, 02:52:24 PM
yes, derby.... and?
do i continue installation.???i use smf 1.1.11???
well, you obivously either a) have not installed flashchat or b) have not installed flashchat in the [forum]/chat directory
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.
Trysson could you possibly PM me the Link that you downloaded it from please?
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
you must have flashchat installed first, before attempting to install this mod
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.
I am signed in and for the life of me I can not find the mod download page. Is it located inside the forum ?
i'm assuming this is what they mean
http://custom.simplemachines.org/mods/index.php?mod=611
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.
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?
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
No, it has been upgraded to SimpleMachines 2.0.
Ok SO I can not get flashchat integrated with RC 2 then correct?
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?
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.
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.
that wasn't directed at you Labradoodle... but at derby and bear. :)
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
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?
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?
FlashChat (http://www.tufat.com/s_flash_chat_chatroom.htm)
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
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.
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).
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
either 755 or 777 depending on your host ;)
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
Have you checked the permissions on that file? If so what permissions are set for that file?
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
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.
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
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.
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.
@ 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.
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
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.
When Is This Going To Be Compatible With SMF 1.1.11
Thanks
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.
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 :)
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.
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!
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.
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
Quote/chat/inc/config.srv.php on line 2
What code is on that line?
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_',
);
?>
Yes, but what path is defined within this constant?: INC_DIR
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')
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 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
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? ;)
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.
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.
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?
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.
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.
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.
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?
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 :)
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.
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.
find where INC_DIR is defined... i.e. INC_DIR = ....
I found this line in the config2db.php ...is this what youre talkin about?
define('INC_DIR', dirname(__FILE__) . '/inc/');
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.
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
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
Check to make sure the edits in the language files were made.
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.
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?
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
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?
what version of flashchat?
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!
Is this going to be updated soon so that it works with SMF 2.0 RC2 soon?
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.
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
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 . '"> </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 . '"> </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 . '"> </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.
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
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 :(
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?
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? =)
Can you post a screenshot of what you mean by you cant see the chat link?
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
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
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.
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)
Thanx for the help.
I'm just not cut out for this. I have tried and tried and can't get past step 1.
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
Is this mod compatible with RC3?
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
Okay, thank you =)
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.
I am betting you are not using flashchat 4.7.x
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?
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
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.
the mod author has said they will be updating it when they get time
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.....
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?
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?
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.
Can you make this mod for SMF 2.0 RC3?
It will be updated but most likely not until 2.0 goes final.
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.
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?
It will be fixed in the next version.
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).
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
Did you install Flashchat before installing the mod?
EIther you have not installed flashchat or you have not installed it per the integration instructions for flashchat.
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?
Bump.
Tyr? :-\
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?
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.
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.
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.
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.
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.
this integration mod does not work with any version of flashchat above 4.7.x
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. ;)
Hi, will this mod be updated to work with 2.0 RC3?
I have flashChat installed but we didn't use it. How do I remove it?
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. :)
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.
It will be updated, i just have to many things to get it done before 2.0 final most likely.
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
Im not a genius or nothing, but it might help to ask in the "chat" support board.
Several chats/shoutboxes works for SMF2, so look again.
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.
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 ?
I second this question. My members love flashchat and are greatly missing the integration since the upgrade.
SMF versio :
1.1.11FlashChat versio:
FlashChat v6.0.7Smf mod: FlashChat Integration:
FlashChatSMF_1-0aThe 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
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.
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.
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.
Kindred
FlashChat integracion mod works for me on my forum, v4.8.3 with a version. ;)
Thanks....
tamasir~
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.
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
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).
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?
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?
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 :(
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.
Any chance this will work on RC4?
no chance at all
great mod, thanks for making it
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.
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.......
It will not be for RC4, but there will be an update for 2.0 final.
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
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.
You can link to it yes. There is many post here that describe how to add a tab.
Oh, and I may try to add support for simple portal and portamx blocks in the next release just to make life easier.
Needs to be updated. :(
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.
2.0 Final when will that be ?
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).
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.
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.
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.
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.
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.
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.
I bought this Mod and I have 1 question, Is it compatible with SMF 2.0 RC5?
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)
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).
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..
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.
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.
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 :)
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.
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. ;)
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.
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 :)
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 SMF21.) 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
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.
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.
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.
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?
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.
So, is this something that FlashChat needs to fix?
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
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
i don't want to buy another chat program, i like flashchat. We've not had any problems with it either!
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?
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
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.
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
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.
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
It's possible to integrate FlashChat with SMF 2.0.2, although it's a fairly difficult process; which I have done three times.
ohh u try three time can u tell me how i can do it or its better to wait
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.
ok i will wait i want to contact the author who make this mod do u have his email
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.
okay thanks sir i will be waiting for that
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?
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.............
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.
No one can update this mod for 2.0.2............... is there any other Mod somewhat like that for 2.0.2
yeah i am also waiting for like 2 months to someone update this mod
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
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?
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.
Waiting to get this mod on 2.0.2..............
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.
Did you test it with the latest version of FlashChat, too?
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
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
Would anyone be willing to donate for an updated version of this modification that worked on the latest version of FlashChat and SMF?
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.
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.
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.
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..............
***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.
13. Execute Modification ./chat/inc/flashChatTag.php File not found
From where we get above file.............
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.
Ok.............. and that Flash Chat I need to BUY first in $5.............. and then this 2.1.2 MOD can help me in integration..............
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.
I don't suppose SMF 1.1 will get the same treatment? ie: updated plugin.
I am actually considering updating this within the next couple weeks, assuming Tyrsson is still okay with that.
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.
I'm not sure...you'd be better off addressing that question in the Tufat community.
Oh yeah..... them. I would have better luck finding Jimmy Hoffa over there before any Tufat staff. LOL Thanks anyway.
Tufat staff have always been helpful to me...I wish you luck :)
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.
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.
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.
Anyone?
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!
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.
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.
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.
^ 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
Would anyone be interested in a paid FlashChat integration modification? $5.00 bucks a license? For the latest of both SMF and FlashChat?
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.
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.
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?
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 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.
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?
Still relatively far in the future unless someone wants to fund the development.
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
you'll get support for flashchat itself over at flashchat support. :P
on a side-note, iframes... ick...
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)
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.
I think I might eventually rewrite this and release it as a paid modification.
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
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
I would be willing to contribute $5 for it too.
Who said anything about $5.00 bucks? It'd be closer to $10-15.
As long as it works as advertised, even that would still be worth it.
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.
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
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.
Lab... name calling? Please...
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?
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.
As someone older than both of you... Knock it off guys.
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.
And, as obnoxious as he might be... THAT was going way beyond obnoxious. Deleted.
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)
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
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.
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.
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!
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
Kindred this is the instructions.. i'd leave it but eh.. if you think you want to remove it :P
thank you Inti31 8)
Plus, FlashChat by Tufat is really buggy and attracts hackers on your site.
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
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.
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.
eh.. hackers and kiddie scripters, I still giggle over.. let them come, it's just more amusing entertainment :P
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..
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.
You don't need any evidence to know v4 was pretty buggy.
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:)
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?
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. ;)
ups.. I won't raise any dicussion for pro & cons about fc - i guess i should remove my little instruction, should I?
Feel free to keep your instructions if they're about FlashChat.
Inti31, you are good, promise!!
thank you for the instructions, i am sure someone will be able to use them! ;)
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
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.
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.
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?
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?!
Tis question belongs ver on the flash chat support forums...
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.
I'll go ahead and send you a PM explaining what the deal with FlashChat is.
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.
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.
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?
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. ;)
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?
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?
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:)
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?
I've thought about it. I'd need a collection of donations to release it.
Like how much you talking about to release it and would it involve all the codeing the old flashchat did if so not interested
It seems to not run on 2.0.6 version as well. Do you know if there will be an updated version anytime soon?
Moved to the Chat/Shoutboxes category.
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)
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
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
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
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....
is it possible to have this for my smf 2.0.15?
I don't believe so...
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.