Hi folks,
is it possible to add a custom notice text on the logon page without having to hack the login_page.php?
I'm thinking about something like:
1. The typical 'cookie notice'
2. A notice like 'this is a private system, all login attempts will be logged [blah]'
Custom notice text on logon page
Moderators: Developer, Contributor
Re: Custom notice text on logon page
Option 1)
Use configuration option $g_top_include_page
Option 2)
Write a plugin that catches event EVENT_LAYOUT_PAGE_HEADER
For more details have a look at https://www.mantisbt.org/docs/master-1. ... PUT.LAYOUT
Use configuration option $g_top_include_page
Code: Select all
/**
* Specify your top/bottom include file (logos, banners, etc)
* if a top file is supplied, the default MantisBT logo at the top will be hidden
* @global string $g_top_include_page
*/
$g_top_include_page = 'YourCustomCode.php';
Write a plugin that catches event EVENT_LAYOUT_PAGE_HEADER
For more details have a look at https://www.mantisbt.org/docs/master-1. ... PUT.LAYOUT