• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Announcements
  • Change font size
  • FAQ
  • Register
  • Login

New release 1.0-beta2

Check here for the latest news of phpfreechat.

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
4 posts • Page 1 of 1

Postby phpfreechat » Sat Jun 17, 2006 8:03 pm

This release add some bandwidth optimization, and CPU optimizations and fixes lot of annoying bugs. Keep in mind this is a beta release, don't consider it stable.

As it is a beta release, I didn't wrote yet the documentation.
However, usefull parameters are :
"channels" : an array of string, one string by channel name
"isadmin" : set it to true if the connected user is an admin (you me have a authentification system to use this parameter)

Code example:
Code: Select all
<?php

require_once dirname(__FILE__)."/trunk/src/phpfreechat.class.php";
$params = array();
$params["serverid"]  = md5(__FILE__); // calculate a unique id for this chat
$params["nick"]      = "guest".rand(1,100);  // setup the intitial nickname
$params["channels"]  = array("channel1", "channel2");
$params["isadmin"]   = 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>
  <?php $chat->printJavascript(); ?>
  <?php $chat->printStyle(); ?> 
 </head>
 <body>

  <?php $chat->printChat(); ?>

</body></html>

Notice: don't forget to chmod 777 data/private/ and data/public directories.

Tip: when you change something in the configuration, you need to manualy delete the data/private/cache/ directory content or type the /rehash command (but you need to be admin of the chat to run this command)

- Download it
- See the complete change log

Enjoy!
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby mkoch » Sun Jun 18, 2006 12:04 pm

Thanks. This is getting really good!
mkoch
Member
 
Posts: 77
Joined: Tue Feb 21, 2006 5:08 pm
Location: Brussels/Denmark
  • Website
Top

Postby Tobias » Sun Jun 18, 2006 12:43 pm

Nice, but another annoying bug: The smilie list wouldn't appear the first page load.
Tobias
New member
 
Posts: 7
Joined: Wed Mar 22, 2006 6:35 pm
Top

Postby hattrick » Wed Jun 21, 2006 10:37 am

Tobias wrote:Nice, but another annoying bug: The smilie list wouldn't appear the first page load.

Worked it out commenting out "display: none;" line 250 of the file:
themesdefaulttemplatesstyle.css.tpl.php

anyway looks like the javascript that should generate the smiley div is not called early enough to build the div.
Last edited by hattrick on Wed Jun 21, 2006 10:38 am, edited 1 time in total.
hattrick
New member
 
Posts: 7
Joined: Fri Jun 16, 2006 2:59 pm
Top


Post a reply
4 posts • Page 1 of 1

Return to Announcements

Who is online

Users browsing this forum: No registered users and 1 guest

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub