Hi Daniel,
Thanks for the post.
Just checked your site. It has a slightly different structure than bp-default theme, so you will need to modify gallery/members/index.php and gallery/groups/index.php
here is the simple step to do it.
1. Rename gallery/members/index.php to index_bkp.php
2.Copy home.php from your themes members/single/, and put it in gallery/members/ , make sure to rename it to index.php(otherwise it will overwrite the home.php of our gallery)
3. Now in the new index.php, delete the section which says
<div id="item-body">
<?php do_action( 'bp_before_member_body' ) ?>
<?php if ( bp_is_user_activity() || !bp_current_component() ) : ?>
<?php locate_template( array( 'members/single/activity.php' ), true ) ?>
<?php elseif ( bp_is_user_blogs() ) : ?>
<?php locate_template( array( 'members/single/blogs.php' ), true ) ?>
<?php elseif ( bp_is_user_friends() ) : ?>
<?php locate_template( array( 'members/single/friends.php' ), true ) ?>
<?php elseif ( bp_is_user_groups() ) : ?>
<?php locate_template( array( 'members/single/groups.php' ), true ) ?>
<?php elseif ( bp_is_user_messages() ) : ?>
<?php locate_template( array( 'members/single/messages.php' ), true ) ?>
<?php elseif ( bp_is_user_profile() ) : ?>
<?php locate_template( array( 'members/single/profile.php' ), true ) ?>
<?php else : ?>
<?php
/* If nothing sticks, just load a member front template if one exists. */
locate_template( array( 'members/single/front.php' ), true );
?>
<?php endif; ?>
<?php do_action( 'bp_after_member_body' ) ?>
</div><!-- #item-body -->
and replace it with
<div id="item-body">
<?php
if(bp_current_action()=="create")
locate_template( array( 'gallery/members/create.php' ), true ) ;
else if(bp_current_action()=="manage")
locate_template( array( 'gallery/members/edit.php' ), true ) ;
else if(bp_current_action()=="upload")
locate_template( array( 'gallery/single/media/upload-form.php' ), true ) ;
else if(bp_is_single_media())
locate_template( array( 'gallery/members/single-media.php' ), true ) ;
else if(bp_is_single_gallery())
locate_template( array( 'gallery/members/single.php' ), true ) ;
else
locate_template( array( 'gallery/members/home.php' ), true ) ;
?>
</div><!-- #item-body -->
That will fix the layout. this same process applies for groups too.