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

override login form, remove forget your password

Postby 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: 26484
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: override login form, remove forget your password

Postby 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 | இளஞாயிறு மாணிக்கம்
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged

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

Re: override login form, remove forget your password

Postby 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: 34130
Joined: Sat Apr 05, 2008 9:58 pm

Re: override login form, remove forget your password

Postby 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

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

Re: override login form, remove forget your password

Postby 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: 34130
Joined: Sat Apr 05, 2008 9:58 pm

Re: override login form, remove forget your password

Postby Webdongle » Sun Apr 15, 2012 5:38 pm

It took me several attempts before it had to be pointed out to me :-[

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

Re: override login form, remove forget your password

Postby 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


Return to “Templates for Joomla! 2.5”

Who is online

Users browsing this forum: No registered users and 3 guests