I figured it out this one to.. while editing comments.php template. When a user login, this show up “Logged in as Username” Above the comment box.
While changing some stuff on it i took a deep look into the code and found it ??
<?php if ( $user_ID ) : ?>
The Info panel...
<?php else : ?>
The Login Panel
<?php endif; ?>
That`s the code that i was looking for. Imagination is more important than knowledge!)
So.. Here it comes the code:
<?php if ( $user_ID ) : ?>
<?php wp_head();
global $user_identity;
?>
<p><b>Howdy</b>, <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. [<a href="<?php echo wp_logout_url(); ?>" title="Log out of this account">Log Out</a>]</p>
<?php else : ?>
<form name="loginform" id="loginform" action="<?php echo get_option('siteurl'); ?>/wp-login.php" method="post">
Username <input value="Username" class="input" type="text" size="20" tabindex="10" name="log" id="user_login" onfocus="if (this.value == 'Username') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Username';}" /> <input name="rememberme" id="rememberme" value="forever" tabindex="90" type="checkbox"> Remember Me? <br />
Password <input value="Password" class="input" type="password" size="20" tabindex="20" name="pwd" id="user_pass" onfocus="if (this.value == 'Password') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Password';}" />
<input name="wp-submit" id="wp-submit" value="Log In" tabindex="100" type="submit">
<input name="redirect_to" value="<?php echo get_option('siteurl'); ?>/wp-admin/" type="hidden">
<input name="testcookie" value="1" type="hidden">
</form>
<?php endif; ?>
Hope you like it ??
Credit goes to RIPWRZ.com