Forum Replies Created
-
Author
-
hughmParticipant
Thanks, that works for me. It was easier to just echo my footer info rather than use the earlier version to generate copyright information.
Thanks for your help.hughmParticipantI would like to format my footer information. Currently all that is displaying is “Copyright © 2013,”
I tried adding the above code to my functions.php file in my child theme but had a few problems. The copyright symbol didn’t show correctly. Instead it showed up as a box. Also the site name and description did not display.
Could you give some direction on how to fix this and how to add additional details.hughmParticipantThanks. That is awesome! Works beautifully.
I am using the second set of code so that same gender preferences get points and no matching scores end up at 1%. Makes it more fun.
I appreciate the help. Really great!!hughmParticipantI found the code for user percentage matching in sweetdate/custom_buddypress/bp-functions.php. I added a few lines to try and correctly match same gender preference users. If a woman is seeking a woman or a man is seeking a man they should also be given 49% points. I tested it and it doesn’t work but I think it is on the right track.
//Sex match
if ((isset($kleo_config['matching_fields']['sex_match']) && $kleo_config['matching_fields']['sex_match'] == '1')
|| !isset($kleo_config['matching_fields']['sex_match']) )
{
$field1_u1 = xprofile_get_field_data($kleo_config['matching_fields']['sex'], $userid1);
$field1_u2 = xprofile_get_field_data($kleo_config['matching_fields']['looking_for'], $userid2);
$field2_u2 = xprofile_get_field_data($kleo_config['matching_fields']['sex'], $userid2);
$field2_u1 = xprofile_get_field_data($kleo_config['matching_fields']['looking_for'], $userid1);
if ( $field1_u1 == $field1_u2 ) && ( $field2_u2 == $field2_u1 )
$score += $kleo_config['matching_fields']['sex_percentage'];
else
return $score;
}
hughmParticipantThanks for your help. I ended up making the fields drop down questions and it works perfectly.
I have an additional questions. If one of my members is seeking the same sex, the matching doesn’t quite work. For example, if a woman is looking for a woman, then the men still appear as at least a 50% match. If there is another woman seeking a woman she will also appear as at least a 50% match.
Is there a way to lower the percentage score for the opposite gender when a member is seeking the same sex match? So that if a woman is seeking a woman and a man’s profile displays her match will be something like 25% rather than 50%+.
Thanks!hughmParticipantI have added the profile matching code to my functions.php file in my child theme. The single value fields that I am using (Country, City, Home State) are working.
The multiple value fields however are not registering. I am using “Interests” and “Looking for” but getting no point values to show in the match.
If a member selects multiple interests, does each match count or does the member have to be an exact match of all items in order for the value to count.
Here is my 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 (
'Relationship status' => 5,
'Country' => 5,
'City' => 8,
'Home State' => 6,);
//multiple values fields like multiple select or checkbox
$kleo_config['matching_fields']['multiple_values'] = array (
'Interests' => 1,
'Looking for' => 3,);
} -
AuthorPosts