You could insert the conditional code for all member pages, for instance, in a template like so
<?php if ( bp_is_user() ) { ?>
<!-- your code -->
<?php } ?>
If you’d rather only display it for logged in users and on their own profile, you’d do something like
<?php if ( bp_is_my_profile() && is_user_logged_in() ) { ?>
<!-- your code -->
<?php } ?>
etc..