RogerB Posted August 13, 2012 Report Posted August 13, 2012 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(); ?> 1 Quote
mattia Posted August 14, 2012 Report Posted August 14, 2012 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 Quote
rpalmer800 Posted August 14, 2012 Report Posted August 14, 2012 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 Quote
RogerB Posted August 14, 2012 Author Report Posted August 14, 2012 Seriously? LOL you have to actually download phpfreechat first. 1 Quote
mattia Posted August 16, 2012 Report Posted August 16, 2012 You can download it from here. http://www.phpfreechat.net/download thanks but non work for me appears this forever : Chat loading ... Please wait Quote
flyalaska Posted August 16, 2012 Report Posted August 16, 2012 Give me your chat link? It worked fine for me. Quote
mattia Posted August 16, 2012 Report Posted August 16, 2012 Yes this is my chat link, http://www.italianivolanti.it/iv/index.php/chat Quote
RogerB Posted August 19, 2012 Author Report Posted August 19, 2012 the very first line of code, that is where the chat is located on your server, is that correct? You should be pointing that to a file, not a directory. Quote
RogerB Posted August 21, 2012 Author Report Posted August 21, 2012 did you save it as a .php file?? Quote
mattia Posted August 22, 2012 Report Posted August 22, 2012 yes, chat.php in core/modules/chat/chat.php Quote
RogerB Posted August 23, 2012 Author Report Posted August 23, 2012 That is wrong, I never said to do that. Just put the chat.php in you main site directory. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.