This topic has 15 replies, 2 voices, and was last updated 6 years by Radu.

  • Author
  • #208651
     PcMaxx
    Participant

    I followed the instructions on how to:

    How to add Profile Fields under Member Name at Members Directory

    But it doesnt show the ages on it. I installed the plugin: BuddyPress Xprofile Custom Field Types  Also how to I make the font darker.

    Attachments:
    You must be logged in to view attached files.
    #208727
     Radu
    Moderator

    Just follow this : https://archived.seventhqueen.com/sweetdate/article/add-profile-information-member-name-members-directory and make sure to had the next option checked

    Wp-admin > Theme options -> buddypress

    Cheers
    R

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

    If I do this, then the age doesn’t display correctly for multiple birthdays. I’m using BuddyPress Xprofile Custom Field Types as I mentioned before. Enabling Age in Buddypress doesn’t format the age correctly, but displays the actual birthdate instead.

    #208823
     Radu
    Moderator

    Hi,

    IT seems that our theme not supporting multiple datefields to be converted, so i saw that you are aloready run a plugin that converts that to ages.

    I had leave those options on and beside that to can be able to change the field placeholder on different view like register/profile/editiing profule i had installed this plugin : https://ro.wordpress.org/plugins/advanced-xprofile-fields-for-buddypress/

    That was allowing me to change your placeholders to be named Birthday on register like default field name and on profile to be named Ages.

    Hope all good now, you should not use anymore the option from our theme to convert bday to ages since you do it through this plugins.

    Cheres
    R

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

    It doesnt show the ages here in the Members Directory. This is also an issue.

    Attachments:
    You must be logged in to view attached files.
    #208856
     Radu
    Moderator

    I will look for a solution
    Will let you know
    Cheers
    R

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

    Thanks. Looking forward to it.

    #209174
     Radu
    Moderator

    Hi,

    CAn you please provide FTP ?

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #209177
     PcMaxx
    Participant
    This reply has been set as private.
    #209288
     Radu
    Moderator

    Hi,

    Investigating right now, we will get back to you

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #209300
     Radu
    Moderator

    Fixed, there it’s a issue with the date format on your server not sure exactly what’s the fix for the server i can guess… but that isn’t a solution.

    I had added the next snippet to your child theme and it pulls and convert the field His Birthday.

    COPY CODE
    
    function sqr_fix_show_ages_on_members_directory() {
        $birthdayfield = bp_get_member_profile_data('field=His Birthday');
        //$birthdayfield = bp_get_member_profile_data('field=Her Birthday');
    
        if ($birthdayfield) {
            if(!empty($birthdayfield)) {
                $diff = time() - strtotime($birthdayfield);
                $age_to_age = floor($diff / (365 * 60 * 60 * 24));
                return $age_to_age;
            }
        }
    }
    add_filter('kleo_bp_meta_after_age','sqr_fix_show_ages_on_members_directory');
    
    

    That’s it, you need to keep all time those options on like this

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #209306
     Radu
    Moderator

    Hi

    The problem was resolved from core, so the snippet in child it’s no more needed,i had commented it.

    Cheers
    R

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

    This doesn’t seem to be working on my end. Can you double check this?

    Attachments:
    You must be logged in to view attached files.
    #210283
     Radu
    Moderator

    Hi,

    At that moment was working now not sure what you had changed. If you had changed settings and things there not sure what to advise you what to do.

    MAke sure to have the field type birthdate

    So what i said fixed there was working and checked 25 times since i was using your website live.

    IF you had maken any backup or not leaving the files like how i’ve leaved it may be a cause.

    Cheers

    R

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

    No settings changed. Uploaded the theme update. That’s it. Waiting on a reply from last week asking why it had not changed on my end.

    #210308
     Radu
    Moderator

    VEry wired since i had fixed that live on your website and now you said the same… not ok…

    Replace this file : wp-content/themes/sweetdate/custom_buddypress/bp-functions.php

    with this content : https://pastebin.com/raw/G7SAfzJv

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 16 posts - 1 through 16 (of 16 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?