TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 313
  • Total: 313

Flashchat (Members in Chat Block)

Started by gerrymo, November 08, 2005, 06:01:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gerrymo

Quote from: j-lo on March 16, 2006, 08:54:19 PM
Wondering if anyone uses flashchat AND has found a way to host moderated chat events with it. 

By "moderated" I mean spectators submit comments/questions which go to the moderator who selects which ones go on to the guest who then responds.

Spectators comments/questions do not show in room unless approved by moderator and such...  I hope you get the idea.

Any assistance appreciated!
http://www.startreknewvoyages.com


I'm not even sure it can be done. But I'd echo Ichbin, and suggest asking over at the Flashchat Forum.

Alduras

I have my Flashchat lying under an other domain, than my SMF Board,how does the code look like than?

G6Cad

#42
First in your Chat.template.php you have to set the right path to where the chat script is

Make sure itÂÃ,´s the correct path to the chat. If it works from the browser, you have the right link path

// load the chat
               echo '<iframe width="100%" height="500" src="http://www.the url to the Chat/chat/flashchat.php"></iframe>';


Add this in to an php article

global $boardurl;
echo '
<iframe frameborder="0" height="100" src="', $boardurl, 'http://www.yoururl.com/path to flashchat/flashchat/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="yes" border="0" allowtransparency="true"></iframe>';


And change code in your Boardindex.template.php to this

// flashchat users
echo '
<tr>
<td class="catbg" colspan="2">FlashChat Users</td>
</tr>
<tr>
<td class="windowbg4"><a href="' . $scripturl . '?action=chat"><img src="', $settings['images_url'], '/english/chat.gif" alt="', $txt[158], '" border="0" /></a></td>
<td class="windowbg3" width="100%"><iframe frameborder="0" height="100" src="', $GLOBALS['boardurl'], 'http://www.yoururl.com/path to flashchat/FlashChat/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe></td>
</tr>';

metacortex


RoarinRow

I used to have the Flashchat status in a chat box, but I noticed there was delay when loading the page and even saw some errors in my server error log.

Instead I moved the Flashchat status to the Users Online section with this code in my boardindex.template.php

// "Users online" - in order of activity.

    $chatrequest = db_query("
            SELECT COUNT(*) AS numb
            FROM  [b]smf[/b]_fc_connections
            WHERE userid IS NOT NULL", __FILE__, __LINE__);
         list ($chatcount) = mysql_fetch_row($chatrequest);   
         mysql_free_result($chatrequest);
     
if ( $chatcount == "1" ) {
$singularplural2 = "";
} else {
$singularplural2 = "s";
}

echo '
<tr>
<td class="[b]titlebg[/b]" colspan="2">', $txt[158], '</td>
</tr><tr>
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" />', $context['show_who'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">';

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']; echo ', ' . $chatcount . ' User'.$singularplural2.' in Chat';


You have to make sure you edit the part I bold in the code to the name of your database of where your Flashchat is kept.

For the second part I bolded you may need to change that to 'catbg' instead of 'titlebg' depending on what theme you're using.


SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

YahMan

Is there a way to change the font color to white?

RoarinRow

Quote from: ÂÃ,©Pete on October 11, 2006, 11:41:18 PM
Is there a way to change the font color to white?

I'm sure there is, but I don't know how to do that   :o

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

tamasir

#47
Quote from: gerrymo on November 08, 2005, 06:01:39 PM
This will show which members are using chat in a php block.


global $boardurl;
echo '
<iframe frameborder="0" height="100" src="', $boardurl, '/chat/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe>';

My code:echo '
<iframe frameborder="0" height="100" src="', $boardurl, '/forum/chat/info_embedded.php" style="width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden;" scrolling="no" border="0" allowtransparency="true"></iframe>';



Not Found
The requested URL http:// was not found on this server.
Here the URL test site
xxxx/x//forum/chat/info_embedded.php
Thanks: tamasir~

Crip

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



tamasir

historyhunter - crip!
Vauuuu...!I am very glad of it . Thanks.. Thanks.. To be in good order my Members in Chat Block :up: :up:.
tamasir~

This website is proudly hosted on Crocweb Cloud Website Hosting.