Registration Link in User login page

GK User
Thu May 10, 2012 7:57 am
Hi

I want to add a option "Create a account" or "registration " on user login page. So that this link can redirect the unregistered user's to the registration page.
Please check this link: http://call2play.com/call2play/user-login.html
User avatar
Fresh Boarder

GK User
Thu May 10, 2012 4:33 pm
Hi,

There isn't a setting for that, however you can customize this file to add the link as well \templates\gk_gamemagazine\html\com_users\login\default_login.php

Cheers,
User avatar
Platinum Boarder

GK User
Thu May 10, 2012 7:20 pm
Hi

From template directory, please open the following file: ../html/com_users/login/default_login.php

and at the end of this page, before the last closed div (line 63), add this code:

Code: Select all
<div id="gkReminder">
   <ul>
      <li>
         <a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>">
         <?php echo JText::_('COM_USERS_LOGIN_RESET'); ?></a>
      </li>
      <li>
         <a href="<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>">
         <?php echo JText::_('COM_USERS_LOGIN_REMIND'); ?></a>
      </li>
      <?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::_('COM_USERS_LOGIN_REGISTER'); ?></a>
      </li>
      <?php endif; ?>
   </ul>
   </div>


Them go to template parameters and enable override.css file on advanced settings.
Next open override.css file located on css template directory and add this lines on this file:

Code: Select all
#gkReminder {clear: both;}
#gkReminder li {display: inline; margin-right: 10px}


Cheers ;)
User avatar
Platinum Boarder


cron