Create "Register New Account" button in login page

More
4 years 6 months ago #7023 by Muchtar
Muchtar created the topic: Create "Register New Account" button in login page
Hi there,

How can I create new button "Register New Account" next to "Log in" button at login page?


Attachments:

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

More
4 years 6 months ago #7027 by artur
artur replied the topic: Create "Register New Account" button in login page
Hello,
This require component modification.
You can edit 'components/com_users/views/login/tmpl/default_login.php' and add code :
<?php
		$usersConfig = JComponentHelper::getParams('com_users');
		if ($usersConfig->get('allowUserRegistration')) : ?>
			<a class="btn" href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
				<?php echo JText::_('COM_USERS_LOGIN_REGISTER'); ?></a>
		<?php endif; ?>

Best Regards.

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

Time to create page: 0.261 seconds

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, registered in Centralna Ewidencja i Informacja o Działalnosci Gospodarczej
NIP/VATID: PL5882424318

Copyright © 2009-2019 Joomla-Monster.com All rights reserved.

Joomla-Monster.com and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.