Skip to:
Content
Pages
Categories
Search
Top
Bottom

Ramdom members


  • funflash
    Participant

    @funflash

    Hello,
    I want to display a list of random members’ avatars in ../single/friends.php
    I tried that:

    <div id="aleaMembers">
    		<h4> Autres membres</h4>
    		<?php
    			if ( bp_has_members( 'type=random&max=24' ) ) : ?>         
    		<?php while ( bp_members() && !(bp_is_active( 'friends' ))) : bp_the_member(); ?>                      
    		<a href="<?php bp_member_permalink() ?>"><?php bp_member_avatar('type=medium&width=50&height=50') ?></a>
    		<?php endwhile; ?>
    		<?php endif; ?>
    		
    	</div>

    but nothing is displayed, I also tried without “!(bp_is_active( ‘friends’ )” but only friends is displayed.
    someone have an idea?
    I really appreciate any help you can provide.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ramdom members’ is closed to new replies.
Skip to toolbar