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’s fast & <em>free!</em></p>
<form method="post" action="/wp-login.php" class="wp-user-form">
<div class="username">
<label for="user_login">: </label>
<input type="text" name="log" value="" size="20" id="user_login" tabindex="11" />
</div>
<div class="password">
<label for="user_pass">: </label>
</div>
<div class="login_fields">
<div class="rememberme">
<label for="rememberme">
Remember me
</label>
</div>
<input type="submit" name="user-submit" value="" tabindex="14" class="user-submit" />
<input type="hidden" name="redirect_to" value="" />
</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>
<form method="post" action="" class="wp-user-form">
<div class="username">
<label for="user_login">: </label>
<input type="text" name="user_login" value="" size="20" id="user_login" tabindex="101" />
</div>
<div class="password">
<label for="user_email">: </label>
<input type="text" name="user_email" value="" size="25" id="user_email" tabindex="102" />
</div>
<div class="login_fields">
<input type="submit" name="user-submit" value="" class="user-submit" tabindex="103" />
<?php $register = $_GET['register']; if($register == true) { echo '<p>Check your email for the password!</p>'; } ?>
<input type="hidden" name="redirect_to" value="?register=true" />
</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>
<form method="post" action="" class="wp-user-form">
<div class="username">
<label for="user_login" class="hide">: </label>
</div>
<div class="login_fields">
<input type="submit" name="user-submit" value="" class="user-submit" tabindex="1002" />
<?php $reset = $_GET['reset']; if($reset == true) { echo '<p>A message will be sent to your email address.</p>'; } ?>
<input type="hidden" name="redirect_to" value="?reset=true" />
</div>
</form>
</div>
</div>
<div class="sidebox">
<h3>Welcome, </h3>
<div class="usericon">
ID, 60); ?>
</div>
<div class="userinfo">
<p>You’re logged in as <strong></strong></p>
<p>
<a href="">Log out</a> |
<?php if (current_user_can('manage_options')) {
echo '<a href="' . admin_url() . '">' . __('Admin') . '</a>'; } else {
echo '<a href="' . admin_url() . 'profile.php">' . __('Profile') . '</a>'; } ?>
</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.