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.
How to show custom hint at login screen
Moderators: Developer, Contributor
Re: How to show custom hint at login screen
Not elegant but should work:
Write a plugin which hooks event EVENT_LAYOUT_PAGE_HEADER
Check that the current page is the login page
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 ();
}
-
- Posts: 17
- Joined: 19 Mar 2010, 07:05
Re: How to show custom hint at login screen
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
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
Re: How to show custom hint at login screen
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
Thanks Mantis