I read the whole topic and it seems that i am facing familiar problems.
Some of them i could solve doing the error and trial method with help from all the stuff posted here.
What i want is that my forumusers can use this great chat facility.
After one is logged in on the forum, there's no need to log on again for using the chat functionality.
Thats what i am aiming, anyway.
I minimized the code as far as i could.
Unfortenately i am stuck at the moment.
After i logged myself in, the next screen is the message "chat loading...please wait" and thats all there is.

If someone could lend a hand ...and give the golden tip it would be delightfull

- Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
require($phpbb_root_path . 'common.' . $phpEx);
$params = array();
require_once dirname(__FILE__) . "/src/phpfreechat.class.php";
$user->session_begin();
$auth->acl($user->data);
$user->setup();
get_username_string ;
$oog = $user->data [username];
if ($oog == "Anonymous")
{
header("Location: http://" . $_SERVER[SERVER_NAME] ."/Foruma/ucp.php?mode=login&redirect=/Foruma/chat/");
}
$params["debug"] = true;
$params["isadmin"] = false;
$params["title"] = "Quick chat";
$params["nick"] = $user->data['username_clean'];
$params["serverid"] = md5(__FILE__); // used to identify the chat
$chat = new phpFreeChat($params);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>phpFreeChat demo</title>
</head>
<body>
<?php $chat->printChat(); ?>
</body>
</html>