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

  • Author
  • #128213
     dlx
    Participant

    Hello!

    I would like to display the age (and some other additional infos) in the members listing like displayed here:
    https://archived.seventhqueen.com/sweetdate/article/add-profile-information-member-name-members-directory

    Unfortunately I can´t find any info how to do this in Kleo.

    Any ideas?

    Best regards,
    Jan

    #128255
     Radu
    Moderator

    Hi,

    We have a video tutorial for this : https://archived.seventhqueen.com/kleo/article/add-extra-profile-fields-show-certain-profile-fields-member-directory

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solution
    #128337
     dlx
    Participant

    Hi Radu,

    thanks for your help!
    Just to note: The first block of code on https://archived.seventhqueen.com/kleo/article/add-extra-profile-fields-show-certain-profile-fields-member-directory is not being displayed in full. So it´s a bit tricky to copy the content there. An update of the page would surely help.

    Thanks a lot!
    Jan

    #128397
     Radu
    Moderator

    Hi,

    Please re-visit the page i’ve updated the snippet it should be ok now

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solution
    #159922
     joy
    Participant

    How do you display the added fields before the last active timestamp?

    #160256
     Radu
    Moderator

    Hi,

    If you need more than that, you will have to edit the members-loop.php file.

    In the marked line there you should paste the content the before last active

    In your case instead, to use that function (if you have added to funciton.php file comment it or delete it) you will have to paste the next code in the marked line.

    COPY CODE
    
     $location = bp_get_member_profile_data('field=Location');
        $specialization = bp_get_member_profile_data('field=Specialization');
     
        if ($specialization || $location) {
            echo '<div class="mdetcenter">'. 'Location : ' . $location . '</div>';
            echo '<div class="mdetcenter">'. 'Specialization : ' . $specialization . '</div>';
        }
    

    To have the changes over update you should copy this file : /wp-content/themes/kleo/buddypress/members/members-loop.php to child theme in same path (/wp-content/themes/kleo-child/buddypress/members/)

    That’s all
    Cheers
    R.

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

    Perfect. Thank you!

    #160460
     Radu
    Moderator

    You’re welcome

    Cheers
    R.

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

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?