Adding text or enabling a notifications when reporting

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
zidnut
Posts: 11
Joined: 23 Sep 2009, 21:29

Adding text or enabling a notifications when reporting

Post by zidnut »

We are looking to have a way to add text detailing the proper usage of reporting a bug. So far, besides changing the source code of mantis I haven't found a way. Are there any options to alert a user with information about how our process is handled?
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Adding text or enabling a notifications when reporting

Post by atrol »

Best way: Write a plugin that catches event EVENT_REPORT_BUG_FORM_TOP
You could also use the configuration option $g_top_include_page
Please use Search before posting and read the Manual
zidnut
Posts: 11
Joined: 23 Sep 2009, 21:29

Re: Adding text or enabling a notifications when reporting

Post by zidnut »

Is there a way to restrict that top banner to a specific project and specifically the report page?
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Adding text or enabling a notifications when reporting

Post by atrol »

You can check for page name and project in PHP code.
E.g. something like
if( is_page_name( 'bug_report_page.php' ) && helper_get_current_project() == <theIdOfTheProjectWhereYouWantToDisplayTheMessage> )
Not sure if this will work with $g_top_include_page

That's why I recommend to write a plugin.
Please use Search before posting and read the Manual
Post Reply