Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Integrating to WP has broken the static front page

*snicker* That was so much easier. Sometimes I get stupider the more I try to code!

<li style="list-style:none">
<h2>Meta</h2>
<?php global $user_ID, $user_identity, $user_level ?>
<?php if ( $user_ID ) : ?>
<p><?php if ( $avatar = get_avatar( $user_ID, $size = '50' ) ) : ?>
<div style="float:right;"><?php echo $avatar; ?></div>
<?php unset($avatar); endif; ?>
<?php printf(__('<strong>Welcome, %1$s!</strong>'), $user_identity );?>
<br /><?php global $current_user; ?> <a href="http://domain.net/forums/profile.php?id=<?php echo $user_ID; ?> ">Profile</a> | <a href="<?php echo wp_logout_url(); ?>">Logout</a>
</p>
<div style="clear:right"></div>
<?php elseif ( get_option('users_can_register') ) : ?>

<form action="http://domain.net/blog/wp-login.php" method="post">
<p>
<label for="log"><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="22" /> User</label><br />
<label for="pwd"><input type="password" name="pwd" id="pwd" size="22" /> Password</label><br />
<input type="submit" name="submit" value="Send" class="button" />
<label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label><br />
</p>
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
</form>
<p><a href="http://domain.net/forums/register.php">Register</a> | <a href="http://domain.net/forums/bb-login.php">Recover password</a></p>
<?php endif; ?>
</li>

Skip to toolbar