News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

FlashChat Integration

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

Previous topic - Next topic

donjoe

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.

Harvester

in my database, why does the table smf_fc_patterns have a 148,533 records?

what is this table for?

Simplemachines Cowboy

Good question. My install of FC 4.x.x doesn't have that db table.
Do you have fc 5?
My SMF forum: The Open Range

Tyrsson


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
PM at your own risk, some I answer, if they are interesting, some I ignore.

Kat9119

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!

Kat9119

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?

donjoe

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

SteveW

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
Watch the skies!!

Kindred

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.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

J-Bird

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
Love, often

Tyrsson

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.
PM at your own risk, some I answer, if they are interesting, some I ignore.

b4pjoe

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.

SteveW

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 :)
Watch the skies!!

b4pjoe

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.

J-Bird

#1114
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. :)
Love, often

Tyrsson

Sorry I had some stuff come up yesterday evening. Will look into this here shortly.
PM at your own risk, some I answer, if they are interesting, some I ignore.

J-Bird

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)
Love, often

J-Bird

Love, often

Tyrsson

PM at your own risk, some I answer, if they are interesting, some I ignore.

Tyrsson

@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>';
PM at your own risk, some I answer, if they are interesting, some I ignore.

Advertisement: