user-panel.php question
-
I use the plugin Theme my login everything works perfectly on one thing.
Now my question is how do I get the custom user links working on the front page in the log in boxHere below you can see the code that I use to login screen
<!-- \ sign box / --> <?php } else { ?> <div class="signBox"> <h3><img src="<? bloginfo('template_directory'); ?>/images/img9.png" alt="">Aanmelden</h3> <div class="inner"> <form action="<?php echo get_option('home'); ?>/wp-login.php" method="post"> <fieldset> <input type="text" name="log" id="user_login" class="field" value="<?php echo attribute_escape(stripslashes($user_login)); ?>"> <input type="password" name="pwd" id="user_pass" class="field pass" value=""> <div class="bot"> <input type="submit" name="wp-submit" id="wp-submit" class="button" value="<?php echo attribute_escape(__('Login')); ?>"> <input name="redirect_to" value="http://<?php echo $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] ?>" type="hidden"> <a href=" http://www.hulp-it.nl/site/registration " target="blank"class="link">Registreren</a> <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/><br><a href="http://www.jouwhost.nl/wp-login.php?action=lostpassword" target="blank"class="link">Wachtwoord kwijt?</a> </div> </fieldset> </form> </div> </div> <?php } ?> <!-- \ sign box / -->Below you can see the code that I use when a user is login
<!-- / sign box \ --> <?php if (is_user_logged_in()) { ?> <!-- / sign box \ --> <div class="signBox"> <h3><img src="<? bloginfo('template_directory'); ?>/images/img9.png" alt="">Welkom <?php echo $user_identity; ?>!</h3> <div class="inner"> <a href="<?php echo wp_logout_url( get_bloginfo('url') ); ?>"title="Logout" class="link2" >Uitloggen</a><br> <a href="http://www.hulp-it.nl/site/wp-admin/" class="link2">Adminpanel</a> </div> </div> <!-- \ sign box / -->
The topic ‘user-panel.php question’ is closed to new replies.