WordPress.org

Ready to get started?Download WordPress

Forums

Buddypress Xprofile Custom Fields Type
[resolved] Birthdate not showing (27 posts)

  1. number55
    Member
    Posted 1 year ago #

    Saludos/buenas,
    Wonderful plugin, by the way. My only problem that I am having is the birthdate not showing up at all. I am using buddypress with the theme, "buddy" in Chrome. I can select the "Birthdate" option on the backend but when I go to edit my birthday as a user, the fields are not visible.
    Am I doing something wrong?
    Screenshot of what Im looking at: http://postimg.org/image/7npzhseu7/

    http://wordpress.org/extend/plugins/buddypress-xprofile-custom-fields-type/

  2. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    In the faq of this plugin, there is an answer for this question. Can you check this and see if it works for you?

    Why my fields are not showing?
    If you are using Buddypress 1.7, you need to check if you have the new hook "bp_custom_profile_edit_fields_pre_visibility". Check in your edit.php (edit profile form) and register page if this line of code: . If you don't see it, you must add it just before the code of visibility settings.

  3. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    The faq was not complete.

    Why my fields are not showing ?
    If you are using Buddypress 1.7, you need to check if you have the new hook "bp_custom_profile_edit_fields_pre_visibility". Check in your edit.php (edit profile form) and register page if this line of code: <?php do_action ( 'bp_custom_profile_edit_fields_pre_visibility' ); ?>. If you don't see it, you must add it just before the code of visibility settings.

  4. number55
    Member
    Posted 1 year ago #

    Yeah, it was in the edit.php page. Trying to find the register page...

    http://postimg.org/image/7mdivn3yf/

    [No bumping, thank you.]

  5. unimatrix
    Member
    Posted 1 year ago #

    I'm having the same problem, but I've checked the register.php and edit.php, both files have the <?php do_action ( 'bp_custom_profile_edit_fields_pre_visibility' ); ?> line of code, but URL and Age types are not working for me.

  6. number55
    Member
    Posted 1 year ago #

    Still not working for me. I appreciate the time.

  7. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry for the delay.

    I really don't know why this happens. Can you try to turn on debug mode and see if any error, warning or something appears.

    This function "bxcft_edit_render_new_xprofile_field" is responsible of showing the fields of my plugin. If you know a little of php you can put code to see if this function is working or not.

  8. R J
    Member
    Posted 1 year ago #

    All work fine in v.1.4.9.3 , but not working for me in 1.5.6.3

  9. R J
    Member
    Posted 1 year ago #

    ... Same problem with e-mail field

  10. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    R J, have you checked if you have the new hook in your edit.php?

  11. R J
    Member
    Posted 1 year ago #

    Yes, I added hooks to the files. This doesn't help.

  12. crypt0rchid
    Member
    Posted 1 year ago #

    I've got the same problem. I've tried to find the visibility settings and can't anywhere. I even used number55's screenshot to help try and locate it (http://postimg.org/image/7mdivn3yf/) but none of the code there is in my register.php page, I also can't find the edit.php page...

    I'm using BP 1.7 with WP 3.5.1 and Custom Community theme.

    Before I posted this I just had an idea and changed over to Buddypress Default theme and the fields appear! I've also just tried Montezuma, Mystique and Twenty Twelve and they all work. So its something to do with just Custom Community theme. http://wordpress.org/themes/custom-community

  13. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  14. crypt0rchid
    Member
    Posted 1 year ago #

    Yep that sorts it thanks!

  15. number55
    Member
    Posted 1 year ago #

    Did what you told me with the debug and still no joy. Nothing came up regarding bxcft_edit_render_new_xprofile_field. I am using Buddy: Multi-purpose WordPress & BuddyPress Theme

  16. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    crypt0rchid, Great!

    number55, I'm sorry but it's a premium theme and I can't buy all themes to try them. I don't know why fields are not showing, the most likely cause is the missing hook, the hook is the key, but if you say the hook is there, I really don't know what is happening...

  17. sielwolf
    Member
    Posted 1 year ago #

    Thanx a lot for this plugins and for your efforts ! Really helpfull.
    But same probleme here, website and birthdate don't work BP 1.7.1 wp 3.5.1
    (frisco theme)

  18. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    Well, I'm sorry in your case too. I downloaded frisco theme and all works as expected. If you have the hook in edit.php, you can try to deactivate other plugins to see if they're causing this error.

  19. sielwolf
    Member
    Posted 1 year ago #

    Thank you very much atallos for your quick response.
    In fact I have not changed the file edit.php. It seems that I had no problem because some users on the fields filled in correctly and I did not care for was that. I think it must come from an update (I do not know which update it is exactly)
    I put an old Xprofifle cft (1.5.1) and no worries (although I no longer have birthdate field)

  20. Erwan
    Member
    Posted 1 year ago #

    Same issue here (for the birthdate; email etc. are OK), using Pagelines (framework : 2.4.3) + BuddyPress Template Pack + child theme (like another user in a related topic in this plugin support forum.

    In my child theme members \ single \ profile \ edit.php, I already do have the hook <?php do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); ?>, changed his location following @SunDoWneR667 indications (i.e. line right after <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>): no effect.

    Where exactly must the hook be placed in the file, if it's really the problem? Could someone maybe post the whole correct code?

  21. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    @siewolf: If you are using my plugin with a version before 1.5.5, I was using an old hook of buddypress "bp_custom_profile_edit_fields".

    Since buddypress 1.7, there is a new hook introduced by buddypress called "bp_custom_profile_edit_fields_pre_visibility". When you use a custom theme, and you update buddypress to 1.7, there is a chance your theme is not updated with the new hook, so the fields of my plugin cannot appear.

    I can't imagine another reason for this error.

  22. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    @Erwan:

    Can you try to use the buddypress default theme and see if it works? If you look at the edit.php of buddypress default theme you can see where the hook needs to be.

  23. sielwolf
    Member
    Posted 1 year ago #

    @atallos thanx for your reply.
    I think you're right. Frisco is designed for bp 1.5

    That make sens.

  24. Erwan
    Member
    Posted 1 year ago #

    @attallos:

    Actually, I ran again from scratch the BP Template Pack process with my Pagelines theme, and the birthday field shows all right now: no real idea why though ;-) ! Unfortunately, the date picker appears as a plain text field.

  25. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    Datepicker field is an html5 field, maybe you are using a browser that don't support html5 fields.

  26. Erwan
    Member
    Posted 1 year ago #

    @atallos:

    Apparently another Firefox (21.0 / Windows 8) bug... : works on Chrome!

    Thanks for your responsiveness !

  27. donmik
    Member
    Plugin Author

    Posted 1 year ago #

    Great! So I think I can mark this topic as solved finally! xD

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic