This topic has 8 replies, 3 voices, and was last updated 11 years by SQadmin.

  • Author
  • #3268
     RonP
    Participant

    Hi again, C-=
    I want to change the fields these items are taken from in the memberlist profiles

    32 / Man / Single / Strathroy Area

    I want to remove single and man , and put in my custom field Proffession

    Also the text is pink in the “Profile Search results” title. How do I edit that ?

    #3270
     Tenshi
    Participant

    1) https://archived.seventhqueen.com/forums/topic/member-directory-page-about-me-text-does-not-display

    2) I forgot how I did that on mine. Sorry! Just wait for support response!

    #3271
     RonP
    Participant

    I used that code and got this error

    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/newbuddy/public_html/wp-includes/plugin.php on line 406

    #3438
     RonP
    Participant

    has the code changed somehow ?

    #3520
     SQadmin
    Keymaster

    Hi, Sorry for the late reply. Don’t know why they didn’t come up in our priority list
    That code is good. Just add this in sweetdate-child/functions.php

    COPY CODE
    
    
    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(
            'Proffession'
        );
          
    }
    

    For the color add this in Sweetdate -> Styling options -> Quick css box:
    .pink-text { color: #F00056;}
    Change the #HEX with your own color

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

    Parse error: syntax error, unexpected ”City” (T_CONSTANT_ENCAPSED_STRING), expecting ‘)’ in /home/newbuddy/public_html/wp-content/themes/sweetdate-child/functions.php on line 138

    #3652
     RonP
    Participant

    add_action(‘after_setup_theme’,’ kleo_my_member_data’);
    I added a comma after Proffession and uplaoded my backup

    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(
    ‘Proffession’,
    ‘City’
    );

    }

    I now have this in my header
    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/newbuddy/public_html/wp-includes/plugin.php on line 406

    #3654
     RonP
    Participant

    I just changed my main sweetdate functions code.
    I can’t figure out for the life of me why I can’t work in this damn wordpress enviroment.

    #3692
     SQadmin
    Keymaster

    Hi, This should be your code. I saw some extra spaces and bad quotes

    COPY CODE
    
    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(
    'Proffession',
    'City'
    );
    
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 9 posts - 1 through 9 (of 9 total)

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

Log in with your credentials

Forgot your details?