FlashChat Integration

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

Previous topic - Next topic

Simplemachines Cowboy

Anhinga,
You will get much faster support on this mod if you post in Daniel's personal support forum for this flashchat mod:
http://www.daniel15.com/forum/index.php?board=22.0
My SMF forum: The Open Range

Anhinga

I already have; I'm "Agahnim" there.  My posts there have been ignored for two days, just like here.

Col

Hi Anhinga,

You should be more patient. Daniel is doing this in his spare time; is still at school studying for exams (increadibly, he's just 16); and no doubt has better things to do with his time, like having fun! He's keen on this stuff; he has not abandoned it. He just has other proiorities at this time.

ROGUE-Master

Could someone please make a Helios_Multi (its a popular theme) FlashChat button or link me to one please?  Thanks!

xjimdim

Quote from: Goad on May 17, 2007, 01:26:48 AM
Quote from: Goad on May 17, 2007, 12:59:16 AM
I hate my host....(1and1)

after install, i got this on any page i try....even the index.php.

Error 500 - Internal server error
An internal server error has occured!
Please try again later.


nevermind, im a retard.

if anyone just happens to have this same issue and searches and finds this post....

just go to domain.com/[chatdir]/ and finish the install  ;D

man what do you mean???? i have the same problem with you but i cant fix it... the chat is installed ok.

what do i have to do????????????

Daniel15

I still have no idea about the Coppermine conflict. Can someone please point me to where the Coppermine bridge for SMF is, and how to install it? I'll check it out.

QuoteI am getting an error when trying to uninstall the 0.1 mod.

"3.     Execute Modification     ./index.php     Test failed"

Anyone have a suggestion?
Just continue uninstalling it, it should still be fine.

QuoteI'm not using any other mods, so I know that isn't the reason for this problem, and my theme is a customized Babylon theme.  My forum is http://www.captainoccam.com/forum/ , in case you want to examine it for yourself.
Could you please post the code you used for the button?

QuoteHello excuse my english, Ill try explain as best I can.

I have installed Flash chat and the mod, and everything seems to work fine except for a few things.

I have been looking around in this forum to see if I could find any answer for my problem. So I ending up to ask for help.

After I installed the mod. It dont show any chat button on the meny. So I went into the configuration in admin.
It looked like this
Is your forum using English as the default? If not, what language are you using?
Do you have a file called Themes/default/languages/Modifications.english-utf8.php? If so, copy all the FlashChat stuff from Themes/default/languages/Modifications.english.php into that file.

QuoteHas support for this mod been abandoned, or what?
As Col said, I'm doing all this in my spare time. Unfortunately, I have other priorities at the moment (school being the main one), and so can not check back here every day.

QuoteThe popup window that's supposed to log me out still gives me a 404 error.
What URL is it trying to go to?

QuoteCould someone please make a Helios_Multi (its a popular theme) FlashChat button or link me to one please?  Thanks!
You'll need someone here to make you a button for it using Photoshop or a similar graphics utility (I don't have anything installed at the moment). If you can get a suitable button, I'll give you the code to add to index.template.php.
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!

Anhinga

#326
QuoteCould you please post the code you used for the button?

I figured out for myself what was the problem in this case.  The button was linking to chat/flashchat.php , which is the URL of the chatroom outside of the forum.  What I needed to do was make it link to the script URL action=chat.

QuoteWhat URL is it trying to go to?

It's trying to go to http://www.captainoccam.com/forum/dologout.php?id=****** , where the stars represent my login session ID (I guess).  The part after the equals sign is different each time.

The odd thing is that if I access the chatroom separately from the forum, at http://www.captainoccam.com/forum/chat/flashchat.php , the logout popup window works the way it's supposed to.  In that case, its URL is http://www.captainoccam.com/forum/chat/dologout.php?id=****** .  But even if I make a copy of dologout.php from the "chat" directory and upload it in the "forum" directory, after changing the path to common.php in the second line, I still get a 404 error when I try to leave the chatroom while it's part of the forum.

Daniel15

QuoteIt's trying to go to http://www.captainoccam.com/forum/dologout.php?id=****** , where the stars represent my login session ID (I guess).  The part after the equals sign is different each time.
I think the ID is just a random string, to prevent caching issues (but I could be wrong :P)
Did you make a copy of dologout.php in the forum's directory (this should have been done automatically by the installer)?. If not, create a file called dologout.php in your forum's directory, and place this into it:

<?php
// Let's go to the right place...
require('chat/dologout.php');
?>


Then, going to http://www.captainoccam.com/forum/dologout.php should no longer give a 404 error, and logouts 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!

Kirsten07734

Daniel's mod installed and runs flawlessly on my board.  However, I did find a problem with the FlashChat software itself.  Members have been able to bypass the password I set on my chat rooms.  I have a kids' forum and don't want them chatting without moderator supervision for their safety.  Unfortunately, if there is a flaw in a system, odds are a kid will find it and they did. 

The problem isn't with Daniel's mod, it works perfectly.  The problem is with the FlashChat software itself.  I reported this problem to the FlashChat people but there was no fix available and no time table on when it might be fixed in the software.  If you don't intend to use the password function I highly recommend FlashChat and this mod for integrating it with your SMF forum.

Anhinga

Quote from: Daniel15 on May 25, 2007, 08:38:33 PM
QuoteIt's trying to go to http://www.captainoccam.com/forum/dologout.php?id=****** , where the stars represent my login session ID (I guess).  The part after the equals sign is different each time.
I think the ID is just a random string, to prevent caching issues (but I could be wrong :P)
Did you make a copy of dologout.php in the forum's directory (this should have been done automatically by the installer)?. If not, create a file called dologout.php in your forum's directory, and place this into it:

<?php
// Let's go to the right place...
require('chat/dologout.php');
?>


Then, going to http://www.captainoccam.com/forum/dologout.php should no longer give a 404 error, and logouts should work :)

That file is already there; I've checked.  It was added by the installer.  However, it still produces a 404 error whenever someone leaves the chatroom.

CHwebby

Quote from: Daniel15 on May 25, 2007, 08:14:18 AM
I still have no idea about the Coppermine conflict. Can someone please point me to where the Coppermine bridge for SMF is, and how to install it? I'll check it out.

Is this what you are looking for? 
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#integrating

abda53

Quote from: CHwebby on May 10, 2007, 02:45:57 PM
I get this error.....

Database Error: No Database Selected
Sources/Subs.php
Line: 3***

im getting this error too, but i dont have coppermine installed. it works fine when i take that part out.. but id like to have it in there.. any ideas?

mwmconsulting

Thanks for the great mod Daniel.

Have you tested it in conjunction w/ nneonneo's Shout Box mod?

http://custom.simplemachines.org/mods/index.php?mod=585

As soon as I installed your mod, my shoutbox mod broke.  Just sits there saying it's loading.

Any ideas?

Cheers!

- MWM
========================
MWM Consulting, Inc.
InSiteful Business Solutions
http://www.mwmconsulting.biz
========================

brianjw

I need help. I used this chat before and deleted the install.php because it said to. And here I am installing this mod, I get a 500 Internal Server Error. Can someone help me?

Maybe attach install.php or something :)

Brianjw

5cakids


brianjw

#335
Thanks lol. Thanks soo much :D

Except the install.php is giving me errors like for some missing directory called "install_files" and some file in the chat directory root called "inc" something. I don't know :(

4X4UK

Got the same problem integrating flashchat on smf 1.1.2 with coppermine integrated get the error us subs.php at line 3190

it basically appears to disable the coppermine gallery, the errors get reoposted in the forum error log appear to indicate that coppermine cant find the database

maybe its this in the stub.php file not sure but if the coppermine bridge is also using the same global variable $boarddir then that may be the cause

global $boarddir, $db_prefix;
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
[/code

5cakids

Can you try installing it again, start from scratch? PM me if you are still having trouble.

4X4UK

I will unsinstall and reinstall it and see what happens, may not get it done today, could be the weekend before I get a chance

4X4UK

well I un-installed the flashchat mod and the coppermine gallery works again.

re-installed flashchat mod and the gallery stops working as decribed above.  As soon as I manually remove the following code from subs.php the gallery functions normally again and most of the flashchat integration still functions although it doesn't display whos online in chat and produces other errors due to the missing code in subs.php

// --- Begin FlashChat Integration ---
// Only bother grabbing the data if we need it (ie. we're on the board
// index, or the information will be shown at the top of the forum).
// !!! $modSettings['fc_showUserCount'] just needs the count, not the whole query!
if (!empty($modSettings['fc_showUsers']) || !empty($modSettings['fc_showUserCount']) || (empty($context['current_action']) || $context['current_action'] == 'boardindex' || $context['current_action'] == 'forum'))

{
global $boarddir, $db_prefix1;
// Get the FlashChat database config (for the prefix)
include($boarddir . '/chat/inc/config.srv.php');
// 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 {$GLOBALS['fc_config']['db']['pref']}connections AS fc
LEFT JOIN {$db_prefix1}members AS mem ON (mem.ID_MEMBER = fc.userid)
LEFT JOIN {$db_prefix1}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
LEFT JOIN {$GLOBALS['fc_config']['db']['pref']}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']) . ')';

// Groups online
if (!isset($context['online_groups'][$row['ID_GROUP']]))
$context['online_groups'][$row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => $row['groupName'],
'color' => $row['onlineColor']
);
}
mysql_free_result($result);
}
// --- End FlashChat Integration ---

Advertisement: