<?php if ( is_active_sidebar( 'buddypress' ) ) : ?>
	<?php dynamic_sidebar('buddypress'); ?>
<?php endif; ?>