This topic has 12 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #208134
     islamir
    Participant

    In  sweetdate few profile details like Age/ sex/ etc are displayed with the avatar in the membership directory page. Can I have similar functionality in Kleo. I like that functionality, Please let me know how can I achieve that?

    #208161
     Kieran_SQ
    Moderator
    Not marked as solution
    #208196
     islamir
    Participant
    Not marked as solution
    #208276
     islamir
    Participant
    Not marked as solution
    #208279
     Kieran_SQ
    Moderator
    Not marked as solution
    #208291
     islamir
    Participant
    Not marked as solution
    #208342
     Kieran_SQ
    Moderator
    Not marked as solution
    #208351
     islamir
    Participant
    Not marked as solution
    #208371
     Kieran_SQ
    Moderator
    Not marked as solution
    #208375
     islamir
    Participant
    Not marked as solution
    #208448
     Radu
    Moderator
    Hi, Check this one
    function sqr7_extra_fields_members_directory() {
    
        $location = bp_get_member_profile_data('field=Location');
        $specialization = bp_get_member_profile_data('field=Specialization');
        $birthdayfield = bp_get_member_profile_data('field=Birthday');
    
        if ($birthdayfield) {
            if(!empty($birthdayfield)) {
                $diff = time() - strtotime($birthdayfield);
                $age_to_age = floor($diff / (365 * 60 * 60 * 24));
    //            return $age_to_age;
            }
        }
    
        if ($specialization || $location) {
            echo '
    '. 'Location : ' . $location . '
    '; echo '
    '. 'Specialization : ' . $specialization . '
    '; echo '
    '. 'Ages : ' . $age_to_age . '
    '; } } add_action('bp_directory_members_item', 'sqr7_extra_fields_members_directory');
    if trouble with code above copy it from here : https://pastebin.com/raw/Reng9F8r Cheers R
    #208471
     islamir
    Participant
    Not marked as solution
    #208580
     Radu
    Moderator
    Not marked as solution
Viewing 13 posts - 1 through 13 (of 13 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?