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

  • Author
  • #28053
     alberhd
    Participant

    Hello,i need do the next changes to the match system,i need that the match works if a man is looking for a man or a girl for a girl,because right now if one user man enter to other man profile the match does not work,just with girls.

    This is my actual custom code:

    COPY CODE
    add_action('after_setup_theme','kleo_my_match');
    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' => 20, 
        'Country' => 13, 
        'City' => 5,
    	 ); 
      //multiple values fields like multiple select or checkbox 
      $kleo_config['matching_fields']['multiple_values'] = array ( 
        'Personality' => 10, 
        'Looking for' => 10,
        'Someone that smoke?' => 10,
        'Someone that drink? ' => 7
      );
    }

    Thank you!

    #28663
     alberhd
    Participant

    Hello,maybe some line code to do the match works if a user is looking someone with the same sex?

    Thank you!

    #28949
     alberhd
    Participant

    Please,nothing can help me?

    #29694
     Abe
    Keymaster

    Hi, the matching works with whatever fields the user selected, so if the user is a man and looks for woman then only then the matching will increase

    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 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?