hi guys…i pasted the code to create a text box to log in from the side bar, and it works well except for two things:
try logging on to my site:
username: test
pasword: test
https://www.liverpuncher.com
1. when you log in for the first time, it does not show the user name, and seems like you are not logged in, only after you navigate to another page does it show the log in name….
2. How do i get rid of the bullet point “Login” on top of the log in box?
here is the code i pasted in the side bar, it works great except for the two issues i mentioned…
<li id="login">
<?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="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:
?>
<h2><?php echo $user_identity; ?></h2>
<ul>
<?php wp_register(); ?>
<li><a>"><?php _e('Logout'); ?></a></li>
</ul>
<?php
endif;
?>