Helping you Build Your Own Social Network!

Faster, better and easier!

Missing Left Side Navigation

(5 posts) (2 voices)

  1. Hi,
    I am using 2 of your plugins, BP Gallery & Global Forums with Custom Community Theme. I have the theme set up to have a right and a left side navigation but the left side navigation disappears on the pages featuring your plugin. Is there something that I can do to remedy this?

    http://www.pressoblivion.com

    Posted 6 months ago #
  2. Hi EJ,
    You will need to update the layout of a couple of pages.

    For gallery,the following page will need to be changed.

    1. gallery/members/index.php
    2. gallery/groups/index.php
    3.gallery/directory.php

    These three templates are compatible with bp-default theme and other themes needs to adapt.

    One easy way to do it is

    for 1,2 look for the plugins.php in members/single and groups/single.php and you can tailor the corresponding index.php based on these 2.

    For gallery, open any directory(say groups/index.php) and make sure that gallery/index.php has the same layout.

    The way I prefer it, I will copy the plugins.php from the members/single and put it in gallery/members folder. Then I will copy the block which looks like this

    <?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 if(bp_is_my_group_galleries ())
                                 locate_template( array( 'gallery/members/group-galleries.php' ), true ) ;
                            else
    			 locate_template( array( 'gallery/members/home.php' ), true ) ;
    
    			?>

    to my local copy of plugin.php. Then will delete index.php and rename plugins.php to index.php. That should fix it for members gallery layout.

    You can follow the same procedure for other 2 pages too.

    Posted 6 months ago #
  3. Thanks for your help Barjesh I appreciate your taking the time to explain this to me but I'm not a programmer and I don't understand your instructions here.
    I can't find the plugins.php file anywhere and if I could find it, I don't know how to taylor a PHP file.

    Thanks again for your help.

    E.J.

    Posted 6 months ago #
  4. Hi EJ,
    I am checking that theme today. I will put the gallery template for it by Monday. Hope that will help.

    Posted 6 months ago #
  5. Thanks again for the help!
    EJ

    Posted 5 months ago #

Reply

You must log in to post.