Support » Theme: x2 » Integrate new Buddypress hook in edit.php / register.php

  • Hi,

    I like your theme very much! Great work!!

    I’m using “Buddypress Xprofile Custom Fields Type” and most of the flieds donĀ“t show up in the profile edit page. This plugin uses a new hook from buddypress 1.7 within the edit / register page. I included it myself, but could you integrate it in your source?

    Kind regards,

    The author writes in his support forum (

    First, thanks for reporting this. I download Custom Community theme and I see what you say. In your case, the problem is caused by the missing hook. Custom Community Theme doesn’t have the new hook introduced by BP 1.7.

    So, for edit.php, go to custom-community/members/single/profile/edit.php. Just before this code:

    <?php if ( bp_current_user_can( ‘bp_xprofile_change_field_visibility’ ) ) : ?>

    Write this:

    <?php do_action( ‘bp_custom_profile_edit_fields_pre_visibility’ ); ?>

    The fields should appear. For registration page, do the same thing, before:

    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>

    Write this:

    <?php do_action( ‘bp_custom_profile_edit_fields_pre_visibility’ ); ?>

    Try it and tell me if it solves your problem.

  • The topic ‘Integrate new Buddypress hook in edit.php / register.php’ is closed to new replies.