Hi everyone,
I need help on how to use the "Alternate Login URL". I want to make a my own customized page with the moodle login embedded on it.
For example, my customized URL is http://mydomain.com/index.html. On this page, I would like the embed the moodle login fields (showing the username and password fields). When the authentication is confirmed, the user will be directed to http://mydomain.com/moodle.
How am I suppose to do this? I hope someone could help me. If possible please provide the neccessary codes for my html page.
Thank you very much
Hi Clemente,
I would like to do something similar so I have bee reading around the topic. This site has been helpful - www.packtpub.com/.../front-page-customization-in-moodle, even though I have not implemented it as yet.
Please check it out.
I would like to do something similar so I have bee reading around the topic. This site has been helpful - www.packtpub.com/.../front-page-customization-in-moodle, even though I have not implemented it as yet.
Please check it out.
It's easy than you think. You just put this code in your http://mydomain.com/index.html
<form action="http://mydomain.com/moodle/login/index.php" method="post" id="login">
<div class="loginform">
<div class="form-label"><label for="username">Username</label></div>
<div class="form-input">
<input type="text" name="username" id="username" size="15" value="admin" />
</div>
<div class="clearer"><!-- --></div>
<div class="form-label"><label for="password">Password</label></div>
<div class="form-input">
<input type="password" name="password" id="password" size="15" value="" />
<input type="submit" value="Login" />
<input type="hidden" name="testcookies" value="1" />
</div>
<div class="clearer"><!-- --></div>
</div>
</form>
<form action="http://mydomain.com/moodle/login/index.php" method="post" id="login">
<div class="loginform">
<div class="form-label"><label for="username">Username</label></div>
<div class="form-input">
<input type="text" name="username" id="username" size="15" value="admin" />
</div>
<div class="clearer"><!-- --></div>
<div class="form-label"><label for="password">Password</label></div>
<div class="form-input">
<input type="password" name="password" id="password" size="15" value="" />
<input type="submit" value="Login" />
<input type="hidden" name="testcookies" value="1" />
</div>
<div class="clearer"><!-- --></div>
</div>
</form>