• 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

Chat Params Not working

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

Post a reply
2 posts • Page 1 of 1

Postby WayneShears » Thu Jul 26, 2012 12:03 pm

I am new to this software package and it is great. The chat itself is brilliant and the list of params make it look like this is the tool I need on my site.

I have however cam across a few issues I require help with. Please can you let me know what I am doing wrong. I have a page called chat.php?chat.php?id=1

This is where I want the chat to display - I have changed the location of the chat to a folder called chat so I have reflected this in the include.

This is my param settings I currently have

require_once "chat/src/phpfreechat.class.php"; // adjust to your own path
$params["serverid"] = md5(__FILE__); // used to identify the chat
$chat = new phpFreeChat($params);
$params["firstisadmin"] = TRUE;
$params["title"] = "Please remember to respect all users";
$params['nick'] = $_SESSION['username'];

And down further in my code I have the line
<?php $chat->printChat(); ?>

However when I load the page up it still asks me for a nickname (I can echo out the username using the $_SESSION so it is carried across to the page.

Also the title on the page is staying as the 'My Chat' default, also I am first user to the chat and I am not the admin even though the param suggests I should be, so I have been unable to rehash the chat and had to do this manually by deleting the data as shown in the documentation.

Can anyone see why none of my params are working, have I missed something obvious or just done this completely wrong.

Any help would be appreciated.

Thanks
WayneShears
New member
 
Posts: 5
Joined: Thu Jul 26, 2012 11:54 am
Location: Oxford, United Kingdom
Top

Postby WayneShears » Thu Jul 26, 2012 2:03 pm

Resolved this forgot to add $params = array();
WayneShears
New member
 
Posts: 5
Joined: Thu Jul 26, 2012 11:54 am
Location: Oxford, United Kingdom
Top


Post a reply
2 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 49 guests

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