FlashChat Integration

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

Previous topic - Next topic

jamesk

Quoteseems to work just fine...

Is it just me that gets errors when collapsing/expanding boards?

Kindred

why/how would that be related to the flashchat mod?
Сл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."

jamesk

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

en_shua

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

jossanaijr

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?

soulmanpete

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

jossanaijr

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.

jossanaijr

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

Kindred

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.
Сл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."

en_shua

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?

Kindred

you should be calling  www.whateverdomain.com/forum/chat/flashchat.php to open the integrated version....
Сл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."

en_shua

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.

Kindred

Сл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."

Greenman

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?

jamesk

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? 

jamesk

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.


Kindred

I just tried this with no errors showing up...

Сл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."

jamesk

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']?

Greenman

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

Kindred

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.
Сл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."

Advertisement: