Adding registration button to your default module is very easy.
I have checked this file: templates/gk_yourshop/html/mod_login/default.php
There is a condition if:
- Code: Select all
<?php
$usersConfig = JComponentHelper::getParams('com_users');
if ($usersConfig->get('allowUserRegistration')) : ?>
<li><a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
<?php echo JText::_('MOD_LOGIN_REGISTER'); ?></a></li>
<?php endif; ?>
So if you have in J2.5 registration enabled you should see registration link!
Of course you can modify it a little bit to only this:
- Code: Select all
<li><a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
<?php echo JText::_('MOD_LOGIN_REGISTER'); ?></a></li>
Then you will
always see registration link!