The Joomla! Forum ™



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.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Fri Apr 13, 2012 4:00 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Fri Jun 24, 2011 8:31 am
Posts: 404
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?

_________________
Something I made for a school http://www.annaskolan.se


Top
 Profile  
 
PostPosted: Fri Apr 13, 2012 4:16 pm 
User avatar
Joomla! Master
Joomla! Master

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


Top
 Profile  
 
PostPosted: Sun Apr 15, 2012 1:04 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Fri Jun 24, 2011 8:31 am
Posts: 404
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....

_________________
Something I made for a school http://www.annaskolan.se


Top
 Profile  
 
PostPosted: Sun Apr 15, 2012 2:06 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23363
Location: @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

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
PostPosted: Sun Apr 15, 2012 4:05 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Fri Jun 24, 2011 8:31 am
Posts: 404
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!

_________________
Something I made for a school http://www.annaskolan.se


Top
 Profile  
 
PostPosted: Sun Apr 15, 2012 5:38 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23363
Location: @Webdongle
It took me several attempts before it had to be pointed out to me :-[

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 



Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group