I have searched the forum and have not been able to find an answer to this.
I am trying to setup two different web pages with the same chat room. Basically the first page has a medium sized chat window for guests to login with a height of about 400px. The second page will be used to display the live chat on a very large screen and needs to be about 1024x768 so that it takes up the whole display. I can get one or the other to work by changing $param["height"], but everytime I /rehash it overwrites the previous value. Is there a way to dynamically adjust the height of the chat window or have two seperate windows of different size.
I tried using a static server id and created two seperate index.php files, but that didn't work because the /rehash.
See code below:
<?php
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["height"] = "628px";
$params["shownotice"] = 1;
$params["time_format"] = 'H:i';
$params["title"] = " ";
$params['max_msg'] = 35;
$params["startwithsound"] = false;
$params["display_ping"] = false;
$params["display_pfc_logo"] = false;
$params["displaytabimage"] = false;
$params["timeout"] = 60000;
$params["isadmin"] = false;
$params["admins"] = array("admin" => "password");
$params["displaytabclosebutton"] = false;
$params["isadmin"] = false; // do not use it on production servers
$params["serverid"] = md5("2l23j5ha8sd9f87f"); // calculate a unique id for this chat
$params["channels"] = array('chat');
$params['time_offset'] = 60*60*15; // offset in seconds
$params["showsmileys"] = false;
//$params["debug"] = true;
$chat = new phpFreeChat( $params );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>phpFreeChat- Sources Index</title>
<link rel="stylesheet" title="classic" type="text/css" href="style/generic.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/header.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/footer.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/menu.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/content.css" />
</head>
<body>
<!--<div class="header">
<h1>phpFreeChat - Sources Index</h1>
<img alt="logo bulle" src="style/bulle.gif" class="logo2" />
</div>-->
<div class="content">
<?php $chat->printChat(); ?>
<?php if (isset($params["isadmin"]) && $params["isadmin"]) { ?>
<p style="color:red;font-weight:bold;">Warning: because of "isadmin" parameter, everybody is admin. Please modify this script before using it on production servers !</p>
<?php } ?>
</div>
</body></html>
Any help would be greatly appreciated,
Thanks!