Does anyone know how I can add pre-defined text to a login form.
eg.
I want to show users that they should use "name" for login and a special password.
So I was thinking of making a login form saying:
Login: [name]
Password: [available from the letter you've received]
Therefor I want to include "name" and "available from the letter..." in the login form when it appears.
But how?
David
add text to a form Topic is solved
Moderators: tjay, seadap, Rogue4ngel, matthewhayashida
-
- Joomla! Apprentice
- Posts: 41
- Joined: Sat Dec 15, 2007 3:02 pm
- Location: Washington DC Metro
Re: add text to a form
Assuming you are using J!1.5, create an override for the mod_login template file.
Open joomla_root/modules/mod_login/tmpl/default.php and save it as joomla_root/templates/yourtemplate/html/mod_login/default.php.
Then edit the input boxes for the username and password fields. Change
to
and change
to
Open joomla_root/modules/mod_login/tmpl/default.php and save it as joomla_root/templates/yourtemplate/html/mod_login/default.php.
Then edit the input boxes for the username and password fields. Change
Code: Select all
<input id="modlgn_username" type="text" name="username" class="inputbox" alt="username" size="18" />
Code: Select all
<input id="modlgn_username" type="text" name="username" class="inputbox" alt="username" value="name" size="18" />
Code: Select all
<input id="modlgn_passwd" type="password" name="passwd" class="inputbox" size="18" alt="password" />
Code: Select all
<input id="modlgn_passwd" type="password" name="passwd" class="inputbox" value="your_text_here" size="18" alt="password" />
Denise