Viewing 11 replies - 1 through 11 (of 11 total)
  • Same here … all of the xprofile-fields are not visible anymore! =/

    After updating to Version 1.5.5.1

    Already tryed disable/enable the plugin.

    Yea- I have the same problem. Only the description field shows on the page after adding the new fields.

    same here…

    Plugin Author donmik

    (@atallos)

    Are you using a custom theme ?

    In the latest version of Buddypress 1.7, they have added a new hook “bp_custom_profile_edit_fields_pre_visibility” to show fields before the visibility settings. If you are using the new version of buddypress with a custom theme, maybe you need to update the edit.php of your theme and add the hook.

    In oldest versions, the code in bp-themes > bp-default > members > single > profile > edit.php was different and I was using this hook “bp_custom_profile_edit_fields” which was showing the fields after the visibility settings. With the new buddypress I have changed the hook to show the fields before the visibility settings.

    So you must look for the hook “bp_custom_profile_edit_fields_pre_visibility” in your edit.php if it doesn’t exist you need to add before the visibility settings. If you don’t know how to do it just check the default theme of buddypress and copy this:

    <?php do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); ?>

    Tell me if the issue is solved with this code.

    Jep, now it works…
    I added your line
    <?php do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); ?>
    right after
    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    in /mytheme/members/single/profile/edit.php.

    Thx mate, appreciate it!

    Sunny

    Plugin Author donmik

    (@atallos)

    Ok, sorry for the inconvenience ??

    I added the code to the same place as Sunny mentioned in the edit.php file and it did not resolve the issue. I still had the same result.

    Plugin Author donmik

    (@atallos)

    You need to give me more details. What version of buddypress are you using? Maybe you can send me a link to see it for myself.

    I should have mentioned, that I’m using a custom theme along with the buddypress template pack and the latest version of Buddypress (1.7).

    I am developing the site locally. I am also using version 1.7 and am customizing a child theme from parent. I am not using the buddypress template pack bc it isn’t necessary w the parent theme I am using:

    https://themeforest.net/item/salutation-wordpress-buddypress-theme/full_screen_preview/548199

    thanks a lot for the help

    Plugin Author donmik

    (@atallos)

    Well, I’m sorry but I don’t know what can I do. I can only explain how it is working.

    The fields are showing using the hook “bp_custom_profile_edit_fields_pre_visibility”. This hook must be in a while like this:
    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    In the edit.php where the form of edit profile is created it must be something like this:
    <?php do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); ?>

    If this hook does not exist, the fields cannot be shown because my plugin’s function “bxcft_edit_render_new_xprofile_field” is not being called. Maybe you can check this by putting this code in this function at the beginning before “global $field”:

    echo "Entering in bxcft_edit_render_new_xprofile_field";

    If this text appears when you enter to edit profile form, then there is another problem. If it does not appear, the problem is with the hook “bp_custom_profile_edit_fields_pre_visibility”.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Birthday field not visible’ is closed to new replies.