MantisBT: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 104: | Line 104: | ||
==References== | ==References== | ||
* [https://www.mediawiki.org/wiki/Extension:Mantis Wiki | * [https://www.mediawiki.org/wiki/Extension:Mantis Media Wiki Mantis Extension Installation] | ||
* [https://www.mediawiki.org/wiki/Manual:Extensions Wiki | * [https://www.mediawiki.org/wiki/Manual:Extensions Media Wiki Extension Installation] | ||
* [https://www.mantisbt.org/wiki/doku.php/mantisbt:enabling_anonymous_access Enabling Anonymous Access] | * [https://www.mantisbt.org/wiki/doku.php/mantisbt:enabling_anonymous_access Enabling Anonymous Access] | ||
* [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight Media Wiki Syntax Highlight] | |||
* [http://www.mantisbt.org/wiki/doku.php/mantisbt:issue:7075:integration_with_dokuwiki Integration With Doku Wiki] | * [http://www.mantisbt.org/wiki/doku.php/mantisbt:issue:7075:integration_with_dokuwiki Integration With Doku Wiki] |
Revision as of 02:39, 23 February 2019
MantisBT makes collaboration with team members & clients easy, fast, and professional.
MantisBT is an open source issue tracker that provides a delicate balance between simplicity and power. Users are able to get started in minutes and start managing their projects while collaborating with their teammates and clients effectively. Once you start using it, you will never go back!
# change mantis title
sed -i "s/$g_window_title = 'MantisBT'/$g_window_title = 'ChorkeBT'/g" ./bugs/config_defaults_inc.php
# config with media wiki
sed -i "s/$g_wiki_enable = OFF/$g_wiki_enable = ON/g" ./bugs/config_defaults_inc.php
sed -i "s/$g_wiki_engine = ''/$g_wiki_engine = 'mediawiki'/g" ./bugs/config_defaults_inc.php
sed -i "s/$g_wiki_root_namespace = 'mantis'/$g_wiki_root_namespace = 'Bugs'/g" ./bugs/config_defaults_inc.php
sed -i "s/$g_wiki_engine_url = ''/$g_wiki_engine_url = 'http://cdn.chorke.org/wiki/'/g" ./bugs/config_defaults_inc.php
# change database connection
sed -i "s/$g_db_password = '';/$g_db_password = 'password';/g" ./bugs/config/config_inc.php
http://cdn.chorke.org/bugs user: administrator pass: root
Anonymous
http://cdn.chorke.org/bugs/manage_user_create_page.php Username : anonymous Real Name : <Leave Empty> E-mail : [email protected] Access Level: [viewer|reporter] Enabled : true Protected : true
# enable anonymous/guest login
echo '' >> ./bugs/config/config_inc.php;\
echo '' >> ./bugs/config/config_inc.php;\
echo '# enable anonymous/guest login' >> ./bugs/config/config_inc.php;\
echo '$g_allow_anonymous_login = ON;' >> ./bugs/config/config_inc.php;\
echo "\$g_anonymous_account = 'anonymous';" >> ./bugs/config/config_inc.php;\
echo '' >> ./bugs/config/config_inc.php
MediaWiki Plugin
./bugs/core/classes/MantisCoreWikiPlugin.class.php
/**
* Basic MediaWiki support with old-style wiki integration.
*/
class MantisCoreMediaWikiPlugin extends MantisCoreWikiPlugin {
/**
* Plugin Registration
* @return void
*/
function register() {
$this->name = 'MantisBT MediaWiki Integration';
$this->version = '0.1';
$this->requires = array(
'MantisCore' => '2.0.0',
);
}
/**
* Wiki base url
*
* @param integer $p_project_id A project identifier.
* @return string
*/
function base_url( $p_project_id = null ) {
$t_base = plugin_config_get( 'engine_url' );
if( !is_null( $p_project_id ) && $p_project_id != ALL_PROJECTS ) {
$t_base .= urlencode( project_get_name( $p_project_id ) );
} else {
$t_base .= plugin_config_get( 'root_namespace' );
}
return $t_base;
}
/**
* Wiki link to a bug
*
* @param integer $p_event Event.
* @param integer $p_bug_id A bug identifier.
* @return string
*/
function link_bug( $p_event, $p_bug_id ) {
return $this->base_url( bug_get_field( $p_bug_id, 'project_id' ) ) . '/' . (int)$p_bug_id;
}
/**
* Wiki link to a project
*
* @param integer $p_event Event.
* @param integer $p_project_id A project identifier.
* @return string
*/
function link_project( $p_event, $p_project_id ) {
return $this->base_url( $p_project_id );
}
}