Statistics: Posted by nashvillegeek — July 26th, 2011, 11:59 am
<?php
// Template Name: Members List
get_header(); ?>
<style type='text/css'>
.author { height: 140px; width: 500px; }
.author .userAvatar { float: left; width: 82px; padding-right: 10px; }
.author .avatar, .author .photo { border: 1px solid #ccc; }
.author .memberInfo { float: left; width: 300px; }
.author h3 { margin: 0px 0px 5px 0px; line-height: 1em; }
.author h3 a { text-decoration: none; }
.author .connect { }
.author .connect li { background-image: none; }
.author .clearboth { clear: both; }
</style>
<div id="content_box">
<div id="left_box">
<div id="content" class="page">
<div id="content_inner">
<h1>Site Members</h1>
<div class="format_text">
<p><a href="<?php bloginfo('wpurl'); ?>/wp-admin/profile.php">Edit your profile.</a></p>
<?php
$user_ids = $wpdb->get_col("SELECT DISTINCT ID FROM $wpdb->users ORDER BY display_name");
if($user_ids):
foreach($user_ids as $user_id):
$cur_member = get_userdata($user_id);
?>
<div class="author" id="author-<?php echo $cur_member->user_nicename; ?>"> <?php // replaced user_login; ?>
<div class="userAvatar">
<a href="<?php bloginfo('url'); ?>/author/<?php echo $cur_member->user_nicename; ?>"> <?php // replaced user_login; ?>
<?php echo get_avatar(($cur_member->ID), '80', $hybrid_settings['default_avatar']); ?></a>
<p> <?php/* echo $userlevels["levels"]["active"];*/ ?></p>
</div>
<div class="memberInfo">
<h3><a href="<?php bloginfo('url'); ?>/author/<?php echo $cur_member->user_nicename; ?>"><?php echo $cur_member->display_name; ?></a></h3>
<?php if($cur_member->birthday || $cur_member->user_url || $cur_member->twitter || $cur_member->facebook || $cur_member->flickr): ?>
<ul class='connect'>
<li>Birthday: <?php echo $cur_member->birthday; ?></li>
<?php if($cur_member->user_url): ?>
<li>Website: <a href='<?php echo $cur_member->user_url; ?>'>Link</a></li>
<?php endif; ?>
<?php if($cur_member->twitter): ?>
<li>Twitter: <a href='http://twitter.com/<?php echo $cur_member->twitter; ?>'><?php echo $cur_member->twitter; ?></a></li>
<?php endif; ?>
<?php if($cur_member->facebook): ?>
<li>Facebook: <a href='http://www.facebook.com/<?php echo $cur_member->facebook; ?>'><?php echo $cur_member->facebook; ?></a></li>
<?php endif; ?>
<?php if($cur_member->flickr): ?>
<li>Flickr: <a href='http://www.flickr.com/photos/<?php echo $cur_member->flickr; ?>/'><?php echo $cur_member->flickr; ?></a></li>
<?php endif; ?>
</ul>
<?php endif; ?>
</div>
</div>
<br class="clearboth" />
<?php
endforeach;
endif; ?>
<p><a href="<?php bloginfo('wpurl'); ?>/wp-admin/profile.php">Edit your profile.</a></p>
</div>
</div>
</div>
<?php include (TEMPLATEPATH . '/left_bar.php'); ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
Statistics: Posted by Nathan Briggs — July 26th, 2011, 10:48 am
Statistics: Posted by dskallman — July 17th, 2011, 10:48 am
Statistics: Posted by Cristián Lávaque — July 16th, 2011, 6:04 pm
Statistics: Posted by Cristián Lávaque — July 16th, 2011, 12:04 am
Statistics: Posted by dskallman — July 15th, 2011, 11:07 am