Skip to:
Content
Pages
Categories
Search
Top
Bottom

Edit Buddypress Registration Page Template

  • Avatar of oliredman
    oliredman
    Participant

    @oliredman

    I’m using Buddypress in combination with the Orange Idea Commander Theme. On the registration page, Buddypress builds the page using the Commander theme’s blog page template. This doesn’t look great, and I’d like to make Buddypress use a different template to build the page, but I can’t figure out how (despite much tinkering and forum-diving).

    I don’t want to edit the blog page template itself, as I want to use it on other pages. I just can’t find the Buddypress file that makes it pull in the blog page template from the Commander theme.

    WP: 3.5.1
    BP: 1.7.2
    site: http://www.oxfordonlineenglish.com
    page: http://www.oxfordonlineenglish.com/register

    Thanks in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Avatar of Hugo
    Hugo
    Moderator

    @hnla

    Please read the codex documentation, there are guides there on the theme compatibility and template hierarchy – first port of call should always be the docs.

    Avatar of oliredman
    oliredman
    Participant

    @oliredman

    Got it – doesn’t look like it’s doable in 1.7xx, as according to the codex BP can only use one template for all BP pages. When I upgrade I’ll have another look. Thanks, Hugo!

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    ?

    You can use a file named buddypress.php this will be used ahead of page.php if found, you can edit that as much as you’d like.

    In BP 1.8 we have extended this to be far more flexible to use component names or actions, etc.

    You perhaps needed to read this page or perhaps you did and just haven’t upgraded?

    http://codex.buddypress.org/developer/theme-development/template-hierarchy/

    Avatar of oliredman
    oliredman
    Participant

    @oliredman

    That’s what I read – but the way my site is built it uses a lot of partially-customised plugins which all need to interact with each other in non-standard ways, so I don’t want to upgrade them without testing them all together first; I’ll stick with 1.7 for the moment. Thanks again.

    Avatar of brimfulof
    Brimfulof
    Participant

    @brimfulof

    @hnla I’ve read the codex and I’m struggling. I wonder if you can help.

    I’m trying to edit the registration page. So I’ve copied the existing one and renamed it index-register.php

    I’ve tried putting in in various places but it doesn’t seem to make any difference. Where should it be?

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    @brimfulof
    Where are ‘various places’?

    In a child theme you would create a new folder called either /community/ or /buddypress/ in that you replicate the structure for folders seen in bp legacy folder in core plugin.

    So for a register template you would need /my-theme/buddypress/members/register.php

    If you create index-register.php you will need to ensure this template is a full one i.e has get_header() / get_footer() and any other structure for a full template so unless really necessary just edit register.php in your child theme.

    Avatar of cpagan2000
    cpagan2000
    Participant

    @cpagan2000

    Here you go

    <?php
    // hacks and mods will go here
    /**
     * Disables BuddyPress' registration process and fallsback to WordPress' one.
     */
    function my_disable_bp_registration() {
      remove_action( 'bp_init',    'bp_core_wpsignup_redirect' );
      remove_action( 'bp_screens', 'bp_core_screen_signup' );
    }
    add_action( 'bp_loaded', 'my_disable_bp_registration' );
    
    add_filter( 'bp_get_signup_page', "firmasite_redirect_bp_signup_page");
        function firmasite_redirect_bp_signup_page($page ){
            return bp_get_root_domain() . '/wp-signup.php'; 
        }
    ?>
Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.