Created
March 7, 2013 16:17
-
-
Save anonymous/5109216 to your computer and use it in GitHub Desktop.
member gallery of users who uploaded an avatar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( bp_has_members( array('type'=>'newest', 'per_page'=>500, 'max'=>500) ) ) : ?> | |
<?php $count = 1; ?> | |
<?php while ( bp_members() ) : bp_the_member(); ?> | |
<?php $user = bp_get_member_user_id(); ?> | |
<?php if ( bp_get_user_has_avatar ($user) && $count <= 56): ?> | |
<div class="item-avatar"> | |
<a href="<?php bp_member_permalink() ?>" title="<?php bp_member_name() ?>"><?php bp_member_avatar() ?></a> | |
</div> | |
<?php $count = $count + 1; ?> | |
<?php endif; ?> | |
<?php endwhile; ?> | |
<?php endif; ?> | |
<div class="clear"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment