Log-in Section

Okay I have heavily modified my WordPress blog to be more like a website/blog than just a standard blog.

One thing i am trying to add is to have a log-in area on the left hand side which i have working, but once you log-in i would like that to dissapear and to have your user_nickname and a little message show up instead.

And possible some other information.

here is the code i am using for my sidebar.php


<div id="sidebar">

<br /><form style="padding: 0px; margin-top: 0px; margin-bottom: 0px;" id="searchform" method="get" action="<?php bloginfo('url'); ?>">
<div class="title">Search:</div>
<p style="padding: 0px; margin-top: 0px; margin-bottom: 0px;"><input type="text" class="input" name="s" id="search" size="15" />
<input name="submit" type="submit" tabindex="5" value="<?php _e('GO'); ?>" /></p>
</form>

<br /><div class="title">Categories</div>
	<?php list_cats(0, 'all', 'name', 'asc', 'asc', 1, 0, 1, 1, 1, 1, 0,'','','','',''); ?>

<br /><div class="title"><?php _e('Archives'); ?></div>
	<?php wp_get_archives('type=monthly'); ?>

<br /><div class="title"><?php _e('Links'); ?></div>
	<?php get_links('-1', '', '<br />', '<br />', 0, 'name', 0, 0, -1, 0); ?> 

<br /><div class="title">Log-In</div>
<form name="loginform" id="loginform" action="wp-login.php" method="post">
<p><label>Username:<br /><input type="text" name="log" id="log" value="" size="15" tabindex="1" /></label></p>
<p><label>Password:<br /> <input type="password" name="pwd" id="pwd" value="" size="15" tabindex="2" /></label></p>
<p class="submit">
	<input type="submit" name="submit" id="submit" value="Login &raquo;" tabindex="3" />
	<input type="hidden" name="redirect_to" value="http://www.whydontyoushutthehellup.com/?page_id=26" />
</p>
</form>
<a href="http://www.whydontyoushutthehellup.com/?page_id=21">Register</a>   ||   <a href="http://www.whydontyoushutthehellup.com/?page_id=23" title="Password Lost and Found">Lost your password?</a>


<br /><br /><dic class="title"><a href="../wp-admin"><?php _e('User CP'); ?></a>
<br /><br />

</div>

I have tried using a combination of different PHP ideas, but to be honest this is my first time using PHP, so its been a ton of trial and error.

You can check out the site at www.whydontyoushutthehellup.com and see what i have thus far :slight_smile: