News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

FlashChat Integration

Started by Tyrsson, January 05, 2007, 03:44:53 AM

Previous topic - Next topic

jiminoregon

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

Burtie

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

Col

Hi Bertie,

I would think that the FlashChat site would be able to help with that.

Daniel15

#383
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 ;).
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Radioshqip

#384
hello i'm having a problem Installing the FlashChat i did install but wen i try to go to the Forum Home page it wont work
1. Extract File ./Sources/Chat.php&nbsp;
2. Extract File ./Themes/default/Chat.template.php&nbsp;
3. Extract File ./dologout.php&nbsp;
4. Execute Modification ./index.php Test successful
5. Execute Modification ./SSI.php Test successful
6. Execute Modification ./Sources/ModSettings.php Test successful
7. Execute Modification ./Sources/Subs.php Test successful
8. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
9. Execute Modification ./Themes/default/index.template.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
11. Execute Modification ./Themes/default/languages/Help.english.php Test successful
12. Execute Modification ./chat/inc/flashChatTag.php Test successful
13. Execute Modification ./chat/inc/cmses/smfCMS2.php Test successful
14. Execute Code add_settings.php



The package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes.


but wen i klick to Home on forum it comes

The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.

--------------------------------------------------------------------------------

Please try the following:

Click the&nbsp; Refresh button, or try again later.

If you typed the page address in the Address bar, make sure that it is spelled correctly.

To check your connection settings, click the Tools menu, and then click Internet Options. On the Connections tab, click Settings. The settings should match those provided by your local area network (LAN) administrator or Internet service provider (ISP).
If your Network Administrator has enabled it, Microsoft Windows can examine your network and automatically discover network connection settings.
If you would like Windows to try and discover them,

i can go back and unistall the FlashChat and it works fine after 


can anybody help me with this is there a problem with a FlashChat
or is me :)

perro88

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

auspool

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

Col

Quote from: auspool on July 29, 2007, 03:00:34 AM
i tried to delete the room names at the install process and put just 2 rooms that i wanted them called and deleted the others
but when it was all installed it put my rooms&nbsp; and the others it comes with
how do i delete the ones i dont want ???

daniel d

Go your chat admin: http://www.yoursite.com/forum/chat/admin/index.php

Enter 'Rooms' to make the changes. I had exactly the same happen with my installation.

Radioshqip

#388
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

brianjw

Well I don't know about if this mod uses iframes in anyway or somehow calls a flash object directly into the page but anyway...

If an iframe in this mod: Call the flashchat.php file through there.
If a swf object directly in the action of this mod (aka action=chat): Change the url to include a different url other than scripturl or boardurl etc.
Like call it out like this: http://mysite.com/chat/flashchat.php

To do this you may have to modify a chat.template.php. (not sure if you have a file like this) If you do have this file it would be under /Themes/default/chat.template.php

Hope this helps.
Also if you're looking to speak with daniel15 directly and get faster support
Quote from: Daniel15 on July 27, 2007, 07:23:47 AM
Also, please post any support queries at my forum (www.daniel15.com), you're likely to get a quicker response. Thanks! :)

Brianjw :)

perro88

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

hobox

#391
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?

brianjw

Enough with the support in here lol! Post it at Daniel15's site.
http://www.daniel15.com

hobox

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.

brianjw


Yigal

we have to pay for this Mod?!?
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

Col


texterted

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

brianjw

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

perro88

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

Advertisement: