WordPress.org

Ready to get started?Download WordPress

Forums

Add login box to blix sidebar (1 post)

  1. Flybuzz
    Member
    Posted 8 years ago #

    Hi, I tried to add the following code to blix side bar to create a loginbox at the homepage. Seems to be working but they layout is kinda messed up. Specially under firefox. I can't make those box appear smaller... Any ideas?

    take look at http://www.tvshowblogs.com/

    <?php
    global $user_ID, $user_identity;
    get_currentuserinfo();
    if (!$user_ID):
    ?>
    <h2><?php _e('Login'); ?></h2>
    <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="5" tabindex="7" /></label>
    <label><?php _e('Password') ?>:
    <input type="password" name="pwd" id="pwd" value="" size="5" tabindex="8" /></label>
    <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:
    ?>
    <h2><?php echo $user_identity; ?></h2>

    <?php
    endif;
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags