Re: Hide/Disable private messaging unless users are friends
is_site_admin() is the function but will probably be deprecated soon when WP 3.0 comes out.
Try this out:
<?php if ( is_user_logged_in() && !bp_is_my_profile() && function_exists( 'bp_send_private_message_link' ) && ( my_bp_is_friend() || is_site_admin() ) ) : ?>
re: direct url to private message… you’ll have to modify the /bp-themes/bp-default/members/single/messages/compose.php file in your child theme to do a check for the username and if the logged-in user is friends with that username.
If the username is friends with the logged-in user, show the form to complete the message; if not a friend, don’t show the form.