This is an old revision of the document!
Author: Victor Boctor
A lot of open source projects use IRC for chatting and a lot of companies use some sort of Instant Messaging, which makes chatting an essential part of the software development environment. I have found IRC to be a very useful communication tool between Mantis developers, however, I found there are some issues with IRC:
For these reasons it would be an advantage to how some sort of a web interface for chatting. The obvious options are:
I've researched the available options (AJAX powered chat applications reviewed) and decided to go for phpFreeChat, however, this doesn't mean that we can not have integrate with more chat options. At the moment, no chat program will be distributed with Mantis, so integrating with another chat can be as simple as writing another recipe in the Wiki.
www\ chat\ # it is assumed the phpFreeChat is installed in a folder called "chat" mantis\ # this can be any name as long as it in the same level as phpFreeChat.
<?php # Mantis - a php based bugtracking system # Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org # Copyright (C) 2002 - 2006 Mantis Team - mantisbt-dev@lists.sourceforge.net # This program is distributed under the terms and conditions of the GPL # See the README and LICENSE files for details # -------------------------------------------------------- # $Id: $ # -------------------------------------------------------- require_once( 'core.php' ); access_ensure_project_level( REPORTER ); // change minimum access level if required. $t_chat_path = dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'chat' . DIRECTORY_SEPARATOR; // adjust to your own path require_once ( $t_chat_path . 'src' . DIRECTORY_SEPARATOR . 'phpfreechat.class.php' ); $t_project_name = project_get_name( helper_get_current_project() ); $t_nick = user_get_name( auth_get_current_user_id() ); $params['isadmin'] = user_is_administrator( auth_get_current_user_id() ); $params["serverid"] = md5( __FILE__ ); $params["title"] = $t_project_name; $params["nick"] = $t_nick; $params["frozen_nick"] = true; $params["refresh_delay"] = 5000; $params["clock"] = true; $chat = new phpFreeChat( $params ); html_page_top1(); echo '<meta http-equiv="content-type" content="text/html; charset=utf-8" />'; $chat->printJavascript(); $chat->printStyle(); html_page_top2(); # uncomment the following line if you are using Mantis 1.1.0a1 or above. # print_recently_visited(); echo '<br />'; $chat->printChat(); html_page_bottom1( __FILE__ ); ?>
$g_main_menu_custom_options = array ( array( "Chat", REPORTER, 'chat_page.php' ) // the access level here must match the one in chat_page.php );
How to clear the chat history in phpfree chat??