Keyword

Removing login links

  • Chess Dad
  • Chess Dad's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 4 months ago #144176 by Chess Dad
Removing login links was created by Chess Dad
Hello,

Because my site is on a private network and there is no email available for users to request a password reset or retrieve their user name, I commented out the links from login.php file.

I'm concerned that when I update K2 that file will be over-written and I'll have to go back in and comment them out again. If that's what I have to do, no problem, I was just wondering if there were any way to prevent this, such as some sort of over-ride like there is for css.

Thanks.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 4 months ago #144177 by Krikor Boghossian
Replied by Krikor Boghossian on topic Removing login links
If you override the component and the modules, you can safely update K2 without losing any changes.

Furthermore you should disable user registration from the administration since Joomla! generates these URLs by default.

More on overrides can be found here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Chess Dad
  • Chess Dad's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 4 months ago #144180 by Chess Dad
Replied by Chess Dad on topic Removing login links
Thanks for your quick reply Krikor. I'll look into the over rides. I'm not sure I understand your statement,

disable user registration from the administration


Could you please explain? I'm using K2 user for login so I'm confused as to what you are referring to.

Many thanks.
Chess Dad.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 4 months ago #144182 by Krikor Boghossian
Replied by Krikor Boghossian on topic Removing login links

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Chess Dad
  • Chess Dad's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 4 months ago #144185 by Chess Dad
Replied by Chess Dad on topic Removing login links
Hi Krikor,

I looked at the over-ride link. Really neat stuff. My question is this. Where I commented out the forgot password and user name links was in a file called login.php located in /var/www/modules/mod_k2_user/tmpl.

Does this mean since it's not located in the /components/com_k2 directory that it can't be overridden? The article you referred to only referred to the com_k2 directory.

Thanks for your patience with this.

Chess Dad.

Please Log in or Create an account to join the conversation.

  • Chess Dad
  • Chess Dad's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 4 months ago #144186 by Chess Dad
Replied by Chess Dad on topic Removing login links
Never mind. I experimented and discovered if I create a folder called mod_k2_user and put the login.php file there, it work!

Thanks for all your help!!

Chess Dad.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 4 months ago #144203 by Krikor Boghossian
Replied by Krikor Boghossian on topic Removing login links
You 're welcome Chess Dad,

The correct folder would be: /templates/Your_Template/html/mod_k2_user/

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum