Skip to:
Content

BuddyPress.org

Ticket #6447: members.php

File members.php, 1.8 KB (added by navyat, 11 years ago)

Members file

Line 
1<?php if ( bp_group_has_members( 'exclude_admins_mods=0' ) ) : ?>
2
3 <?php do_action( 'bp_before_group_members_content' ) ?>
4
5 <div class="pagination no-ajax">
6
7 <div id="member-count" class="pag-count">
8 <?php bp_group_member_pagination_count() ?>
9 </div>
10
11 <div id="member-pagination" class="pagination-links">
12 <?php bp_group_member_pagination() ?>
13 </div>
14
15 </div>
16
17 <?php do_action( 'bp_before_group_members_list' ) ?>
18
19 <ul id="member-list" class="item-list">
20 <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
21
22 <li style="clear:both;">
23 <a href="<?php bp_group_member_domain() ?>">
24 <?php bp_group_member_avatar_thumb() ?>
25 </a>
26 <span class="user_name"><?php bp_group_member_link() ?></span>
27 <span class="activity"><?php bp_group_member_joined_since() ?></span>
28
29 <?php do_action( 'bp_group_members_list_item' ) ?>
30
31 <?php if ( function_exists( 'friends_install' ) ) : ?>
32
33 <div class="action">
34 <?php bp_add_friend_button( bp_get_group_member_id(), bp_get_group_member_is_friend() ) ?>
35
36 <?php do_action( 'bp_group_members_list_item_action' ) ?>
37 </div><div><?php
38 $user_id = get_current_user_id();
39 if( $user_id == 1)
40 { global $wpdb;
41 echo "Handicap Index:";
42 $handd = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM `wp_handicap_user` WHERE `user_id` = ".bp_get_group_member_id() ) );
43 if($handd->handicap != '')
44 echo " ".$handd->handicap;
45 else
46 echo " - ";
47 }
48 ?></div>
49
50 <?php endif; ?>
51 </li>
52
53 <?php endwhile; ?>
54
55 </ul>
56
57 <?php do_action( 'bp_after_group_members_content' ) ?>
58
59<?php else: ?>
60
61 <div id="message" class="info">
62 <p><?php _e( 'This group has no members.', 'buddypress' ); ?></p>
63 </div>
64
65<?php endif; ?>