Actually this should not be this complicated. In the buddypress options you can choose a page which represents the directory of your web project.
It is then only about the settings of the chosen page. Use the usual WordPress options to set the hierarchy, which parent sites the mentioned page should have.