Author Topic: PhPFreeChat v0 .93, phpfreechatcontainermemory.class  (Read 773 times)

Offline harntrox

  • Level 3
  • *
  • Posts: 9
  • Reputation: +1/-0
    • View Profile
    • Galaktikon
PhPFreeChat v0 .93, phpfreechatcontainermemory.class
« on: May 29, 2007, 08:44:50 PM »
How do i send username to PhPFreeChat v0 .93 using phpfreechatcontainermemory.class from MySql session?

If i open a session on the same page as the chat (e.g. chat.php) it crashes the Apache server.  (I am testing with latest XAMPP)

here it is working, anyways, with the blune theme and many other mods...
http://www.galaktikon.com/chat.php

here is the known stable version without latest dhtml ie nightmare world of hell & errors:
http://www.phpfreechat.net/changelog.en.html#v0.9.3

here is how you get phpfree chat to run from an external folder real quick and dirty:

<?php

require_once ("phpfreechat-0.9.3/src/phpfreechat.class.php");

$params =  array("title"          => "Chat Channel 1",
                 "max_msg"        => 21,
                 "prefix"         => "blune_",
                 "clock"          => false,
                 "serverid"       => md5(__FILE__),
                 "theme"          => "blune",
                 "showsmileys"    => false
                 );

$chat = new phpFreeChat($params);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
       "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" type="text/css" href="gkon.css">
    <?php $chat->printJavascript(); ?>
    <?php $chat->printStyle(); ?>
  </head>
   
  <body class="gkonstyle" style="text-align: left">
    <h3>
        <div class="gradient" style="text-align: left">
            CHAT</div>
    <?php $chat->printChat(); ?>
    </h3> 
  </body>
 
</html>

Offline harntrox

  • Level 3
  • *
  • Posts: 9
  • Reputation: +1/-0
    • View Profile
    • Galaktikon
Re: PhPFreeChat v0 .93, phpfreechatcontainermemory.class
« Reply #1 on: June 13, 2007, 03:01:45 AM »
Never mind, i reverse engineered it .... made an IframeObject rpc call to server. works and looks identical .
screw that behemoth of bloated code, i wrote 4 php files that does the same thing, though i dont got 20 languages, and i need mysql.

Offline Sinzygy

  • Level 28
  • **
  • Posts: 420
  • Reputation: +11/-0
    • View Profile
Re: PhPFreeChat v0 .93, phpfreechatcontainermemory.class
« Reply #2 on: June 13, 2007, 04:28:57 AM »
As long as it runs: who cares about how it's written?

And sorry that I couldn't help, I never even seen the application before...

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal