Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Buddypress not working on my theme.


  • Zion Oyemade
    Participant

    @bilsmore

    I really need someone to help. I installed Buddypress but the pages are not working. Al I see is blank. When I activated the Twenty -twelve theme it worked. That explains that the problem is from the theme. Now how do I make the theme compatible with Buddypress.
    The links is fruitbearerschapel.org/community

Viewing 7 replies - 1 through 7 (of 7 total)
  • Well your theme is running in BP theme compatibility mode as your loading the legacy stylesheet. Blank pages might mean your themes page.php which BP uses isn’t written in a way that BP can use, try copying page.php from twentytwelve to your theme and renaming it buddypress.php and see if that works to display BP screens, it won’t be the solution but might point to the issue and from there you might be able to further customize that copy with parts your theme may need.


    Zion Oyemade
    Participant

    @bilsmore

    Hi Hugo,
    I did tried using the page.php of the twenty-twelve but that wasn’t working.
    So I copied the contents of the index.php in Buddypress default theme and replaced it with contents in the new buddypress.php and got this error. Fatal error: Call to undefined function bp_dtheme_content_nav() in /home/content/05/10950405/html/wp-content/themes/belief-child/buddypress.php on line 14
    So I deleted the code on line 14 which is <?php bp_dtheme_content_nav( 'nav-above' ); ?>
    Now somehow, it seems to work but the whole page is somewhat distorted.
    I guess if I can get assisance on configuring the buddypress.php. It should work.
    I’ll be expecting your kind advise.
    The link as it is still there. You may take a look to see how it is. fruitbearerschapel.org/community

    Yep you can’t really copy bp-default theme index.php to a theme compat file. Your buddypress.php needs to be page.php complete with the WP loop (perhaps copying 2012 not a good choice as it calls a separate file for the WP loop) With a buddypress.php file complete with WP loop you’ll then need to replicate in it your themes essential parts that grab the site header and footer as seen in your themes page.php and any html markup that your theme uses.

    This may be something you need to approach the theme author about, explain you’re trying to use BuddyPress but that you need a page.php with a structure that both supports the theme and uses a standard WP loop, or use pastebin to copy the contents of your themes page.php to and someone may be able to suggest how to modify.

    But support for third party themes is going to be somewhat limited as it’s not the primary purpose of the forum.


    Zion Oyemade
    Participant

    @bilsmore

    Dear Hugo,
    Thank you so much for your assisitance. I have not gotten a reply from the theme’s author. It really fustrating. I really will appreciate anyone’s help in this regard. below is my page.php content.

    <?php
    get_header(); 
    
        $no_feat_class = '';
        if( !options::logic( 'blog_post' , 'enb_featured' ) || !has_post_thumbnail( $post -> ID ) ){
            $no_feat_class = ' no_feat ';
        }
    
        $post_id = $post -> ID;
                        
          
        /*---------------------*/
        $post_format = get_post_format( $post -> ID );
        if(!strlen($post_format)){ $post_format = 'standard';}
    ?>
    
    <section id="main">
    
        <div class="main-container">  
            <div class="row">
                <div class="twelve columns main-container-wrapper">      
                    <?php
                        while( have_posts () ){ 
                            the_post();
                            $meta = meta::get_meta( $post -> ID, 'settings' );
                            $meta_enb = options::logic( 'blog_post' , 'meta' );             
                        } /*EOF while( have_posts () ) */
                    ?>
                    <?php
                        $resizer = new LBPageResizer('page');
                        $resizer -> render_frontend();
                    ?>
                </div>
            </div> 
        </div>
    </section>    
     
    <?php get_footer(); ?>
    

    Afraid this section is not really standard WP:

    $meta = meta::get_meta( $post -> ID, 'settings' );
     $meta_enb = options::logic( 'blog_post' , 'meta' );

    This is a repeat of the earlier suggestion just in case it wasn’t followed quite fully?

    To test things try copying that file, rename it buddypress.php, locate in your theme root

    remove those two lines above and replace with:
    <?php get_template_part( 'content', 'page' ); ?>

    Then from the twentytwelve theme copy content-page.php to your theme root and see if that renders.

    More than that it’s going to be hard to help with.


    Zion Oyemade
    Participant

    @bilsmore

    Dear Hugo,
    You have been a blessing. I can never thank you enough. I followed you steps and with little adjustments. The members page is working.
    This is how he new buddypress.php page looks like now.

    <?php
    get_header(); 
    
        $no_feat_class = '';
        if( !options::logic( 'blog_post' , 'enb_featured' ) || !has_post_thumbnail( $post -> ID ) ){
            $no_feat_class = ' no_feat ';
        }
    
        $post_id = $post -> ID;
                        
          
        /*---------------------*/
        $post_format = get_post_format( $post -> ID );
        if(!strlen($post_format)){ $post_format = 'standard';}
    ?>
    
    <section id="main">
    
        <div class="main-container">  
            <div class="row">
                <div class="twelve columns main-container-wrapper">      
                    <?php
                        while( have_posts () ){ 
                            the_post();
                          
                                get_template_part( 'content', 'page' ); 
                                  
                        } /*EOF while( have_posts () ) */
                    ?>
                    <?php
                        $resizer = new LBPageResizer('page');
                        $resizer -> render_frontend();
                    ?>
                </div>
            </div> 
        </div>
    </section>    
     
    <?php get_footer(); ?>

    Once again Hugo. thanks for the assistance God bless you.

    Glad it worked.
    One thing to bear in mind, if these changes are in the parent theme you may lose the changes if the theme gets updated so it might be wise to try creating a simple child theme with basic required files plus the two new BP ones to ensure your changes are preserved.

    Marking as resolved.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Buddypress not working on my theme.’ is closed to new replies.
Skip to toolbar