BuddyDev

Search

[Resolved] BuddyPress Xprofile Custom Field Types – BIrthdate Selector Age label

Tagged: 

  • Participant
    Level: Enlightened
    Posts: 41
    Linklusion on #25640

    Hi Brajesh

    In “BIrthdate Selector” field type, there is an option to display Age instead of Date of BIrth.
    When this option is activated, the label of the field is still Date of BIrth.
    Label needs to be “Date of BIrth”for field on registration form or when editing the field because we select a date but label on profile should be “Age” to match the display age.
    The idea would be to have an extra field “Label:” where we type what we want as label for age when optoin of displaying age is activated.

    Is it something you do ?

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #25641

    Hi Johan,
    Thank you fr the question.

    I remember trying to solve it earlier. That was some issue related to context of the label. I had issue with detecting the context of label (edit/display) except by checking global conditions. To be reliable, I wanted it to be localized to the loop.

    I will check again. It is very easy to add extra label, the problem is fielding label based on context. It might have changed recently.

    I will post back again today with the details.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 41
    Linklusion on #25643

    Hi Brajesh

    There is a plugin SuitePlugins – Advanced XProfile Fields for BuddyPress that https://wordpress.org/plugins/advanced-xprofile-fields-for-buddypress/
    which give option to set different labels according to registration page, viewing profile, edit profile etc…
    https://ps.w.org/advanced-xprofile-fields-for-buddypress/assets/screenshot-1.png?rev=1229325

    That could do the job but this plugin does work any more on my website since upgrade to BP 5.0.0
    I have notived that when I wanted to use it on Birthdate selector ; when saving the value of fields does not save, field stays blank after saving.

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #25644

    Hi Johan,
    Thank you.

    The problem is it uses screen(views) and not the context of the fetched label.

    It works properly for normal cases but for a plugin like BP Ajax registration, It is unable to decipher the context.

    Like mentioned earlier, It is very easy to filter on labels and I am adding the support in today’s release.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #25653

    Hi Johan,
    Please upgrade to 1.1.0

    Now, you can specify the label for age in the field edit/add screen and that will be used.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 41
    Linklusion on #25655

    Hi Brajesh,

    I upgraded to 1.1.0, it doesn’t work.
    Screenshot settings https://prnt.sc/pemxbq
    Screnshot https://prnt.sc/pemww4

    Here’s translation of BuddyPress Xprofile Custom Field Types in french https://drive.google.com/open?id=11FRFQGaZwys3SrrK02nXipLa_q0n3K5p

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #25658

    Hi Johan,
    Most probably that content is loaded via ajax? Currently, for editing I am checking if it is register page or profile page or admin.

    So, ajax request will most probably now show the updated label. Can you please visit user’s profile(view) and confirm that is is updating label or not?

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 41
    Linklusion on #25659

    Hi Brajesh

    No label for age is not showing
    I have tried on different browser (Chrome, Safari, Firefox), I also emptied my cache in case.

    Can this be related to theme template ?
    I give you link to member directory if you want to have a look

  • Participant
    Level: Enlightened
    Posts: 41
    Linklusion on #25660
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #25661

    Hi Johan,
    Thank you. I checked and I can see that it is not working with your theme. Most probably the way theme loads profile data.

    If I can take a look at the template, I can find the conflict and put a solution.

    Regards
    Brajesh

The topic ‘ [Resolved] BuddyPress Xprofile Custom Field Types – BIrthdate Selector Age label’ is closed to new replies.

This topic is: resolved