mantisbt:phpfreechat
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mantisbt:phpfreechat [2006/11/08 11:06] – Add comment block for observations by users testing out this extension DGtlRift | mantisbt:phpfreechat [2019/01/14 06:00] (current) – [Integration Steps] ref Admin Guide for custom string localization dregad | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Integrate phpFreeChat into Mantis ====== | ||
+ | |||
+ | **Author:** Victor Boctor | ||
+ | |||
+ | ===== Introduction ===== | ||
+ | |||
+ | 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. | ||
+ | * A lot of users are not familiar with IRC. | ||
+ | * In the workplace, it is common to have the IRC port blocked. | ||
+ | * The IRC client is yet another tool that the person has to open and run. | ||
+ | * The IRC connection sometimes keeps connecting and disconnecting and sometime it remains disconnected requiring some user interaction. | ||
+ | |||
+ | For these reasons it would be an advantage to how some sort of a web interface for chatting. | ||
+ | * Java IRC applet (requires JVM) | ||
+ | * AJAX Chat (only a browser is required). | ||
+ | |||
+ | I've researched the available options ([[http:// | ||
+ | |||
+ | ===== Integration Steps ===== | ||
+ | |||
+ | * Following is the directory structure on which the code sample below is based: | ||
+ | < | ||
+ | www\ | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | * Install [[http:// | ||
+ | * Create the chat_page.php in Mantis root folder: | ||
+ | |||
+ | <code php> | ||
+ | <?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( ' | ||
+ | |||
+ | access_ensure_project_level( REPORTER ); // change minimum access level if required. | ||
+ | |||
+ | $t_chat_path = dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . ' | ||
+ | |||
+ | require_once ( $t_chat_path . ' | ||
+ | |||
+ | $t_project_name = project_get_name( helper_get_current_project() ); | ||
+ | $t_nick = user_get_name( auth_get_current_user_id() ); | ||
+ | |||
+ | $params[' | ||
+ | |||
+ | $params[" | ||
+ | $params[" | ||
+ | $params[" | ||
+ | $params[" | ||
+ | $params[" | ||
+ | $params[" | ||
+ | |||
+ | $chat = new phpFreeChat( $params ); | ||
+ | |||
+ | html_page_top1(); | ||
+ | echo '< | ||
+ | $chat-> | ||
+ | $chat-> | ||
+ | html_page_top2(); | ||
+ | |||
+ | # uncomment the following line if you are using Mantis 1.1.0a1 or above. | ||
+ | # print_recently_visited(); | ||
+ | |||
+ | echo '< | ||
+ | |||
+ | $chat-> | ||
+ | |||
+ | html_page_bottom1( __FILE__ ); | ||
+ | ?> | ||
+ | </ | ||
+ | |||
+ | * Add the " | ||
+ | |||
+ | <code php> | ||
+ | $g_main_menu_custom_options = array ( | ||
+ | array( " | ||
+ | ); | ||
+ | </ | ||
+ | |||
+ | * If you would like to localize the menu option then replace " | ||
+ | |||
+ | |||
+ | ===== Observations ===== | ||
+ | |||
+ | * After adding this into our installation, | ||
+ | |||
+ | How to clear the chat history in phpfree chat?? | ||