How to show custom hint at login screen

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
rakekniven
Posts: 17
Joined: 19 Mar 2010, 07:05

How to show custom hint at login screen

Post by rakekniven »

Hello,

we use LDAP authentication for our bugtracker.
Not all services use LDAP, so users have multiple usernames and passwords.

My claim is to show a hint at login screen. That hint explains which username format should be used.

Is there way apart from hacking core files to show addtional information at login screen? Haven't found an config option yet?

Thx.
atrol
Site Admin
Posts: 8374
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How to show custom hint at login screen

Post by atrol »

Not elegant but should work:
Write a plugin which hooks event EVENT_LAYOUT_PAGE_HEADER
Check that the current page is the login page

Code: Select all

if ( is_page_name( 'login_page' ) ) {
  do_whatever_you_want ();
}
Please use Search before posting and read the Manual
rakekniven
Posts: 17
Joined: 19 Mar 2010, 07:05

Re: How to show custom hint at login screen

Post by rakekniven »

Hello Atrol,

your idea is not exactly what I was looking for ;-)
Spending a lot of time is not possible for me.
Can you point me to any plugin related help resources? Haven't found anything in administration_guide.pdf

Cheers,
Mark

EDIT: Just found http://www.mantisbt.org/docs/master/en/ ... G.LANGUAGE
Looks like a lot of work when starting from scratch
simedia
Posts: 1
Joined: 02 Jan 2017, 10:52

Re: How to show custom hint at login screen

Post by simedia »

Here is my solution https://github.com/simedia/mantis-hint-login . For the login page (login_page.php) the event EVENT_LAYOUT_CONTENT_END seems not to be fired. So I used the EVENT_LAYOUT_PAGE_HEADER suggested above and some jquery code to place my hint on the right place.

Thanks Mantis
Post Reply