Helping you Build Your Own Social Network!

Faster, better and easier!

BP Gallery and sidebar widget formatting

(5 posts) (3 voices)
  • Started 1 year ago by danielmccord
  • Latest reply from Brajesh Singh

  1. I've just installed BP Gallery to my site ( http://www.creategreenville.org/ ) and everything seems to be working fine. The features are fantastic and exactly what I've been looking for. The only issue is that my sidebar widgets are being pushed to below the gallery on the page. I'm not a php expert (obviously...) but is there an easy way to fix this that I might be overlooking? Sorry if I'm a bit clueless.

    Thanks!

    Posted 1 year ago #
  2. 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.

    Posted 1 year ago #
  3. Brajesh, you are amazing. Thanks so much for the quick and accurate reply!

    -Daniel

    Posted 1 year ago #
  4. I have a problem in the NEW BP-MAG Theme

    When i open the Gallery Site, ( Member, Group and Global Gallery ) my widgets throw under the Gallery

    What can i do ?

    Posted 1 year ago #
  5. @frank,
    I hope I replied your mail yesterday.

    @all,
    BP Mag has not support for any other component in 1.0 which you have downloaded. I was away, and caught some cold, so could post new updates. We will have the support for all the major components by Sunday evening.

    Posted 1 year ago #

Reply

You must log in to post.