Add this to your side bar. ??
However, I still cant figure out how to make it so when you logoff and go to back to page you came from, that is, its ignoreing “action=logout&redirect_to=” . ?? Any ideas?
<?php
global $user_ID, $user_identity;
get_currentuserinfo();
if (!$user_ID):
?>
<h2><?php _e('Sign In'); ?></h2>
<ul style="text-align: center;">
<li>
<form name="loginform" id="loginform" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method="post">
<div><label style="color:red"><?php _e('User Name') ?>:<br /> <input type="text" name="log" id="log" value="" size="20" tabindex="7" /></label><br /><br />
<label style="color:red"><?php _e('Password') ?>:<br /> <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="8" /></label><br /><br />
<input type="submit" name="submit" value="<?php _e('Sign In'); ?> »" tabindex="9" />
<input type="hidden" name="redirect_to" value="<?php echo convert_chars($_SERVER['REQUEST_URI']); ?>"/></div>
</form>
</li>
</ul>
<?php
else:
?>
<h2><?php echo $user_identity; ?></h2>
<ul style="text-align: center;"><li>
<a href="<?php echo get_settings('siteurl') . '/wp-login.php?action=logout&redirect_to=' . $_SERVER['REQUEST_URI']; ?>" title="Sign Out"><?php _e('Sign Out'); ?></a>
</li>
</ul>
<?php
endif;
?>