@r-a-y
I don’t have that line in the members-loop.php file. I can find the following there though:
<div class="item-list search-list" id="members-list">
<?php while ( bp_members() ) : bp_the_member(); ?>
<div class="four columns">
<div class="search-item">
<div class="avatar">
<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar('type=full&width=94&height=94&class='); ?></a>
<?php do_action('bp_members_inside_avatar');?>
</div>
<?php do_action('bp_members_meta');?>
<div class="search-body">
<?php do_action( 'bp_directory_members_item' ); ?>
</div>
<div class="bp-member-dir-buttons">
<?php do_action('bp_directory_members_item_last');?>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
In the bp-functions.php file I can then find the following with regards to “item_last”:
add_action('bp_directory_members_item_last','kleo_bp_member_dir_view_button', 10);
if (! function_exists('kleo_bp_member_dir_friend_button')):
/**
* Render add friend button on members directory
*/
function kleo_bp_member_dir_friend_button()
{
add_filter('bp_get_add_friend_button', 'kleo_change_profile_button');
bp_add_friend_button(bp_get_member_user_id());
}
endif;
if ( bp_is_active( 'friends' ) ) {
add_action('bp_directory_members_item_last','kleo_bp_member_dir_friend_button', 11);
}
Do you have any idea what’s going on and what I could do? I actually don’t want the “add friend”-button on that specific page where the members are listed. I just need the “View profile”-button (which I already have) and the follow-button from this plugin.
I appreciate the help.
Regards,