FlashChat Integration

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

Previous topic - Next topic

wickedstangs

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

motuoverseer

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.
We must stop asking: How can these things be?  And begin asking: Why are these things?

Daniel15

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

Simplemachines Cowboy

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.
My SMF forum: The Open Range

rad1701

#84
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!

fasterthanyours

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.

fasterthanyours

Does anyone know how to make a php block for MKPORTAL to show Number of Users in Chat?

xtremecruiser

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)

Daniel15

QuoteI also only seem to be getting a little colon followed by the names of the users in the chat on my site.
Check that Modifications.english.php got modified correctly. Are you using a different language, or English only?

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

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

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

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

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

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

?>


It's not tested by me (I don't use MKPortal anymore), but it should work :)  
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!

wickedstangs

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?

SWTrisha

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

Daniel15

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

Daniel15

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

SWTrisha

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.

Daniel15

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

SWTrisha



wickedstangs

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

Daniel15

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

SWTrisha

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.

 
Advertisement: