override login form, remove forget your password

Everything to do with Joomla! 2.5 templates and templating.

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.
Locked
User avatar
ArjanR
Joomla! Explorer
Joomla! Explorer
Posts: 451
Joined: Fri Jun 24, 2011 8:31 am
Contact:

override login form, remove forget your password

Post by ArjanR » Fri Apr 13, 2012 4:00 pm

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?

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 28191
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: override login form, remove forget your password

Post by imanickam » Fri Apr 13, 2012 4:16 pm

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.
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

User avatar
ArjanR
Joomla! Explorer
Joomla! Explorer
Posts: 451
Joined: Fri Jun 24, 2011 8:31 am
Contact:

Re: override login form, remove forget your password

Post by ArjanR » Sun Apr 15, 2012 1:04 pm

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....

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43979
Joined: Sat Apr 05, 2008 9:58 pm

Re: override login form, remove forget your password

Post by Webdongle » Sun Apr 15, 2012 2:06 pm

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
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".

User avatar
ArjanR
Joomla! Explorer
Joomla! Explorer
Posts: 451
Joined: Fri Jun 24, 2011 8:31 am
Contact:

Re: override login form, remove forget your password

Post by ArjanR » Sun Apr 15, 2012 4:05 pm

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!

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43979
Joined: Sat Apr 05, 2008 9:58 pm

Re: override login form, remove forget your password

Post by Webdongle » Sun Apr 15, 2012 5:38 pm

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".

ianporrat
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Jan 05, 2018 12:41 pm

Re: override login form, remove forget your password

Post by ianporrat » Fri Jan 05, 2018 12:50 pm

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


Locked

Return to “Templates for Joomla! 2.5”