Page 1 of 1

override login form, remove forget your password

Posted: Fri Apr 13, 2012 4:00 pm
by ArjanR
Not an unusual question but i can't seem to get it right.
I want to do an override and remove the forgot your password and forgot your username from the login form.
First i made a new directory called html here .../templates/template_name/html. In that new html directory i made a new directory called mod_login
Then I copied the default.php and the index.html from the modules/mod_login/tmpl directory into this new html directory.
Then i commanded out like this <?php //echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?></a>

But i still have the remove your password visible. What did i miss?

Re: override login form, remove forget your password

Posted: Fri Apr 13, 2012 4:16 pm
by imanickam
Hope,

(a) You are copying the file in the correct site

(b) You are copying the file to the correct template's override directory

(c) Hope you have copied the file to the directory \templates\your-template\html\mod_login - NOT to the directory \templates\your-template\html

Clear the cache in Joomla! and see what happens.

Re: override login form, remove forget your password

Posted: Sun Apr 15, 2012 1:04 pm
by ArjanR
i don't seem to get it right :'( .
I did a test and changed the core file .../mod_login/tmpl/default.php and outlined this: <?php //echo JText::_('MOD_LOGIN_REGISTER'); ?></a>
I did the same change with the core ..../components/views/login/tmpl/default.login.php.
After saving and refreshing the browser my create login had disappeared from the login form. Great, exactly what i wanted.

After that i changed the files back to their original code and created subdirectories as mentioned in my post before. That didn't work. Then I made a new structure like this:
.../templates/my_template/html/com_users/views/login/tmpl/ and copied the default_login.php there and outlined the same line as before. Did the same structure with the modules directory. ...templates/my_template/html/mod_login/tmpl/default.php.

Refreshed the browser but still it's not working. What am I missing here ??? Tried it allso without the tmpl directory....

Re: override login form, remove forget your password

Posted: Sun Apr 15, 2012 2:06 pm
by Webdongle
ArjanR wrote:...
.../templates/my_template/html/com_users/views/login/tmpl/ and copied the default_login.php there and outlined the same line as before. Did the same structure with the modules directory. ...templates/my_template/html/mod_login/tmpl/default.php.
....
Instead of
/templates/my_template/html/com_users/views/login/tmpl/
And
/templates/my_template/html/mod_login/tmpl/default.php

Try
/templates/my_template/html/com_users/login/default.php
and
/templates/my_template/html/mod_login/default.php

see http://docs.joomla.org/How_to_override_ ... omla!_core

Re: override login form, remove forget your password

Posted: Sun Apr 15, 2012 4:05 pm
by ArjanR
That worked perfectly. Great. I thought i did try that one a before too but probably got mixed up by everyt
hing :D . I had looked at the article too but well, apparently sometimes I need better glasses ;)
Thx!

Re: override login form, remove forget your password

Posted: Sun Apr 15, 2012 5:38 pm
by Webdongle
It took me several attempts before it had to be pointed out to me :-[

Re: override login form, remove forget your password

Posted: Fri Jan 05, 2018 12:50 pm
by ianporrat
Webdongle wrote:
ArjanR wrote:...
.../templates/my_template/html/com_users/views/login/tmpl/ and copied the default_login.php there and outlined the same line as before. Did the same structure with the modules directory. ...templates/my_template/html/mod_login/tmpl/default.php.
....
Instead of
/templates/my_template/html/com_users/views/login/tmpl/
And
/templates/my_template/html/mod_login/tmpl/default.php

Try
/templates/my_template/html/com_users/login/default.php
and
/templates/my_template/html/mod_login/default.php

see http://docs.joomla.org/How_to_override_ ... omla!_core
Thanks man, this realy helped me out here =D