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

embedding the chat

This forum is now locked as we will no longer be developing the v1.x branch

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

Topic locked
3 posts • Page 1 of 1

Postby subhajitgrmtech » Mon Mar 30, 2009 8:18 am

i wanted to embed the phpfreechat on my webpage side bar,just like the google mail have. i put the config file like this on the sidepage...

<?php
include_once ("path to chatfolder");

$params = array();
$params["serverid"] = md5(__FILE__);
$params["isadmin"] = false;
$params["title"] = "Live Chat";
$params["nick"] = "random number";
$params["frozen_nick"] = false;
$params["shownotice"] = 3;
$params["max_nick_len"] = 9;
$params["max_text_len"] = 40;
$params["max_channels"] = 3;
$params["max_privmsg"] = 1;
$params["refresh_delay"] = 10000;
$params["max_msg"] = 10;
$params["height"] = "100px";
$params["nickmarker"] = false;
$params["clock"] = true;
$params["quit_on_closedwindow"] = true;
$params["showwhosonline"] = true;
$params["data_private_path"] = "path to the private folder";
$params["data_public_path"] = "path to the public folder";

$chat = new phpFreeChat($params);
$chat->printJavascript();
$chat->printStyle();
$chat->printChat();
?>

When i load my webpage it just shows the message "Chat loading ...Please wait " but no chat actually loads..please help me.
subhajitgrmtech
New member
 
Posts: 6
Joined: Tue Mar 17, 2009 5:53 am
Top

Postby MusicaLibera » Mon Mar 30, 2009 1:02 pm

Same problem! Here comes my code:



if(file_exists('../chat/src/phpfreechat.class.php')){
require_once "../chat/src/phpfreechat.class.php";
} else {
require_once "chat/src/phpfreechat.class.php";
}
$params = array();
$params["serverid"] = md5("footer");
$params["refresh_delay"] = 2000; // 2000ms = 2s
$params["language"] = "it_IT";
$params["nick"] = $_SESSION['username'];
$params["frozen_nick"] = true;
$params["title"] = "MusicaLibera";
$params["height"] = "200px";
$chat = new phpFreeChat($params);


what's wrong? :( i tryed with and without any param...
MusicaLibera
New member
 
Posts: 1
Joined: Mon Mar 30, 2009 12:58 pm
Top

Postby OldWolf » Tue Mar 31, 2009 1:50 am

The first poster:
You have to actually set these two values-
$params["data_private_path"] = "path to the private folder";
$params["data_public_path"] = "path to the public folder";

To the second poster (well really both of you) you're in the wrong forum, this is for feature requests... post a message in one of the support or general forums and use the topic entitled " *READ* Create a NEW thread with THIS in it to ask for help!" so that I have the information I need to offer support. I'm not asking this to be unreasonable, but right now it's sort of like you posted in a automotive forum "My car is broken, how do I fix it?"... no one in the world is going to be able to guess what the problem is with so little info. :)
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top


Topic locked
3 posts • Page 1 of 1

Return to Feature Requests (v1.x)

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