Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: Multiple Checkbox: not partial match? #21581
     omtr
    Participant

    Hi Catalin,

    thanks for your quick response. i already updated to the new version. as far as i understand the compatibility_score() function, it is already coded the way i want to have it: every match on multiple checkboxes is added to the score. at least that is what the coded is supposed to do. Unfortunately the multiple checkboxes do not have any effect on my score. to finde the reason, i tried several different member searches and tried changes the target member profile interests. but the result is always the same: the score does not change. btw: single value fields work perfectly!

    COPY CODE
    add_action('after_setup_theme','kleo_my_match'); 
    
    //If we want to match by members sex. values: 0|1
    $kleo_config['matching_fields']['sex_match'] = 0;
    function kleo_my_match() {
      global $kleo_config;
      $kleo_config['matching_fields']['starting_score'] = 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 ( 
        'Marital status' => 10, 
        'Country' => 10, 
        'City' => 5,
        'Profession' => 10,
        'Annual Income' => 10,
        'Education' => 10,
        'Political Views' =>5,
        'Religion' => 20,
        'Weight Type' => 5,
        'Ethnicity' => 15
      ); 
      //multiple values fields like multiple select or checkbox 
      $kleo_config['matching_fields']['multiple_values'] = array (
        'Interests' => 5
      );
    }

    sex, marital status, country and city are set for scoring and i get a perfect 75 when i do a search. but Interests do not have any impact.

    obviously there are a lot of people in this forum who have the same problem – i hope that there is a simple answer for me.

    thanks in advance, i appreciate your help! your are doing a great job.

Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?