A chat with a customized smiley theme (famfamfam theme)
this is my chat:
http://pjn-il.net/chat21/demo/111.php
this is the code:
- Code: Select all
<?php
require_once dirname(__FILE__)."/../src/phpfreechat.class.php";
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["nick"] = "׳ ׳•׳¨׳—ֲ ".rand(1,1000); // setup the intitial nickname
$params["theme"] = "msn";
$params['max_channels'] = "10";
$params['displaytabimage'] = "true";
$params['displaytabclosebutton'] = "true";
$params["channels"] = array("׳₪׳•׳¨׳˜׳œ ׳”׳“׳× ׳”׳™׳”׳•׳“׳™׳×");
$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 dir=rtl>
<h2 id="pfc_title"> Your chat title </h2>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>111</title>
<?php $chat->printJavascript(); ?>
<?php $chat->printStyle(); ?>
</head>
<body>
<?php $chat->printChat(); ?>
</body>
</html>