Editing Login Page

Editing Login Page

by Mayuri Karnik -
Number of replies: 2

I want to edit the html code of login page. Unable to find it. Most of the time, I am not able to find the codes to edit for other pages as well. Where to find those pages?

P.S Using Moodle 3.1

Average of ratings: -
In reply to Mayuri Karnik

Re: Editing Login Page

by Ken Task -
Picture of Particularly helpful Moodlers

Probably because it's normally recommended that one *not* edit core code unless one knows that they are doing.    But ... since you asked ... there's quite a few html (forms) pages that could (possibly) be edited:

Following command run in a moodle31 code directory.   The one you are looking for is * below.

find ./ -name \*.html

.//admin/mnet/trustedhosts.html
.//auth/cas/cas_form.html
.//auth/cas/config.html
.//auth/db/config.html
.//auth/email/config.html
.//auth/fc/config.html
.//auth/imap/config.html
.//auth/index.html
.//auth/ldap/config.html
.//auth/manual/config.html
.//auth/mnet/config.html
.//auth/nntp/config.html
.//auth/none/config.html
.//auth/pam/config.html
.//auth/pop3/config.html
.//auth/radius/config.html
.//auth/shibboleth/config.html
.//auth/shibboleth/index_form.html
.//blocks/index.html
.//enrol/paypal/enrol.html
.//filter/index.html
.//grade/edit/outcome/course_form.html
.//install/distribution.html
.//install/welcome.html
.//lib/adodb/index.html
.//lib/db/index.html
.//lib/editor/index.html
.//lib/editor/tinymce/tiny_mce/3.5.11/plugins/preview/example.html
.//lib/editor/tinymce/tiny_mce/3.5.11/plugins/preview/preview.html
.//lib/index.html
.//lib/jquery/ui-1.11.4/index.html
.//lib/tests/fixtures/unoconv-source.html
.//lib/xhprof/index.html
* .//login/index_form.html
.//message/search.html
.//message/search_advanced.html
.//message/settings.html
.//mod/data/field/checkbox/mod.html
.//mod/data/field/date/mod.html
.//mod/data/field/file/mod.html
.//mod/data/field/latlong/mod.html
.//mod/data/field/menu/mod.html
.//mod/data/field/multimenu/mod.html
.//mod/data/field/number/mod.html
.//mod/data/field/picture/mod.html
.//mod/data/field/radiobutton/mod.html
.//mod/data/field/text/mod.html
.//mod/data/field/textarea/mod.html
.//mod/data/field/url/mod.html
.//mod/data/preset/imagegallery/addtemplate.html
.//mod/data/preset/imagegallery/listtemplate.html
.//mod/data/preset/imagegallery/listtemplatefooter.html
.//mod/data/preset/imagegallery/listtemplateheader.html
.//mod/data/preset/imagegallery/rsstemplate.html
.//mod/data/preset/imagegallery/rsstitletemplate.html
.//mod/data/preset/imagegallery/singletemplate.html
.//mod/glossary/editcategories.html
.//mod/index.html
.//user/message.html

IF you go down this path, three things:

1. work on a copy of the original .html file

2. know that when you update or upgrade the code there is a good chance your modifications of whatever file will be replaced with the new .html file that comes with updated/upgraded code.

So make notes of modifications made.

3. There is also potential for your modifications not being compatible with update/upgrade ... be prepared for that event as well.

'spirit of sharing', Ken



In reply to Ken Task

Re: Editing Login Page

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hello,

You could also create an alternative login page and specify the URL in Site administration > Plugins > Authentication > Manage authentication.