• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Some parameters not working

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

Post a reply
3 posts • Page 1 of 1

Postby Wavesonics » Mon Jul 30, 2007 8:10 pm

I just set up Beta11, this is my first time using PHPFreeChat and I must say, good job man.

Even looking through the code this is just a slick app.

Now to the point, some of my parameters are not working.

I have the following config:


Code: Select all
require_once "phpfreechat/src/phpfreechat.class.php"; // adjust to your own path
$params["serverid"]      = md5(__FILE__); // used to identify the chat
$params["height"]      = '200px';
$params["nick"]         = iconv("ISO-8859-1", "UTF-8", $_SESSION['username'] );
$params["frozen_nick"]   = true;
$params["quit_on_closedwindow"] = true;
$params["title"]      = "Cryptnet Comm Channel";
$params["channels"]      = array( 'General' );
$params["admins"] = array("Adam" => "password");

$chat = new phpFreeChat($params);

The height, and title params are not working.

Any ideas why? Is this a known bug?
Last edited by Wavesonics on Mon Jul 30, 2007 8:14 pm, edited 1 time in total.
Wavesonics
Member
 
Posts: 10
Joined: Mon Jul 30, 2007 8:00 pm
Top

Postby nsj » Tue Jul 31, 2007 1:10 am

Welcome to pfc wavesonics,
your code looks fine, just keep in mind that when ever you change these config values, you need to clear the cache, so that new values can be loaded into the cache.
So clean this directory:
dataprivatecache

try putting in the following debug code in your chat page to see what you pfc configration is like:

echo "<h2>Debug</h2>";
echo "<pre>";
$c =& pfcGlobalConfig::Instance();
print_r($c);
print_r($_SERVER);
echo "</pre>";

Cheers!!!
~nsj
nsj
Member
 
Posts: 19
Joined: Mon Jul 30, 2007 8:16 am
Top

Postby Wavesonics » Tue Jul 31, 2007 5:03 am

Ah, yes that fixed it, thanks a million man!
Wavesonics
Member
 
Posts: 10
Joined: Mon Jul 30, 2007 8:00 pm
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 27 guests

  • 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