Note: If you are building a BuddyPress plugin, please make sure you have read how to check if BuddyPress is active. This is very important – the code you need is included in v1.4 of the skeleton component.
If you’re going to develop your own custom BuddyPress component then a great starting point is the “Skeleton Component”. This is a bare-bones component that will provide a solid starting block for you to develop your component from..
The latest version (v1.4) of the Skeleton Component for developers can now be found on the WordPress plugin repository. BuddyPress Skeleton Component.