latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

How to bring 'lost password' form onto page?

Home › Forums › Community Forum › How to bring 'lost password' form onto page?

This topic contains 0 replies, has 1 voice. Last updated by  miranda rota 3 years, 2 months ago.

Topic Author Topic
Posted: Sunday Nov 3rd, 2013 at 7:49 pm #60821
miranda rota
Username: tara2

I’ve brought in the login to this site page here: http://gator3027.hostgator.com/~yep1/login/

If they click the ‘Register’ link it also takes them to a registration form that is in a site page …but if they click the ‘Lost Password’ link it takes them to the wp version of the lost password page.

This is the code I’ve used (which I got from the internet) – I’m putting all the code here, just in case, but I think the relevant part is just near the top??

<!-- Custom Login/Register/Password Code @ http://digwp.com/2010/12/login-register-password-code/ -->
<!-- Theme Template Code -->

<div id="login-register-password">

	

	<ul class="tabs_login">
		<li class="active_login"><a href="#tab1_login">Login</a></li>
		<li><a href="http://gator3027.hostgator.com/~yep1/membership/">Register</a></li>
		<li><a href="http://gator3027.hostgator.com/~yep1/wp-login.php?action=lostpassword">Forgot your password?</a></li>
	</ul>
	<div class="tab_container_login">
		<div id="tab1_login" class="tab_content_login">

			

			<h3>Success!</h3>
			<p>Check your email for the password and then return to log in.</p>

			

			<h3>Success!</h3>
			<p>Check your email to reset your password.</p>

			

			<h3>Have an account?</h3>
			<p>Log in or sign up! It&rsquo;s fast &amp; <em>free!</em></p>

			

			&lt;form method=&quot;post&quot; action=&quot;/wp-login.php" class="wp-user-form"&gt;
				<div class="username">
					<label for="user_login">: </label>
					&lt;input type=&quot;text&quot; name=&quot;log&quot; value=&quot;" size="20" id="user_login" tabindex="11" /&gt;
				</div>
				<div class="password">
					<label for="user_pass">: </label>
					
				</div>
				<div class="login_fields">
					<div class="rememberme">
						<label for="rememberme">
							 Remember me
						</label>
					</div>
					
					&lt;input type=&quot;submit&quot; name=&quot;user-submit&quot; value=&quot;" tabindex="14" class="user-submit" /&gt;
					&lt;input type=&quot;hidden&quot; name=&quot;redirect_to&quot; value=&quot;" /&gt;
					
				</div>
			</form>
		</div>
		<div id="tab2_login" class="tab_content_login">
			<h3>Register for this site!</h3>
			<p>Sign up now for the good stuff.</p>
			&lt;form method=&quot;post&quot; action=&quot;" class="wp-user-form"&gt;
				<div class="username">
					<label for="user_login">: </label>
					&lt;input type=&quot;text&quot; name=&quot;user_login&quot; value=&quot;" size="20" id="user_login" tabindex="101" /&gt;
				</div>
				<div class="password">
					<label for="user_email">: </label>
					&lt;input type=&quot;text&quot; name=&quot;user_email&quot; value=&quot;" size="25" id="user_email" tabindex="102" /&gt;
				</div>
				<div class="login_fields">
					
					&lt;input type=&quot;submit&quot; name=&quot;user-submit&quot; value=&quot;" class="user-submit" tabindex="103" /&gt;
					&lt;?php $register = $_GET[&#039;register&#039;]; if($register == true) { echo &#039;<p>Check your email for the password!</p>'; } ?&gt;
					&lt;input type=&quot;hidden&quot; name=&quot;redirect_to&quot; value=&quot;?register=true" /&gt;
					
				</div>
			</form>
		</div>
		<div id="tab3_login" class="tab_content_login">
			<h3>Lose something?</h3>
			<p>Enter your username or email to reset your password.</p>
			&lt;form method=&quot;post&quot; action=&quot;" class="wp-user-form"&gt;
				<div class="username">
					<label for="user_login" class="hide">: </label>
					
				</div>
				<div class="login_fields">
					
					&lt;input type=&quot;submit&quot; name=&quot;user-submit&quot; value=&quot;" class="user-submit" tabindex="1002" /&gt;
					&lt;?php $reset = $_GET[&#039;reset&#039;]; if($reset == true) { echo &#039;<p>A message will be sent to your email address.</p>'; } ?&gt;
					&lt;input type=&quot;hidden&quot; name=&quot;redirect_to&quot; value=&quot;?reset=true" /&gt;
					
				</div>
			</form>
		</div>
	</div>

	

	<div class="sidebox">
		<h3>Welcome, </h3>
		<div class="usericon">
			ID, 60); ?&gt;

		</div>
		<div class="userinfo">
			<p>You&rsquo;re logged in as <strong></strong></p>
			<p>
				&lt;a href=&quot;"&gt;Log out</a> | 
				&lt;?php if (current_user_can(&#039;manage_options&#039;)) { 
					echo &#039;<a href="' . admin_url() . '">' . __('Admin') . '</a>'; } else { 
					echo '<a href="' . admin_url() . 'profile.php">' . __('Profile') . '</a>'; } ?&gt;

			</p>
		</div>
	</div>

	

</div>

<!-- Custom Login/Register/Password Code @ http://digwp.com/2010/12/login-register-password-code/ -->

…and this is the original code for the top bit that I’ve altered

<div id="login-register-password">

	

	<ul class="tabs_login">
		<li class="active_login"><a href="#tab1_login">Login</a></li>
		<li><a href="#tab2_login">Register</a></li>
		<li><a href="#tab3_login">Forgot?</a></li>
	</ul>
	

Many thanks for your help

  • This topic was modified 3 years, 2 months ago by  miranda rota.
  • This topic was modified 3 years, 2 months ago by  miranda rota.
  • This topic was modified 3 years, 1 month ago by  miranda rota.

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.