This topic has 10 replies, 2 voices, and was last updated 10 years by SQadmin.

  • Author
  • #7408
     gdecuir
    Participant

    The members directory page is not showing the “about us” information below the name.

    members directory

    When I try what was suggested in the following post. I only changed the field names that I wanted displayed.
    https://archived.seventhqueen.com/forums/topic/member-directory-page-about-me-text-does-not-display

    I get this error message….

    Fatal error: Call to undefined function dd_action() in /home/content/88/11935488/html/wp-content/themes/sweetdate-child/functions.php on line 103

    #7410
     gdecuir
    Participant

    opps…

    Members

    #7455
     SQadmin
    Keymaster

    You probably haven’t copied the whole code. that functions should be add_action() and not dd_action()

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

    I added the checked the code and made sure it copied correctly. Now I get the following error message.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘ kleo_my_member_data’ not found or invalid function name in /home/content/88/11935488/html/wp-includes/plugin.php on line 429

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/88/11935488/html/wp-includes/plugin.php:429) in /home/content/88/11935488/html/wp-includes/pluggable.php on line 899

    #7520
     SQadmin
    Keymaster

    Unfortunately you haven’t added the whole code probably. what did you added?

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

    This is the code I loaded….

    add_action(‘after_setup_theme’,’ kleo_my_member_data’);
    function kleo_my_member_data()
    {
    global $kleo_config;
    //this is the details field, right now it take the “About me” field content
    $kleo_config[‘bp_members_details_field’] = ‘About me’;
    //this display the fields under the name, eq: 36 / Woman / Divorced / Berlin. Modify with the names of the fields you want to appear there
    $kleo_config[‘bp_members_loop_meta’] = array(
    ‘City’,
    ‘State’
    );

    }

    #7528
     SQadmin
    Keymaster

    Hi, Try removing the space from ‘ kleo_my_member_data’

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

    now my site wont load and I get the following error

    Parse error: syntax error, unexpected T_STRING in /home/content/88/11935488/html/wp-content/themes/sweetdate-child/functions.php on line 31

    Line 31 is
    $kleo_config[‘bp_members_details_field’] = ‘About me’;

    #7594
     SQadmin
    Keymaster

    It is just a copy/paste operation and to follow instructions here https://archived.seventhqueen.com/forums/topic/member-directory-page-about-me-text-does-not-display
    I just re-pasted my code and totally works. the code goes to sweetdate-child/functions.php inside the lines. It is basic php knowledge

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

    Hi,
    I got it to work. Not sure what I did but it works now. Next related question. How can I remove the number associated with each directory listed profile? see example above. There is a 43 associated with the Gary profile listing. As a matter of fact all the profiles have a 43 or 44 associated with them. Thanks!

    #7643
     SQadmin
    Keymaster

    Hi, That is the member age. You can remove it with this code added to sweetdate-child/functions.php

    COPY CODE
    
    /* Remove age from member directory listing */
    add_filter('kleo_bp_meta_fields', 'remove_age_from_member');
    function remove_age_from_member($output) {
    	unset($output['age']);
    	
    	return $output;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Members directory page not showing about us information’ is closed to new replies.

Log in with your credentials

Forgot your details?