function user_list_html($html, $selected)
 {
     if (bp_group_has_members(array('exclude_admins_mods' => false, 'per_page' => false, 'max' => false))) {
         global $members_template;
         usort($members_template->members, array(&$this, 'sort_by_display_name_cb'));
         $html = '<select name="cp-task-assign" id="cp-task-assign">';
         while (bp_group_members()) {
             bp_group_the_member();
             $html .= '<option value="' . bp_get_group_member_id() . '" ' . selected(bp_get_group_member_id(), $selected, false) . '>' . bp_get_group_member_name() . '</option>';
         }
         $html .= '</select>';
     }
     return $html;
 }
function bp_group_member_name()
{
    echo bp_get_group_member_name();
}
Exemple #3
0
				<?php 
        while (bp_group_members()) {
            bp_group_the_member();
            ?>

					<li class="<?php 
            bp_group_member_css_class();
            ?>
">
						<div class="item-avatar">
                                                <a href="<?php 
            bp_group_member_url();
            ?>
">
                                                    <?php 
            echo bp_core_fetch_avatar(array('item_id' => bp_get_group_member_id(), 'type' => 'thumb', 'width' => 50, 'height' => 50, 'alt' => sprintf(__('Profile picture of %s', 'bp-magic'), bp_get_group_member_name())));
            ?>
                                                </a>  
                                            </div>
                                             <div class="item">
                                                <div class="item-title">
                                                        <?php 
            bp_group_member_link();
            ?>
                                                </div>
                                          </div>
                                           <div class="action">

							<?php 
            if (bp_get_group_member_is_banned()) {
                _e('(banned)', 'bp-magic');