My subscribers can't remember the login information, what can I do?
The following guide explains how to add URLs to recover the password and the username, as well as to create a new account by overwriting the RSMembership! user login information area when subscribing to a membership. Steps to take:
1. Create The Override File
You'll need to create an override for this file:
\components\com_rsmembership\views\subscribe\tmpl\default_login.php
Instructions on how to create template overrides for RSMembership! can be found here.
2. Add The Code
In this new file, add:
use Joomla\CMS\Factory; Factory::getApplication()->getLanguage()->load('com_users', JPATH_SITE);
..under this line:
use Joomla\CMS\HTML\HTMLHelper;
Next, add something similar:
<p><a href="<?php echo Route::_( 'index.php?option=com_users&view=reset' ); ?>"> <?php echo Text::_('COM_USERS_LOGIN_RESET'); ?></a></p> <p><a href="<?php echo Route::_( 'index.php?option=com_users&view=remind' ); ?>"> <?php echo Text::_('COM_USERS_LOGIN_REMIND'); ?></a></p> <a href="<?php echo Route::_( 'index.php?option=com_users&view=registration' ); ?>"> <p><?php echo Text::_('COM_USERS_LOGIN_REGISTER'); ?></a></p>
..above this line:
<div class="form-actions">