Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > 123 Flash Chat Server Software > 123 Flash Chat Support

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-18-2004, 08:58 AM
Junior Member
 
Join Date: Sep 2004
Posts: 2
Default Problems with phpBB intergration

I installed the demo server software on Solaris 9. Everything seems to be running correctly and I followed the mod instructions for phpBB which seems to work fine, but now I am getting the following error when any of my users try to post on the site...

Fatal error: Call to a member function on a non-object in /usr/local/apache2/htdocs/phpBB2/includes/functions_chat.php on line 69

So here is line 69 from functions_chat.php

while (false !== ($entry = $d->read()))

Any ideas on this would be greatly appreciated.

Shane
  #2 (permalink)  
Old 09-18-2004, 08:59 AM
Junior Member
 
Join Date: Sep 2004
Posts: 2
Default Re:Problems with phpBB intergration

Here is the entire function

function getChatterList()
{
global $chat_data_path, $lang;

$userListStr = "";

$d = dir($chat_data_path);

while (false !== ($entry = $d->read()))
{
$rest = substr($entry, 0, 5);
if ($rest == "room_")
{

if (file_exists($chat_data_path.$entry))
{

$f_users = file($chat_data_path.$entry);

for ($i = 0; $i < count($f_users); $i ++)
{
$f_line = trim($f_users[$i]);

if ($f_line != "")
{
$userListStr = ($userListStr == "") ? $f_line : $userListStr. "," . $f_line;
}
}

}
}

}
$d->close();

$userListStr = ($userListStr == "") ? $lang['None'] : $userListStr;
return $userListStr;
}
  #3 (permalink)  
Old 09-20-2004, 12:11 AM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re:Problems with phpBB intergration

please set $chat_data_path value in functions_chat.php:

this is from the module installation guide:

Code:
# 
#-----[ OPEN ]------------------------------------------ 
#
includes/functions_chat.php

# 
#-----[ FIND ]------------------------------------------ 
# 
$chat_data_path = "C:/Program Files/123FlashChatServer/data/";

# 
#-----[ REPLACE WITH ]----------------------------------
#
# IMPORTANT!!!
# Before you install this mod, please make sure you have followed the readme.txt , 
# and installed the 123 flash chat server software first!
# if you installed the 123 flash chat server software in  /your_123_flash_chat_server_installed_dir
# then you can set the parameter of "chat_data_path" to "/your_123_flash_chat_server_installed_dir/data/"
# If your system is unix,
# please make sure your php can read the /your_123_flash_chat_server_installed_dir/data/online.txt file,
# if not, you can do some commands like:
# chmod 755 /your_123_flash_chat_server_installed_dir/data/
# or 
# chmod o+x /your_123_flash_chat_server_installed_dir/data/
# chmod o+r /your_123_flash_chat_server_installed_dir/data/online.txt
#
$chat_data_path = "/your_123_flash_chat_server_installed_dir/data/";
Closed Thread

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:34 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.