Add the code in the link below to bp-custom.php:
Also see @mercime ‘s replies in the following thread:
@compassseeker BuddyPress pages work automagically with nearly all WordPress themes. I hope you did not install and run the BP Template Pack plugin as it’s no longer needed in BP 1.7 above.
@compassseeker Not recently active