vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Flashchat: Who is chatting (https://vborg.vbsupport.ru/showthread.php?t=73042)

Paul M 04-18-2005 08:21 PM

That's why it doesn't work then - the header has already been called by then.

Find ;

Code:

// get new private message popup
and put it just above that.

:)

MortysTW 04-18-2005 09:37 PM

If I'm ever asked who my hero is, I'll proudly say Paul M.

Thanks buddy. Works like a champ. Now I just gotta get my "Who's Online" working at the same location and I'm good to go.

Thanks again!

Paul M 04-18-2005 10:07 PM

Glad it worked. :) You might want to check this hack as well if you are using flashchat 3.9.

I'm surprised at how many people seem to use flashchat, I never expected this to reach so many installs. :)

delilah429 04-21-2005 04:34 PM

I did everything you said step-by-step and the second piece of the hack works beautifully, and i even see the spot for Who's Chatting

But when i modify the index.php file, i get this error:

Parse error: parse error, unexpected ',' in /home/content/a/d/m/admin032769/html/index.php on line 35

any ideas? is spacing an issue at all? i amusing notepad and not sure if maybe that is putting in some weird chars?

delilah429 04-21-2005 04:36 PM

Not sure what you need to see of my index.php but here is the relevant portion:

PHP Code:

// ############# Paul M - Flashchat - Who is in the chat v2.00 ###############

$chatlist $DB_site->query("SELECT connections.userid, connections.roomid, rooms.name, rooms.ispublic, 

connections.start, 
user.usergroupid, user.displaygroupid, user.options, user.username, groupa.opentag as opentaga, groupa.closetag 

as closetaga, 
groupb.opentag as opentagb, groupb.closetag as closetagb
FROM " 
TABLE_PREFIX "connections as connections
LEFT JOIN " 
TABLE_PREFIX "rooms as rooms ON(connections.roomid = rooms.id)
LEFT JOIN " 
TABLE_PREFIX "user as user ON(connections.userid = user.userid)
LEFT JOIN " 
TABLE_PREFIX "usergroup as groupa ON(user.usergroupid = groupa.usergroupid)
LEFT JOIN " 
TABLE_PREFIX "usergroup as groupb ON(user.displaygroupid = groupb.usergroupid)
WHERE connections.userid IS NOT NULL ORDER BY start" 
);
unset(
$chatters);
$totalchatters 0;
while (
$chat $DB_site->fetch_array($chatlist))
{
    
$totalchatters += 1;
    
$roomname "In private room";
    
$chat['opentag'] = $chat['opentaga'] ;
    
$chat['closetag'] = $chat['closetaga'] ;
    if (
$chat['displaygroupid']) 
    {
        
$chat['opentag'] = $chat['opentagb'] ;
        
$chat['closetag'] = $chat['closetagb'] ;
    }
    if (
$chat['ispublic']) { $roomname "In ".$chat['name']; }
    
$chatters .= "<a href='member.php?u=$chat[userid]' title=\"$roomname\" >";
    
$chatters .= $chat['opentag'].$chat['username'].$chat['closetag']."</a>, ";
}
if (
$chatters)
{
    
$chatters substr($chatters0strlen($chatters)-2);
}
else
{
    
$chatters "No one is currently using the chat";
}

// ############# End of Who is in the chat ###############

// ### LOGGED IN USERS #################################################
$activeusers '';
if (
$vboptions['displayloggedin'])
{
    
$datecut TIMENOW $vboptions['cookietimeout'];
    
$numbervisible 0;
    
$numberregistered 0;
    
$numberguest 0;

    
$forumusers $DB_site->query("
        SELECT
            user.username, (user.options & 
$_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
            session.userid, session.inforum, session.lastactivity,
            IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
        FROM " 
TABLE_PREFIX "session AS session
        LEFT JOIN " 
TABLE_PREFIX "user AS user ON(user.userid = session.userid)
        WHERE session.lastactivity > 
$datecut
        " 
iif($vboptions['displayloggedin'] == 1"ORDER BY username ASC") . "
    "
);

    if (
$bbuserinfo['userid'])
    {
        
// fakes the user being online for an initial page view of index.php
        
$bbuserinfo['joingroupid'] = iif($bbuserinfo['displaygroupid'], $bbuserinfo['displaygroupid'], 

$bbuserinfo['usergroupid']);
        
$userinfos = array
        (
            
$bbuserinfo['userid'] => array
            (
                
'userid' => $bbuserinfo['userid'],
                
'username' => $bbuserinfo['username'],
                
'invisible' => $bbuserinfo['invisible'],
                
'inforum' => 0,
                
'lastactivity' => TIMENOW,
                
'usergroupid' => $bbuserinfo['usergroupid'],
                
'displaygroupid' => $bbuserinfo['displaygroupid'],
            )
        );
    }
    else
    {
        
$userinfos = array();
    }
    
$inforum = array();

    while (
$loggedin $DB_site->fetch_array($forumusers))
    {
        
$userid $loggedin['userid'];
        if (!
$userid)
        {    
// Guest
            
$numberguest++;
            
$inforum["$loggedin[inforum]"]++;
        }
        else if (empty(
$userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < 

$loggedin['lastactivity']))
        {
            
$userinfos["$userid"] = $loggedin;
        }
    }

    foreach(
$userinfos AS $userid => $loggedin)
    {
        
$numberregistered++;
        if (
$userid != $bbuserinfo['userid'])
        {
            
$inforum["$loggedin[inforum]"]++;
        }
        
$loggedin['musername'] = fetch_musername($loggedin);
        if (
fetch_online_status($loggedin))
        {
            
$numbervisible++;
            eval(
'$activeusers .= ", ' fetch_template('forumhome_loggedinuser') . '";');
        }
    }

    
// memory saving
    
unset($userinfos$loggedin);

    
$activeusers substr($activeusers 2); // get rid of initial comma

    
$DB_site->free_result($loggedins);

    
$totalonline $numberregistered $numberguest;
    
$numberinvisible $numberregistered $numbervisible


Paul M 04-21-2005 04:57 PM

Posting a section of code for all to see is not something you should be doing. Please hide all code inside code/php tags. It's also a waste of time since there are no line numbers. Also, you are not showing as having installed the hack, I will normally only provide support if you have clicked install. Thanks. :)

delilah429 04-21-2005 05:18 PM

Sorry - i didn't know how to do the code inside php tags? for future reference, how should i do that?

Anyway, i clicked Install - sorry about that.

Anyway, line 35 references $globaltemplates = array(

so do i need to add a reference to this new template that is being called?

Paul M 04-21-2005 05:47 PM

There is no new template associated with this hack - and line 35 is well away from the changes made by this hack. I suggest you revert to a fresh [original] copy of index.php and make the edit again.

MortysTW 04-22-2005 01:56 AM

Also for the future, using notepad is probably about the safest thing you could use. NotePad doesn't add in junk. Word would. Just FYI.

Also, delilah429, this might sound really stupid, but you didn't by any chance remove all the code that was ABOVE the logged in users when you added the chat snippet in your index.php did you? I just found it odd you chose to include soooo much of everything below the LOGGED IN USERS but didn't include anything above the CHAT snippet in what you pasted in above.

delilah429 04-22-2005 02:00 AM

Well I was just coming back here to say that I downloaded EditPlus to see if it was something the editor was doing and it worked PERFECTLY! so i am not sure - and no, i didn't delete what was above that line - it was silly just to show that snippet though - irrelevant, i suppose - but like i said i did the exact same thing and it worked - go figure

Love this!

Mr_Bob 04-24-2005 02:45 AM

Is the upgraded version supposed to work with the newly released FlashChat 4.0? If so, mine is not working :D. I logged into chat and refreshed the forum homepage to find it still said no users in chat. Is this supposed to be working with 4.0?

Paul M 04-24-2005 12:56 PM

Quote:

Originally Posted by Mr_Bob
Is the upgraded version supposed to work with the newly released FlashChat 4.0? If so, mine is not working :D. I logged into chat and refreshed the forum homepage to find it still said no users in chat. Is this supposed to be working with 4.0?

The upgrade was nothing to do with any version of Flashchat, it was an alteration to take account of the displaygroupid in vB.

However, this hack works perfectly for Flashchat 4.0.0 (beta) - I have been running this version of the chat on our forum for 2/3 weeks now, so you must have made a mistake somewhere.

Mr_Bob 04-24-2005 02:27 PM

Quote:

Originally Posted by Paul M
The upgrade was nothing to do with any version of Flashchat, it was an alteration to take account of the displaygroupid in vB.

However, this hack works perfectly for Flashchat 4.0.0 (beta) - I have been running this version of the chat on our forum for 2/3 weeks now, so you must have made a mistake somewhere.

I must, however FlashChat came out of beta on the 21. It worked well when I was working with the beta, but not now. I'll post up part of my index.php file and forumhome template

PHP Code:

}
// ############# Paul M - Flashchat - Who is in the chat v2.00 ###############

$chatlist $DB_site->query("SELECT connections.userid, connections.roomid, rooms.name, rooms.ispublic, connections.start, 
user.usergroupid, user.displaygroupid, user.options, user.username, groupa.opentag as opentaga, groupa.closetag as closetaga, 
groupb.opentag as opentagb, groupb.closetag as closetagb
FROM " 
TABLE_PREFIX "connections as connections
LEFT JOIN " 
TABLE_PREFIX "rooms as rooms ON(connections.roomid = rooms.id)
LEFT JOIN " 
TABLE_PREFIX "user as user ON(connections.userid = user.userid)
LEFT JOIN " 
TABLE_PREFIX "usergroup as groupa ON(user.usergroupid = groupa.usergroupid)
LEFT JOIN " 
TABLE_PREFIX "usergroup as groupb ON(user.displaygroupid = groupb.usergroupid)
WHERE connections.userid IS NOT NULL ORDER BY start" 
);
unset(
$chatters);
$totalchatters 0;
while (
$chat $DB_site->fetch_array($chatlist))
{
    
$totalchatters += 1;
    
$roomname "In private room";
    
$chat['opentag'] = $chat['opentaga'] ;
    
$chat['closetag'] = $chat['closetaga'] ;
    if (
$chat['displaygroupid']) 
    {
        
$chat['opentag'] = $chat['opentagb'] ;
        
$chat['closetag'] = $chat['closetagb'] ;
    }
    if (
$chat['ispublic']) { $roomname "In ".$chat['name']; }
    
$chatters .= "<a href='member.php?u=$chat[userid]' title=\"$roomname\" >";
    
$chatters .= $chat['opentag'].$chat['username'].$chat['closetag']."</a>, ";
}
if (
$chatters)
{
    
$chatters substr($chatters0strlen($chatters)-2);
}
else
{
    
$chatters "No one is currently using the chat";
}

// ############# End of Who is in the chat ###############

// ### LOGGED IN USERS #################################################
$activeusers '';
if (
$vboptions['displayloggedin'])
{
    
$datecut TIMENOW $vboptions['cookietimeout'];
    
$numbervisible 0;
    
$numberregistered 0;
    
$numberguest 0;

    
$forumusers $DB_site->query("
        SELECT
            user.username, (user.options & 
$_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
            session.userid, session.inforum, session.lastactivity,
            IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
        FROM " 
TABLE_PREFIX "session AS session
        LEFT JOIN " 
TABLE_PREFIX "user AS user ON(user.userid = session.userid)
        WHERE session.lastactivity > 
$datecut
        " 
iif($vboptions['displayloggedin'] == 1"ORDER BY username ASC") . "
    "
);

    if (
$bbuserinfo['userid'])
    {
        
// fakes the user being online for an initial page view of index.php
        
$bbuserinfo['joingroupid'] = iif($bbuserinfo['displaygroupid'], $bbuserinfo['displaygroupid'], $bbuserinfo['usergroupid']);
        
$userinfos = array
        (
            
$bbuserinfo['userid'] => array
            (
                
'userid' => $bbuserinfo['userid'],
                
'username' => $bbuserinfo['username'],
                
'invisible' => $bbuserinfo['invisible'],
                
'inforum' => 0,
                
'lastactivity' => TIMENOW,
                
'usergroupid' => $bbuserinfo['usergroupid'],
                
'displaygroupid' => $bbuserinfo['displaygroupid'],
            )
        );
    }
    else
    {
        
$userinfos = array();
    }
    
$inforum = array();

    while (
$loggedin $DB_site->fetch_array($forumusers))
    {
        
$userid $loggedin['userid'];
        if (!
$userid)
        {    
// Guest
            
$numberguest++;
            
$inforum["$loggedin[inforum]"]++;
        }
        else if (empty(
$userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
        {
            
$userinfos["$userid"] = $loggedin;
        }
    }

    foreach(
$userinfos AS $userid => $loggedin)
    {
        
$numberregistered++;
        if (
$userid != $bbuserinfo['userid'])
        {
            
$inforum["$loggedin[inforum]"]++;
        }
        
$loggedin['musername'] = fetch_musername($loggedin);

        if (
fetch_online_status($loggedin))
        {
            
$numbervisible++;
            eval(
'$activeusers .= ", ' fetch_template('forumhome_loggedinuser') . '";');
        }
    }

    
// memory saving
    
unset($userinfos$loggedin);

    
$activeusers substr($activeusers 2); // get rid of initial comma

    
$DB_site->free_result($loggedins);

    
$totalonline $numberregistered $numberguest;
    
$numberinvisible $numberregistered $numbervisible;

    
// ### MAX LOGGEDIN USERS ################################
    
$maxusers unserialize($datastore['maxloggedin']);
    if (
intval($maxusers['maxonline']) <= $totalonline)
    {
        
$maxusers['maxonline'] = $totalonline;
        
$maxusers['maxonlinedate'] = TIMENOW;
        
build_datastore('maxloggedin'serialize($maxusers));
    }

    
$recordusers $maxusers['maxonline'];
    
$recorddate vbdate($vboptions['dateformat'], $maxusers['maxonlinedate'], true);
    
$recordtime vbdate($vboptions['timeformat'], $maxusers['maxonlinedate']);

    
$show['loggedinusers'] = true;
}
else
{
    
$show['loggedinusers'] = false;
}

// ### GET FORUMS & MODERATOR iCACHES ########################
cache_ordered_forums(1);
if (
$vboptions['showmoderatorcolumn'])
{
    
cache_moderators();
}
else
{
    
$imodcache = array();
    
$mod = array();
}

// define max depth for forums display based on $vboptions[forumhomedepth]
define('MAXFORUMDEPTH'$vboptions['forumhomedepth']);

$forumbits construct_forum_bit($forumid); 

Also here is the portion of my forumhome template:
Code:

<!-- end logged-in users -->
<!-- who's in flashchat -->
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatusers')"><img id="collapseimg_forumhome_chatusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatusers].gif" alt="" border="0" /></a>
                        Members currently in the Chat: $totalchatters
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_chatusers" style="$vbcollapse[collapseobj_forumhome_chatusers]">
        <tr>
                <td class="alt2"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="Users online today" border="0" /></td>
                <td class="alt1" width="100%"><div class="smallfont">$chatters</div></td>
        </tr>
</tbody>
<!-- end who's in flashchat -->
</if>
<tbody>

Hope you can help me out, this is a great hack I won't give up on without a fight :).

Paul M 04-24-2005 03:56 PM

Quote:

Originally Posted by Mr_Bob
I must, however FlashChat came out of beta on the 21. It worked well when I was working with the beta, but not now.

Hmmm. I wasn't aware that it had been released in full - I'll grab the latest version then to see if anything has changed.

Mr_Bob 04-24-2005 04:43 PM

Quote:

Originally Posted by Paul M
Hmmm. I wasn't aware that it had been released in full - I'll grab the latest version then to see if anything has changed.

Yeah, there are now two VBCMPS files. VBCMPS2 being for 3.0.7. Also, I know commen.php and many other files changed drasticly. There were also changes to the MYSQL tables. This may be the problem.

PS: Do not install the bots:), there is a bug where if you install them with a cms you will get call to undefined member errors. This is supposed to be fixed in a later release.

Paul M 04-24-2005 10:11 PM

Well they really f**ked up from 4.0.0 beta to 4.0.1 didn't they :rolleyes: - Yes, the BOTS are a pain - I had to edit proc.php despite turning them off.

The problem with the hack seems to be down to the fact that 4.0.1 now uses it's own table prefix system with vB - as well as the vB table prefix system - and to make it worse, there is an error in the CMS2 file as well. The default prefix they use seems to be "flashchat_", but you will find it in the config.srv.php file as below ;

Code:

<?php
        $GLOBALS['fc_config']['db'] = array(
                'host' => 'localhost',
                'user' => 'sqluser',
                'pass' => 'password',
                'base' => 'database',
                'pref' => '',
//                'pref' => 'flashchat_',
        );
?>

Try the following experimental fix and let me know how it goes.


Find this in the Hack Code ;

PHP Code:

// ############# Paul M - Flashchat - Who is in the chat v2.00 ###############

$chatlist $DB_site->query("SELECT connections.userid, connections.roomid, rooms.name, rooms.ispublic, connections.start, 
user.usergroupid, user.displaygroupid, user.options, user.username, groupa.opentag as opentaga, groupa.closetag as closetaga, 
groupb.opentag as opentagb, groupb.closetag as closetagb
FROM " 
TABLE_PREFIX "connections as connections
LEFT JOIN " 
TABLE_PREFIX "rooms as rooms ON(connections.roomid = rooms.id)
LEFT JOIN " 
TABLE_PREFIX "user as user ON(connections.userid = user.userid)
LEFT JOIN " 
TABLE_PREFIX "usergroup as groupa ON(user.usergroupid = groupa.usergroupid)
LEFT JOIN " 
TABLE_PREFIX "usergroup as groupb ON(user.displaygroupid = groupb.usergroupid)
WHERE connections.userid IS NOT NULL ORDER BY start" 
); 

and replace it with this ;

PHP Code:

// ############# Paul M - Flashchat - Who is in the chat v2.05 ###############

require_once('./flashchat/inc/config.srv.php');
$fcprefix $GLOBALS['fc_config']['db']['pref'];
$chatlist $DB_site->query("SELECT connections.userid, connections.roomid, rooms.name, rooms.ispublic, connections.start, 
user.usergroupid, user.displaygroupid, user.options, user.username, groupa.opentag as opentaga, groupa.closetag as closetaga, 
groupb.opentag as opentagb, groupb.closetag as closetagb
FROM " 
TABLE_PREFIX $fcprefix "connections as connections
LEFT JOIN " 
TABLE_PREFIX $fcprefix "rooms as rooms ON(connections.roomid = rooms.id)
LEFT JOIN " 
TABLE_PREFIX "user as user ON(connections.userid = user.userid)
LEFT JOIN " 
TABLE_PREFIX "usergroup as groupa ON(user.usergroupid = groupa.usergroupid)
LEFT JOIN " 
TABLE_PREFIX "usergroup as groupb ON(user.displaygroupid = groupb.usergroupid)
WHERE connections.userid IS NOT NULL ORDER BY start" 
); 

:)

LEAD_WEIGHT 04-24-2005 11:13 PM

Can this be change to work with AMF FlashChat http://www.tufat.com/ simular but different. :ermm:
I can fiddle around with it but I am not a coder but know how to play with codes a little. :nervous:

Mr_Bob 04-24-2005 11:55 PM

Quote:

Originally Posted by Paul M
Well they really f**ked up from 4.0.0 beta to 4.0.1 didn't they :rolleyes: - Yes, the BOTS are a pain - I had to edit proc.php despite turning them off.

The problem with the hack seems to be down to the fact that 4.0.1 now uses it's own table prefix system with vB - as well as the vB table prefix system - and to make it worse, there is an error in the CMS2 file as well. The default prefix they use seems to be "flashchat_", but you will find it in the config.srv.php file as below ;

Code:

<?php
        $GLOBALS['fc_config']['db'] = array(
                'host' => 'localhost',
                'user' => 'sqluser',
                'pass' => 'password',
                'base' => 'database',
                'pref' => '',
//                'pref' => 'flashchat_',
        );
?>

Try the following experimental fix and let me know how it goes.


Find this in the Hack Code ;

PHP Code:

// ############# Paul M - Flashchat - Who is in the chat v2.00 ###############

$chatlist $DB_site->query("SELECT connections.userid, connections.roomid, rooms.name, rooms.ispublic, connections.start, 
user.usergroupid, user.displaygroupid, user.options, user.username, groupa.opentag as opentaga, groupa.closetag as closetaga, 
groupb.opentag as opentagb, groupb.closetag as closetagb
FROM " 
TABLE_PREFIX "connections as connections
LEFT JOIN " 
TABLE_PREFIX "rooms as rooms ON(connections.roomid = rooms.id)
LEFT JOIN " 
TABLE_PREFIX "user as user ON(connections.userid = user.userid)
LEFT JOIN " 
TABLE_PREFIX "usergroup as groupa ON(user.usergroupid = groupa.usergroupid)
LEFT JOIN " 
TABLE_PREFIX "usergroup as groupb ON(user.displaygroupid = groupb.usergroupid)
WHERE connections.userid IS NOT NULL ORDER BY start" 
); 

and replace it with this ;

PHP Code:

// ############# Paul M - Flashchat - Who is in the chat v2.05 ###############

require_once('./flashchat/inc/config.srv.php');
$fcprefix $GLOBALS['fc_config']['db']['pref'];
$chatlist $DB_site->query("SELECT connections.userid, connections.roomid, rooms.name, rooms.ispublic, connections.start, 
user.usergroupid, user.displaygroupid, user.options, user.username, groupa.opentag as opentaga, groupa.closetag as closetaga, 
groupb.opentag as opentagb, groupb.closetag as closetagb
FROM " 
TABLE_PREFIX $fcprefix "connections as connections
LEFT JOIN " 
TABLE_PREFIX $fcprefix "rooms as rooms ON(connections.roomid = rooms.id)
LEFT JOIN " 
TABLE_PREFIX "user as user ON(connections.userid = user.userid)
LEFT JOIN " 
TABLE_PREFIX "usergroup as groupa ON(user.usergroupid = groupa.usergroupid)
LEFT JOIN " 
TABLE_PREFIX "usergroup as groupb ON(user.displaygroupid = groupb.usergroupid)
WHERE connections.userid IS NOT NULL ORDER BY start" 
); 

:)

Works great perfectly:)
However where it says
PHP Code:


require_once('./flashchat/inc/config.srv.php'); 

Should read
PHP Code:

require_once('./chat/inc/config.srv.php'); 

FlashChat 4.0.1 uses a folder called chat now instead of FlashChat. any new people that will use this hack will run into a file error if it is not changed. Either this, or it can be made a note in installation to change this variable to your directory :).
Great job Paul:)

Paul M 04-25-2005 12:15 AM

Quote:

Originally Posted by Mr_Bob
Works great perfectly:)
However where it says
PHP Code:


require_once('./flashchat/inc/config.srv.php'); 

Should read
PHP Code:

require_once('./chat/inc/config.srv.php'); 

FlashChat 4.0.1 uses a folder called chat now instead of FlashChat. any new people that will use this hack will run into a file error if it is not changed. Either this, or it can be made a note in installation to change this variable to your directory :).
Great job Paul:)

Don't you just love consistancy, why do they change things just for the sake of it. :rolleyes:

I will make a note of it, people who upgrade from 3.x.x to 4.0.1 will probably retain the flashchat folder (as I did).

Mr_Bob 04-25-2005 12:32 AM

Quote:

Originally Posted by Paul M
Don't you just love consistancy, why do they change things just for the sake of it. :rolleyes:

I will make a note of it, people who upgrade from 3.x.x to 4.0.1 will probably retain the flashchat folder (as I did).

Yup, you have to love it :p
I myself just changed the folder to the name chat. I try to keep everything as it came as much as possible :). Even with these problems some of which plain acts of negligence on the coding side my members still like 4.0.1, and that's what makes them and myself happy:). *with the exception of installation, it was iKonboard all over again*

Paul M 04-25-2005 01:06 AM

Well since it seems to work ok, I have uploaded it as Version 2.10.

NFLForums 04-25-2005 04:30 AM

Installed times 2 so far...
I have 3 different forums...The third is on it's way soon, I have to install flashchat to it first! :)

NFLForums 04-25-2005 04:33 AM

err wait a second...I don't think I even want to think about going up to 4.0.1 at this point -- I was already having enough issues with 3.9.6...

(man alive...I'm glad I got the 3.9.6 before it upgraded...If there are that many problems -- since they are *oh so helpful* on the flashchat forums :S)

Paul M 04-25-2005 11:25 AM

Quote:

Originally Posted by NFLForums
err wait a second...I don't think I even want to think about going up to 4.0.1 at this point -- I was already having enough issues with 3.9.6...

(man alive...I'm glad I got the 3.9.6 before it upgraded...If there are that many problems -- since they are *oh so helpful* on the flashchat forums :S)

Yep, I would stick with 3.9.6 unless you have the patience to sort out 4.0.1 and it's problems.

I noticed how "helpful" they are on the fc forum when I posted yesterday. I really can't understand why they have added all this "bots" crap either, I haven't come across anyone who wants to chat to a flipping robot.

Mr_Bob 04-25-2005 07:22 PM

Quote:

Originally Posted by Paul M
Yep, I would stick with 3.9.6 unless you have the patience to sort out 4.0.1 and it's problems.

I noticed how "helpful" they are on the fc forum when I posted yesterday. I really can't understand why they have added all this "bots" crap either, I haven't come across anyone who wants to chat to a flipping robot.

It was one of the most suggested features, everyone wanted FlashChat to have as much simularity bewtween good o'l IRC as possible. The bots are a nice additiopn, I just wish they waited a little longer before releasing a version where bots won't work in CMS intergration.

memobug 04-26-2005 08:18 PM

Hi Mr. Bob,

I did get my install of 4.0.1 working with vbulletin 3.0.7 and yes the bots are silly but even that seems to be working now.

I wish I could tell you exactly what made the difference. I am using the CMS2 verison and the prefix is finally reading in as _fc_, which is what it seems to want. I have no idea why the installer wasn't pulling in the right database & prefix info, but it suddenly started finding what it needed. I am using absolute paths in the CMS2 to my install which is in /root/chat not /root/forum/chat.

The problem I am trying to resolve now is incorporating /chat/info.php output using vbulletin's phpinclude_start template. I am having problems that I didn't have with 3.9.6. I don't want to clutter the thread here - so that discussion is going on in Tufat - http://www.tufat.com/phpBB2/viewtopic.php?t=5779

at least it would be going on if the moderator there didn't want me to fill the "Code Depot" with half baked code.

I am afraid, after all that effort it is back to 3.9.6 for me!

Regards,

Matt

Hanif 05-03-2005 03:30 PM

Paul,

I've installed this hack however I'm trying to get the User Count to work and not having much joy

my config.serve.php has those values as the ones below(of course hidden)

and I can't get the count thing to work apart from that it looks fine.

I can send you any further info as well if need be.

I'm running vb 3.07 and the Flash chat as 4.0 or above

<?php
$GLOBALS['fc_config']['db'] = array(
'host' => 'localhost',
'user' => 'sqluser',
'pass' => 'password',
'base' => 'database',
'pref' => '',
// 'pref' => 'flashchat_',
);
?>

Look forward to your help.

Kind regards,

Hanif

Paul M 05-03-2005 04:04 PM

Did you install FC 4.0.x from scratch ? What table prefix did you choose during the installation ? (you appear to have commented out the "flashchat_" choice in your config above).

A link, and test login to your site would be useful as well. :)

Hanif 05-03-2005 06:16 PM

Hiya Paul,

Your the man...thanks for getting in touch dude.

Link is www.muslimprofessionals.org.uk/forums

I had the vb3_fc chat for 4.0 install and prior to that I had vb3 during the old one. I can access the chat and it logs in if a user account is recognised and accepted...??? Strange

I've PMed you a login for a test account.

Kindest regards,

Hanif

Paul M 05-03-2005 07:22 PM

I have found your problem.

In the code near the top is this ;

Code:

// ## Paul M - Flashchat - Who is in the chat v2.10 ## //
// ## Make sure the folder name defined below is the correct name of your flashchat installation folder ## //
$fcfolder = 'flashchat';

You haven't edited this variable to "chat" rather than "flashchat" - So the hack is still looking at your old flashchat, which I discovered is still installed. If I log into the old version it shows me on the forumhome. :)

Hanif 05-03-2005 09:12 PM

Hi Paul many thanks for replying back mate,

but I've checked the code again

and I do have the variable as

$fcfolder = 'chat';

I've pm'd you a snipped of the index.php and the config.srv.php

Kindest regards,

Hanif Rehman

p.s. once again thanks for going to the trouble for looking at this

Paul M 05-03-2005 10:16 PM

Okay, I need ftp access to investigate this properly - there is a mis-match somewhere. I have dropped you a PM.

Paul M 05-04-2005 09:21 PM

Well I'm not sure where you have gone - but I have uploaded a slightly changed version (v2.16) - I think this may cure your problem.

Acers 05-05-2005 11:14 AM

a bit of a problem(actually a big one)
I am using the latest 4.02 version of flashchat.

And after doing this(also used the integration hack https://vborg.vbsupport.ru/showthrea...ight=flashchat) I am facing a queer problem.

The hack is working for me but not for others. I can see who is in chat and all from all browsers but for all others, they can't even open the forums page(by all others i mean normal users, supermods etc) They are getting either ascii gibberish in opera or in FF they just get a blank page for forum home. All other forum pages load properly.

the actual view source code they see is
<html><body></body></html> in ff

And as soon as i remove the code in hack from index.php it starts to work normally for all.
I have rechecked the code and where i am putting it and its all correct. Even tried moving it around in index.php and still same probs.

what could be wrong?
the funny part is that its working for me... but not for anyone else :S

diettalk 05-05-2005 12:55 PM

flashchat v4.04 is out...

Paul M 05-05-2005 04:10 PM

Quote:

Originally Posted by Acers
what could be wrong?
the funny part is that its working for me... but not for anyone else :S

Sorry, I have no idea. I can't think of any way you could get this. What version are you using ?

Quote:

Originally Posted by diettalk
flashchat v4.04 is out...

Yep - like 4.0.3 it's just a couple of very minor changes (to the bots code this time).

Acers 05-06-2005 03:28 PM

4.02 version...
i have no idea myself.
It works for me and not for anyone else. All get ascii chars.
Maybe some other hack is interfering...

Paul M 05-06-2005 03:41 PM

Quote:

Originally Posted by Acers
4.02 version...

No, which version of the Hack :) (2.16 is the latest).

Quote:

Originally Posted by Acers
It works for me and not for anyone else. All get ascii chars.
Maybe some other hack is interfering...

Unlikely, your site seems fine to me (assuming it's the one in your profile) do you have it installed atm ?

Acers 05-06-2005 05:24 PM

was using 2.15 but used the new one now(changed folder name to chat) but same problem.
I am putting a screenshot of what members are getting as soon as i do the file edit.
(I am btw getting what you should get. The who is chatting is showing for me)
And yes the site is www.techenclave.com
and this is the source of forumhome people see once i put the edit of the hack in index.php
http://img193.echo.cx/my.php?image=screenshot1wm.jpg

Btw the time you see this post, the hack is not installed. I have reverted back to original index.php file or else the whole lot of members were after me :)

Paul M 05-06-2005 06:15 PM

Are you doing the Forumhome template edit as well - I can't see that either ?

If so, which combination causes your problem ;

1. Index.php edited, Forumhome not changed.

2. Forumhome edited, Index.php not changed.

3. Both changed.

Is it the standard vB Forumhome template, or a custom one ?

Do you have a test user ? Also, can you PM me your edited index.php.


All times are GMT. The time now is 03:38 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01882 seconds
  • Memory Usage 2,032KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (10)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete