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?
override login form, remove forget your password
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
- ArjanR
- Joomla! Explorer
- Posts: 451
- Joined: Fri Jun 24, 2011 8:31 am
- Contact:
- imanickam
- Joomla! Master
- Posts: 28191
- Joined: Wed Aug 13, 2008 2:57 am
- Location: Chennai, India
Re: override login form, remove forget your password
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.
(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.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged
- ArjanR
- Joomla! Explorer
- Posts: 451
- Joined: Fri Jun 24, 2011 8:31 am
- Contact:
Re: override login form, remove forget your password
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....
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....
- Webdongle
- Joomla! Master
- Posts: 43979
- Joined: Sat Apr 05, 2008 9:58 pm
Re: override login form, remove forget your password
Instead ofArjanR 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.
....
/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
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- ArjanR
- Joomla! Explorer
- Posts: 451
- Joined: Fri Jun 24, 2011 8:31 am
- Contact:
Re: override login form, remove forget your password
That worked perfectly. Great. I thought i did try that one a before too but probably got mixed up by everyt
hing . I had looked at the article too but well, apparently sometimes I need better glasses
Thx!
hing . I had looked at the article too but well, apparently sometimes I need better glasses
Thx!
- Webdongle
- Joomla! Master
- Posts: 43979
- Joined: Sat Apr 05, 2008 9:58 pm
Re: override login form, remove forget your password
It took me several attempts before it had to be pointed out to me
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Jan 05, 2018 12:41 pm
Re: override login form, remove forget your password
Thanks man, this realy helped me out here =DWebdongle wrote:Instead ofArjanR 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.
....
/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