This topic has 2 replies, 2 voices, and was last updated 9 years by ClenchTheWeb.
-
Author
-
January 18, 2015 at 18:22 #42542ClenchTheWebParticipant
Hi,
I am adding my updated multiple value fields to the matching system.
The problem is that the score will change only if both users select exactly the same options of the multiple value field.
If one or more is different, the score for that multiple field return to zero…even if some are the same.Is that the normal behavior ? If so is there a way to fix it so it counts every matching options selected ?
Here is my updated code in functions.php :
COPY CODE//my changes to member match score results 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'] = 'Je suis'; $kleo_config['matching_fields']['looking_for'] = 'Je cherche'; //sex percentage $kleo_config['matching_fields']['sex_percentage'] = 49; //single value fields like select, textbox,radio $kleo_config['matching_fields']['single_value'] = array ( 'État civil' => 2, 'Pays' => 1, 'Région' => 1, 'Ville' => 2, 'Physique' => 2, 'Ethnicité' => 2, 'Argent' => 2, 'La cigarette' => 2, 'La fidélité' => 2, 'Humour' => 2, 'Intelligence' => 2, 'Le sexe' => 2, 'Le sport' => 2, 'Les voyages' => 2, 'Apparence physique' => 2 ); //multiple values fields like multiple select or checkbox $kleo_config['matching_fields']['multiple_values'] = array ( 'Mon but' => 2, 'Sports' => 1, 'Genre de films' => 1, 'Genre de musique' => 1, 'Genre de sorties' => 1 ); }
Thank you
January 19, 2015 at 21:38 #42661LauraModeratorHello, please just update your theme to find the options in admin panel.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 19, 2015 at 22:05 #42664ClenchTheWebParticipantIt works perfectly with today’s update 🙂
Thank you
-
AuthorPosts
You must be logged in to reply to this topic.