WordPress.org

Support

Support » Plugins and Hacks » Buddypress Xprofile Custom Fields Type » [Resolved] [Plugin: Buddypress Xprofile Custom Fields Type] Birthday field should display as age.

[Resolved] [Plugin: Buddypress Xprofile Custom Fields Type] Birthday field should display as age.

Viewing 15 replies - 1 through 15 (of 25 total)
  • Plugin Author Miguel López

    @atallos

    Great idea! In the version 1.3, we just added this. We put a checkbox that if it’s checked will show age instead of birthdate.

    Try it and let us know what you think!

    Thanks!

    Awesome, thanks for the change! Not if you can fix this next item, but this plugin (or maybe it’s the other way around) doesn’t play nice with the profile search plugin. The plugin has a place where you can select your profile option for birthdate but your birthdate doesn’t show as one that can me selected.

    http://buddypress.org/community/groups/bp-profile-search/

    Plugin Author Miguel López

    @atallos

    We just release version 1.4. The plugin works now with bp profile search plugin. I think now you can select birthdate and the searchform will work.

    Try the new version and we’re in touch.

    I’m still seeing ‘There is no date field in your profile’. Thanks for the great support!

    Plugin Author Miguel López

    @atallos

    Ummm, check the versions maybe.

    In our case, we are using latest versions in all of plugins.

    WordPress 3.4.2
    Buddypress 1.6.1
    BP Profile Search 3.1

    Maybe another plugin is interfering. In this update the only thing we made is if BP Profile Search plugin is installed, we add another filter in bp_the_profile_field_type changing the type returned in birthdate’s case, returning “datebox”.

    buddhatunes

    @buddhatunes

    I am having the same birthday issue with “There is no date field in your profile.”

    Also, where do I make certain profile fields not public? Or at least a group field not public?

    buddhatunes

    @buddhatunes

    Xprofile 1.4.1
    WordPress 3.4.2
    Buddypress 1.6.1
    BP Profile Search 3.1

    Plugin Author Miguel López

    @atallos

    Hi,

    If you want to make profile fields not public you can use the field Default Visibility and choose Logged in Users or My friends. It’s buddypress functionality.

    I cannot see this issue with birthdate field. I try different settings but it always works. Maybe another plugin is interfering with this.

    buddhatunes

    @buddhatunes

    Ok, got the default visibility working.

    The birthdate issue is still confusing. I have a Birth Date field in my profile, and it shows my age correctly in my profile field. Everything else works, I am doubtful there is a plugin interfering.

    Is the Profile field supposed to be ‘Birthdate’ or ‘Birth Date’?

    Above, you reference ‘datebox’ but I do not see that option anywhere. I only see ‘Birthdate’, ‘Date Selector’ and ‘Datepicker’

    Plugin Author Miguel López

    @atallos

    What I was saying above is when we adapt the plugin to bp profile search, we only make one change.

    Bp Profile Search looks for a datebox field type to use as a date field. Our birthdate field returns “birthdate” and not “datebox” when asking for the type of the field. The only thing we change is return “datebox” as the type of the field and then BP Profile Search could use our birthdate field.

    So, if you have Birthdate selected in profile field type, it should work. With the same versions of plugins, it works in my wordpress.

    If you can, you could show us what type of field is returning. To do this, you need to modify bps-functions.php, file of bp-profile-search. Put this code in bold, after line 21:

    while (bp_profile_fields ()) :
        bp_the_profile_field();
        <strong>var_dump(bp_get_the_profile_field_type ());</strong>
        switch (bp_get_the_profile_field_type ())

    Then if you reload the profile search page in administration, you can ser the type of each field above. Tell us what type of field it returns. It must return datebox for your birthdate field, if not, there is another plugin or filter interfering with xprofile plugin.

    Plugin Author Miguel López

    @atallos

    while (bp_profile_fields ()) :
        bp_the_profile_field();
        var_dump(bp_get_the_profile_field_type ());
        switch (bp_get_the_profile_field_type ())

    Avoid the , put only this line:

    var_dump(bp_get_the_profile_field_type ());

    buddhatunes

    @buddhatunes

    Avoid the what? Add or not to below?

    var_dump(bp_get_the_profile_field_type ());

    buddhatunes

    @buddhatunes

    After looking at the missing ‘strong’ from my reply above, my guess is you are saying to not place the ‘strong’ before and after the code below?

    var_dump(bp_get_the_profile_field_type ());

    And yes, just got the parse error…

    buddhatunes

    @buddhatunes

    I get this in front of Selected Profile Fields for ‘Birth Date’ and ‘Age Range’

    string(9) “birthdate”

    buddhatunes

    @buddhatunes

    For Age Range Search and Birth Date Field, I still get “There is no date field in your profile”

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘[Resolved] [Plugin: Buddypress Xprofile Custom Fields Type] Birthday field should display as age.’ is closed to new replies.
Skip to toolbar