Keyword

Disable "create account" from k2 user login

  • gnarus
  • gnarus's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 3 months ago #114592 by gnarus
Hi how do i remove/disable the "create account" link on the K2 User Login module ( without disable "Allow User Registration" on users joomla config )
Thanks

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

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 3 months ago #114593 by Yiota
You will have to create a module override (mod_k2_user) and edit the login.php file. There you can remove the link for creating a new account.

Read here how overrides work.

getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

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

More
10 years 5 months ago #114594 by eu
I have the same problem.

I vould like just to publish k2 user login without the possibility to create a new account.

I tryed to copy the modules/mod_k2_user/ folder end editing the file /tmpl/login.php and comment:


<?php if(JPluginHelper::isEnabled('system', 'remember')): ?>
<p id="form-login-remember">
<label for="modlgn_remember"><?php echo JText::_('K2_REMEMBER_ME') ?></label>
<input id="modlgn_remember" type="checkbox" name="remember" class="inputbox" value="yes" />
</p>
<?php endif; ?>


<?php */?>


without tje right result.

What's worng?

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

More
10 years 5 months ago #114595 by Lefteris
@eu

Just copy modules/mod_k2_user/tmpl/default.php to templates/YOUR_TEMPLATE/html/mod_k2_user/default.php. Then remove the code you don't need.

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