http://www.phpfreechat.net/forum/viewto ... 8369#p8369
but that chat donst so much as show up and that topic hasnt had a post in a long time here is my index.php
<?php
/////////////////////////////////////////////////////////////////////////////////
require(dirname(__FILE__) . 'http://forums.aohelp.info/SSI.php');
$user_info = ssi_welcome('array');
/////////////////////////////////////////////////////////////////////////////////
if (!$user_info['is_guest'])
{
require_once dirname(__FILE__)."http://forums.aohelp.info/chat2/src/phpfreechat.class.php";
/////////////////////////////////////////////////////////////////////////////////
$params = array();
$params["serverid"] = md5("Ao Help Chat"); // calculate a unique id for this chat
$params["nick"] = $user_info['is_guest'] ? "AoHelp-G" . rand(1, 1000) : $user_info['name'];
$params["title"] = "Ao Help Chat";
$params["language"] = "en_US";
$params["theme"] = "zilveer";
$params["shownotice"] = 0;
$params["display_ping"] = false;
$params["channels"] = array("Common room");
$params["time_offset"] = 2 * 3600;
$params["admins"] = array("" => "");
$params["frozen_nick"] = true;
$params["max_displayed_lines"] = 150;
if ($user_info["id"] == 1)
$params["isadmin"] = true;
/////////////////////////////////////////////////////////////////////////////////
$params["container_type"] = "mysql";
$params["container_cfg_mysql_host"] = "localhost"; // default value is "localhost"
$params["container_cfg_mysql_port"] = 3306; // default value is 3306
$params["container_cfg_mysql_database"] = "aohelp_forums"; // default value is "phpfreechat"
$params["container_cfg_mysql_table"] = "chat"; // default value is "phpfreechat"
$params["container_cfg_mysql_username"] = "jaminb2030"; // default value is "root"
$params["container_cfg_mysql_password"] = "password"; // default value is ""
/////////////////////////////////////////////////////////////////////////////////
$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>MySite Chat</title>
<?php
if (!$user_info['is_guest'])
{
$chat->printJavascript();
$chat->printStyle();
}
?>
</head>
<body>
<?php
if ($user_info['is_guest'])
{
// Not registered user
}
else
{
$chat->printChat();
}
?>
</body>
</html>
Iv changed all my db and login info with fake ones, the chat address is http://forums.aohelp.info/chat2/index.php
I also want to be able to set me and other ppl as admin but didnt understand how the $params["admins"] = array("" => "");
command worked...
thanks to anyone that can help
![Smile :)](./images/smilies/icon_smile.gif)