Custom notice text on logon page

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
DatLicht
Posts: 2
Joined: 07 Oct 2015, 10:31

Custom notice text on logon page

Post by DatLicht »

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]'
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Custom notice text on logon page

Post by atrol »

Option 1)
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';
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
Please use Search before posting and read the Manual
Post Reply