Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter kareldc2

    (@kareldc2)

    I forgot to mention that I have something similar working on my blog for the moment.

    It’s a small login form in the sidebar. When the users logs in the form dissapears and there appears a welcome message in it’s place. It works fine, but I can’t get it to work with an other link in my sidebar.

    Here’s the code:

    <?php
    global $user_ID, $user_identity;
    get_currentuserinfo();
    if (!$user_ID):
    ?>
    <br>
    <form name=”loginform” id=”loginform” action=”<?php echo get_settings(‘siteurl’); ?>/wp-login.php” method=”post”>
    <div><label><?php _e(‘Login’) ?>:
    <input type=”text” name=”log” id=”log” value=”” size=”20″ tabindex=”7″ /></label>
    <label><?php _e(‘Password’) ?>:
    <input type=”password” name=”pwd” id=”pwd” value=”” size=”20″ tabindex=”8″ /></label>
    <input type=”hidden” name=”rememberme” value=”forever” />
    <input type=”submit” name=”submit” value=”<?php _e(‘Login’); ?> »” tabindex=”9″ />
    <?php wp_register(”, ”); ?>
    <input type=”hidden” name=”redirect_to” value=”<?php echo $_SERVER[‘REQUEST_URI’]; ?>”/></div>
    </form>
    <?php
    else:
    ?>

Viewing 1 replies (of 1 total)