Jump to content

Phpfreechat


RogerB

Recommended Posts

If you would like to use phpfree chat, here goes. Visit their page for docs, their info is really helpful.

Upload phpfree chat to your website .

Place this at the beginning of your chat page.

<?php
require_once dirname(__FILE__)."/phpfreechat-1.5/src/phpfreechat.class.php"; //this is the location of your chat directory
$params = array();
$params["admins"] = array('your-admin-name' => 'your-password');//this is the admin name and password - you can have more than one admin
$params["title"] = "Pilot's Lounge"; //name of the chat room
$params['firstisadmin'] = false; //do not change this
$params["theme"]	 = "blune"; //this is where you change the theme
$params['display_pfc_logo'] = false; //this is the phpfreechat logo I set it to off
$params['max_msg'] =05; // this is the max messages that are saved set to 0 of you don't want any
//$params["isadmin"] = false; // makes everybody admin: do not use it on production servers 
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$params['skip_proxies'] = array('censor'); //this is the word censor for blocking curse words if you want to block them remove this line
$chat = new phpFreeChat( $params );
?>

On the same page place this bit of code where you want the chat to appear. Fairly simple.

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

  • Like 1
Link to comment
Share on other sites

hi, how to get this file?:

require_once dirname(__FILE__)."/phpfreechat-1.5/src/phpfreechat.class.php"; //this is the location of your chat directory

i have this error:

Warning: require_once(/var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/phpfreechat-1.5/src/phpfreechat.class.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/profile_main.tpl on line 421

Fatal error: require_once() [function.require]: Failed opening required '/var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/phpfreechat-1.5/src/phpfreechat.class.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/profile_main.tpl on line 421

Link to comment
Share on other sites

hi, how to get this file?:

require_once dirname(__FILE__)."/phpfreechat-1.5/src/phpfreechat.class.php"; //this is the location of your chat directory

i have this error:

Warning: require_once(/var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/phpfreechat-1.5/src/phpfreechat.class.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/profile_main.tpl on line 421

Fatal error: require_once() [function.require]: Failed opening required '/var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/phpfreechat-1.5/src/phpfreechat.class.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/profile_main.tpl on line 421

You can download it from here. http://www.phpfreechat.net/download

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...