Add Forgot Password link to login page

GK User
Wed May 02, 2012 8:12 pm
How would I add a Forgot Password link to the login page for my site?

http://my3creek.com

Thanks,
Chris
User avatar
Fresh Boarder

GK User
Wed May 09, 2012 6:59 pm
Hi

Sorry about the delay.

Please open the following file: ../gk_myfolio/html/com_users/login/default_login.php

and find this lines at the end of the document:

Code: Select all
<?php echo JHtml::_('form.token'); ?>
   </form>
    </div>
   
</div>


replace them with:

Code: Select all
<?php echo JHtml::_('form.token'); ?>
   </form>
    </div>
    <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>
   
</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; text-transform: uppercase; font-size: 10px; margin-right: 10px}


It should look like this now:

screen.png


Cheers ;)
User avatar
Platinum Boarder

GK User
Sat Mar 16, 2013 10:30 pm
Seichinha wrote:Hi

Sorry about the delay.

Please open the following file: ../gk_myfolio/html/com_users/login/default_login.php

and find this lines at the end of the document:

Code: Select all
<?php echo JHtml::_('form.token'); ?>
   </form>
    </div>
   
</div>


replace them with:

Code: Select all
<?php echo JHtml::_('form.token'); ?>
   </form>
    </div>
    <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>
   
</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; text-transform: uppercase; font-size: 10px; margin-right: 10px}


It should look like this now:

screen.png


Cheers ;)



Great! That worked for me as well. Thank you.
User avatar
Gold Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.