This topic has 1 reply, 2 voices, and was last updated 10 years by Abe.

  • Author

    Tagged: ,

  • #16166
     MrHillman
    Participant

    Hi All,

    Ive read a few post regarding changing the match meter. However upon reading them, I notice that a lot of the code has been edited to suit different needs, so was a little difficult for me to follow.

    I need it to match what a user has inputted into their “interests” and “looking for fields” aswell as Sex, and Sexual Orientation.

    Can you point me in the the right direction of the code I need to change and add points to?Matr

    Thank you

    #16344
     Abe
    Keymaster

    Hi, This is the topic that shows you how to adjust your matching system: https://archived.seventhqueen.com/forums/topic/match-numbers

    Based on that, your code to add in child theme/functions.php should be like the one below but I don’t know what type of fields you have added and their exact names so please change the field names to the appropriate ‘single_value’ or ‘multiple_values’ array and set their percentage impact

    COPY CODE
    
    //change matching system
    add_action('after_setup_theme','kleo_my_match');
    function kleo_my_match() {
    global $kleo_config;
    $kleo_config['matching_fields']['starting_score'] = 1;
    //If we want to match by members sex. values: 0|1
    $kleo_config['matching_fields']['sex_match'] = 1;
    //required for initial match. If the sex preference matches it will continue to the specified fields below
    $kleo_config['matching_fields']['sex'] = 'I am a';
    $kleo_config['matching_fields']['looking_for'] = 'Looking for a';
    //sex percentage
    $kleo_config['matching_fields']['sex_percentage'] = 49;
    //single value fields like select, textbox,radio
    $kleo_config['matching_fields']['single_value'] = array (
        'Sexual Orientation' => 20,
    "Another field name" => 10
    );
    //multiple values fields like multiple select or checkbox
    $kleo_config['matching_fields']['multiple_values'] = array (
        'Interests' => 10,
    );
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?