Skip to:
Content
Pages
Categories
Search
Top
Bottom

Upgrading 2.0.2 to 2.1 breaks registration template


  • Judder
    Participant

    @judder

    We might be doing something wrong, or an old dependency that was dropped from 2.0.2 to 2.1, but when we upgrade BuddyPress to the latest 2.1 from 2.0.2 our registration template is ignored and the bp-default is used instead.

    Our template

    /wp-content/themes/our-theme/registration/register.php

    Buddy Press template used

    /wp-content/plugins/buddypress/bp-themes/bp-default/registration/register.php

    Switching back to 2.0.2 fixes the problem.

    We’ve tried copying the templates to

    /wp-content/themes/our-theme/community/registration/register.php

    and

    /wp-content/themes/our-theme/buddypress/registration/register.php

    but still ignored.

    Any thoughts / pointers much appreciated

    Wordpress: 4.0
    Site: In Development

Viewing 2 replies - 1 through 2 (of 2 total)
  • Initial thoughts is if you are still in development why are you choosing to use the bp-default theme approach rather than using the newer(since 1.7) theme compat approach and to which you allude in trying /our-theme/buddypress/ /our-theme/community/

    If that later approach were to work for you you need to understand that registration does not have it’s own folder/dir but the reg template lives in /members/ have a look at /bp-legacy/buddypress/ to see the directory structure which must be mirrored in the theme also templates under theme compat are not full page templates i.e complete with header and footer calls as they get called and injected into a parent template – generally page.php unless the hierarchy invoked and another named template is use.

    Although this doesn’t address your immediate issue, unless you are wanting the old bp-default visual styling I would suffer the change to theme compat templating now before you go further?


    r-a-y
    Keymaster

    @r-a-y

    As hnla mentioned, if you’re using theme compatibiliy, /wp-content/themes/our-theme/registration/register.php is the wrong file to use for your overrides. This file is for older bp-default themes. BP 2.1 made the change so only bp-default themes can use this older template naming convention.

    If you only want to modify the contents of the registration template part and not the entire page template, you should copy:
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/register.php

    to:
    /wp-content/themes/our-theme/buddypress/members/single/register.php.

    Then, you should compare your older registration mods and copy them to this file.

    If you want to change the entire registration page layout (header, footer, etc), check out the Template Hierarchy codex article for more info:

    Template Hierarchy

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Upgrading 2.0.2 to 2.1 breaks registration template’ is closed to new replies.
Skip to toolbar