This topic has 10 replies, 3 voices, and was last updated 11 years by Douweboschma.

  • Author
  • #5699
     Douweboschma
    Participant

    Hi, I am only getting the age field to show up in the cards. nothing else from base comes up.

    I’ve tried things with the code snippet you provided for the “About me” section but nothing else shows up. Am I missing something?

    Greetings,

    D

    #5753
     SQadmin
    Keymaster

    Hi, If you are talking about the fields that show in the members result page, here is the topic: https://archived.seventhqueen.com/forums/topic/member-directory-page-about-me-text-does-not-display

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #5807
     Douweboschma
    Participant

    Yes I am and I tried that too but nothing else but the profile name and age show up.

    #5922
     SQadmin
    Keymaster

    We have a caching done for the fields. Try adding this in your sweetdate-child/functions.php and reload the page. After that you can remove the line.

    COPY CODE
    
    delete_transient( 'kleo_bp_meta_fields' );
    

    If the profile fields still don’t show then show us your added code because I am sure you haven’t added it correctly

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #5983
     Douweboschma
    Participant

    Got it…. Or at least I am getting there. There was a difference between the original base fields and the bp_members_loop_meta in the bp_members_loop_meta in functions.php

    So I changed it like this:

    $kleo_config[‘bp_members_loop_meta’] = array(
    ‘I am a:’,
    ‘Birth date:’,
    ‘City or nearest city:’,

    );

    But still I have a problem! The age is showing the birth date with: 00:00:00 behind it.

    I use ” Check this if you want to show age instead of birthdate: ” checked.

    So I am saved if you can tell me how to make the birthdate into an age there too. I’ve got it right everywhere else.

    #6071
     SQadmin
    Keymaster

    Great. You are probably using custom xprofile plugin for the date.
    If you want to make use of the default date field type, set age field in Sweetdate – Buddypress – Age field. Your field type must be a Date selector

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #6151
     Douweboschma
    Participant

    Taht’s a double bind because now all the profiles show their birth day again instead of age. I really want to have the age there! And the age everywhere…

    #6152
     adam
    Participant

    @Douweboschma check this out:
    http://wordpress.org/support/topic/show-birthdate-in-registration-page-and-age-in-profile-page

    i assume you’re using that plugin. you can use the code they provide in functions.php. just make sure your field name is Date of Birth on the registration, it will automatically convert it to Age on the profile.

    #6156
     Douweboschma
    Participant

    Hi,

    Thanks. That sounded very hopeful but the code blanked my site out.

    IS there anything wrong with it?:

    function my_bp_get_the_profile_field_name($name) {
    if ($name == ‘Date of Birth’ && strpos($_SERVER[‘REQUEST_URI’], ‘/register’) === false) {
    return ‘Age’;
    }
    return $name;
    }
    add_filter ( ‘bp_get_the_profile_field_name’, ‘my_bp_get_the_profile_field_name’, 15, 1);

    #6217
     SQadmin
    Keymaster

    Add it to sweetdate-child/functions.php … You probably added it wrong… it has to be before the ending “?>”

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #6254
     Douweboschma
    Participant

    Errrrr… Now I pasted it and it was great at once… 😉 EHM Sorry for disturbing for that..

Viewing 11 posts - 1 through 11 (of 11 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?