First of all, check that you have the correct required configuration.
(not available for 1.x versions)
(for those who haven't gzip module in their php and 1.x users)
CHMOD 777 phpfreechat-x.x/data/private CHMOD 777 phpfreechat-x.x/data/public
If you are using SSH:
chmod 777 phpfreechat-x.x/data/*
Tip: On the latest version 1.x maybe it will not work and it will show you ”“Error: the chat cannot be loaded!…””, then try with 755 rights.
As you followed the above quickstart process, your chat script is located in : “phpfreechat-x.x/index.php”
You chat script looks like this piece of code :
<?php require_once "src/phpfreechat.class.php"; // adjust to your own path $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>
To customize your chat script, just open it and play with the parameters list. As an example, have a look to the demos scripts located in “phpfreechat-x.x/demo” directories.
Attention: when a parameter is modified/added, you have to rehash the chat in order to take into account the modification.
Many thanks to our contributors