Forum Replies Created
-
Author
-
AbeKeymaster
Hi, This css centers the button
COPY CODE.pricing-table { text-align: center; }
PS. To get the levels page like in our demo you need to install Paid memberships Pro. See the details in the included documentation
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.AbeKeymasterHello,
Please add this code to sweetdate-child/functions.php and the kleo_img_rounded_icon shortcode will accept a link attribute to set like [kleo_img_rounded_icon src=”http://image_link” link=”http://link to another page”]COPY CODEfunction kleo_img_rounded( $atts, $content = null ) { extract(shortcode_atts(array( 'src' => '', 'class' => '', 'link' => '' ), $atts)); if ($link) { $data= 'href="'.$link.'"'; }else { $data = 'data-rel="prettyPhoto[gallery1]" href="'.$src.'"'; } $output = '<div class="circle-image '.$class.'">'; $output .= ' <a href="'.$src.'" class="imagelink" '.$data.'> <span class="overlay"></span> <span class="read"><i class="icon-'.apply_filters('kleo_img_rounded_icon','heart').'"></i></span> <img src="'.$src.'" alt=""> </a> </div>'; return $output; } add_shortcode('kleo_img_rounded', 'kleo_img_rounded');
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.AbeKeymasterIt may be a font related issue. Try changing the default font used. To get rid of the border add this css:
.top-links { border-bottom: none; }
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.AbeKeymasterFrom their site
The code recipe below turns off this user notification (admin_change.html) You can turn off additional user notification emails by changing or adding to line 6.
COPY CODE/* Disable the "Admin Change" emails in Paid Memberships Pro */ function my_pmpro_email_recipient($recipient, $email) { if($email->template == "admin_change" || $email->template == "admin_change_admin") //could check for a different template here $recipient = NULL; return $recipient; } add_filter("pmpro_email_recipient", "my_pmpro_email_recipient", 10, 2);
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.AbeKeymasterHi,
There isn’t a setting in the admin panel but you can add this code to sweetdate-child/functions.php file to accomplish thatCOPY CODE//remove sidebar for activity and groups pages add_action('kleo_before_page','my_remove_sidebar'); function my_remove_sidebar() { if(bp_is_groups_component() || bp_is_activity_component()) { remove_action('kleo_buddypress_after_content', 'kleo_sidebar'); add_filter('kleo_buddypress_content_class', create_function('', 'return "twelve";')); } }
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.AbeKeymasterHello, You need to add this CSS:
COPY CODE#subnav ul li.feed { display: none; }
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.AbeKeymasterHello,
This code added to sweetdate-child/functions.php will add a class to the body tag with the specific value of user, eq: man and after that you just need to add you CSS rules accordingly for each class eq. body.man #header {color: blue;}COPY CODE/* * Adds some required body claasses */ add_filter('body_class','kleo_body_my_classes'); /** * Adds specific classes to body element * @param array $classes * @return array * @since 2.1 */ function kleo_body_my_classes($classes = '') { global $bp; if (is_user_logged_in()) { $data = bp_get_profile_field_data( 'field=I am a&user_id=' . $bp->loggedin_user->id ); $classes[] = strtolower(str_replace(' ', '-', $data)); } return $classes; }
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.AbeKeymasterThis means you haven’t added the whole portion and just a small part
Add from where it saysCOPY CODE<!--Login buttons-->
to
COPY CODE<!--end login buttons-->
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.AbeKeymasterThis is an example from their site that goes to your functions.php
COPY CODE/* Change email subjects. The function checks $email->template and updates the subject as needed. The email template name will be equivalent to the filenames in the /email/ folder of the PMPro plugin. */ function my_pmpro_email_subject($subject, $email) { //only checkout emails if($email->template == "checkout_free") { $subject = "Thank you, " . $email->data["name"] . ", for using " . get_bloginfo("name"); } return $subject; } add_filter("pmpro_email_subject", "my_pmpro_email_subject", 10, 2);
to translate the you need to wrap the strings inside a wordpress translation function. example with the “Thank you, ” above:
$subject = __(“Thank you, “, “kleo_framework”) . $email->data[“name”] . “, for using ” . get_bloginfo(“name”);
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.AbeKeymasterHi,
1. after the Bio code you should add this
COPY CODE$bp_tabs['looking-for'] = array( 'type' => 'cite', 'name' => __("Concept", 'kleo_framework'), 'group' => 'Concept', 'class' => 'citetab' );
Your profile field group name should be Concept
3. Try retyping all of the ‘ -> single quotes
If you need to extend default functionality of Sweetdate please hire a developer with PHP skills from a site like Microlancer
That is default functionality for an input to extend to the whole area it is wrapped in. You can inspect those elements in your browser and style them by CSS (again HTML/CSS knowledge required)
6. There is no such option
Cheers
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.AbeKeymasterHello,
That is not possible from the default options.
Try this:
– set the default layout boxed
– add this css to Sweetdate – Styling options – Quick css to make the wide layout only on homepageCOPY CODE.home .kleo-page { margin: 0;max-width: none;}
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.AbeKeymasterOh I see, add this code to sweetdate-child/functions.php
COPY CODEadd_action('wp_head', 'custom_profile_sidebar'); function custom_profile_sidebar() { if (bp_is_member()) { add_filter('kleo_buddypress_content_class', create_function('', 'return "eight";')); add_action('kleo_buddypress_after_content', 'kleo_buddypress_sidebar'); } }
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.AbeKeymasterHello,
1. Add this css to hide the header from home:
COPY CODE.home .header-bg {display:none;}
2. Please replace the content from wp-content\themes\sweetdate\framework\shortcodes\shortcodes.php with https://archived.seventhqueen.com/files/shortcodes.txt
After that your image should fit nicely.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.January 12, 2014 at 18:13 in reply to: plugin conflicts with 'event manager' & 'Really simple Facebook Twitter share' #9581AbeKeymasterHi,
1. Add this CSS to Sweetdate – Styling options – Quick css:COPY CODE.post.fixed { position: static; }
2. I don’t think that is your problem. If you disable it I am sure it will look the same. You edited the homepage and added too many line breaks between elements. Try editing the homepage in the Text tab, not visual since WordPress interprets every new line you put in the editor and will generate it in the frontend also
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.AbeKeymasterHello, You just need to redefine this function in your sweetdate-child/functions.php and chage the column as you like
COPY CODEfunction kleo_bp_profile_tabs() { global $bp_tabs; echo '<div class="seven columns">'; new BpMembersTabs($bp_tabs); echo '</div>'; }
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.AbeKeymasterHi, You can add this script in footer.php just before wp_footer line. This will hide the full name in the register page and because it is a require field it will take the value of username
COPY CODE<script> var url = document.location.href; jQuery(document).ready(function() { //copy profile name to account name during registration if (url.indexOf("register/") >= 0) { jQuery('label[for=field_1],#field_1, #field-visibility-settings-toggle-1').css('display','none'); jQuery('#signup_username').blur(function(){ jQuery("#field_1").val(jQuery("#signup_username").val()); }); } }); </script>
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.AbeKeymasterImage is added by CSS and this is the styling(you can use Inspect element in your Chrome browser to see it)
COPY CODE.membership .pricing-table.popular:after { background: url("images/pop.png") no-repeat scroll center center rgba(0, 0, 0, 0); content: ""; height: 78px; position: absolute; right: 0; top: 0; width: 78px; }
To do those changes you or a developer you hire require some HTML/CSS/PHP knowledge.
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.AbeKeymasterHi, You need to register a new menu with this function added to sweetdate-child/functions.php
COPY CODEfunction kleo_register_my_menus() { register_nav_menus( array( 'Top' => __( 'In the top bar', 'kleo_framework' ), ) ); } add_action( 'init', 'kleo_register_my_menus' );
And then in header.php add this code somewhere inside top-links div.
<?php wp_nav_menu( array( 'container' => false, 'menu_class' => 'left top_menu', 'theme_location' => 'Top', 'fallback_cb' => '', 'walker' => new sweetdate_walker_nav_menu)); ?>
and this style to Sweetdate – Styling options – Quick css
COPY CODE.top_menu {list-style: none;} .top_menu li {float:left;margin-right: 10px} .top_menu li:last-child {margin-right: 0;}
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.AbeKeymasterHi, make the change in the child theme and in custom_buddypress/bp-functions.php replace:
require_once(get_template_directory(). ‘/custom_buddypress/class-bp-tabs.php’);
withCOPY CODElocate_template('custom_buddypress/class-bp-tabs.php', true);
And I will include this fix in next theme update so you won’t have to worry about the change in bp-functions.php
Cheers
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.AbeKeymasterHi, to change from blue to green add this css to Sweetdate – Styling options – QUicks css:
COPY CODE.membership .bullet-item:before { color:green;}
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.AbeKeymasterHi and thank you very much.
1. Please add this code to sweetdate-child/functions.php to customize those tabs so they appear fine in multilingual
COPY CODE//customize profile tabs add_action('after_setup_theme','kleo_my_custom_tabs'); function kleo_my_custom_tabs() { global $bp_tabs; $bp_tabs = array(); $bp_tabs['looking-for'] = array( 'type' => 'cite', 'name' => __('Looking for', 'kleo_framework'), 'group' => 'Looking for', 'class' => 'citetab' ); $bp_tabs['base'] = array( 'type' => 'regular', 'name' => __('About me', 'kleo_framework'), 'group' => 'Base', 'class' => 'regulartab' ); /* rtMedia tab - only if plugin installed */ if (class_exists('RTMedia')) { $bp_tabs['rtmedia'] = array( 'type' => 'rt_media', 'name' => __('My work', 'kleo_framework'), 'class' => 'mySlider' ); } /* Bp-Album tab - only if plugin installed */ elseif (function_exists('bpa_init')) { $bp_tabs['bp-album'] = array( 'type' => 'bp_album', 'name' => __('My photos', 'kleo_framework'), 'class' => 'mySlider' ); } }
2. Also add this code to the same location and customize it with proper link if its the case
COPY CODE//My custom header submenu item add_filter('header_profile_dropdown','remove_activity_submenu'); function remove_activity_submenu($menu) { $menu['event'] = '<li><a href="' . bp_loggedin_user_domain().'events/">'. __("Events", "buddypress").'</a></li>';; return $menu; }
3. You’ll see them how they were added in header.php around line 163. try to replicate them
4. In function php is the function that generates the meta section. Find get_author_posts_url and replace with bp_core_get_user_domain
Those would be nice but for b,c I think there are some plugins that can be adapted
Cheers
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.AbeKeymasterif you have your site under /dev-site add it like this:
COPY CODE<IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^([a-z]+)/wp-includes/(.*)$ /dev-site/wp-includes/$2 [R=301,L] </IfModule>
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.AbeKeymasterThis is a problem from WPML and Buddypress Multilingual. Until they will release a fix add this at the beginning of your .htaccess file
COPY CODE<IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^([a-z]+)/wp-includes/(.*)$ /wp-includes/$2 [R=301,L] </IfModule>
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.AbeKeymasterYou need to follow the example and you need basic PHP knowledge
COPY CODEadd_action('after_setup_theme','kleo_my_match'); function kleo_my_match() { global $kleo_config; $kleo_config['matching_fields']['starting_score'] = 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'; //sex percentage $kleo_config['matching_fields']['sex_percentage'] = 99; //single value fields like select, textbox,radio $kleo_config['matching_fields']['single_value'] = array ("Status", "City", "Drinking Habits","Dietary Preferences","Smoking Habits","For" ); //multiple values fields like multiple select or checkbox $kleo_config['matching_fields']['multiple_values'] = array ("Interests"); }
FTP access isn’t correct. Please add it yourself
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.AbeKeymasterHi, Inspect the elements in your browser with Firebug for Mozilla Firefox or Chrome browser
You need to add this css:COPY CODE.kleo-message-count { background: none repeat scroll 0 0 #F00056; } .kleo-friends-req { background: none repeat scroll 0 0 #01A8DA; } li span.unread-count, tr.unread span.unread-count { background: none repeat scroll 0 0 #FF0461; }
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.AbeKeymasterHello,
Thanks for the purchase. We did a little code to interact smoothly with bp chat. Enable the sweetdate-child theme and add this code to sweetdate-child/functions.php and customize the levels which can use the chat(now levels 1,2 are allowed)COPY CODE// In this example we are allowing levels 1 and 2 to use the chat and restricting all other users add_action('init', 'kleo_bp_chat_restrictions'); function kleo_bp_chat_restrictions() { if ( !pmpro_hasMembershipLevel(array(1,2))) { add_filter('bpchat_is_disabled', create_function('', 'return true;')); } }
Please don’t forget to rate our theme if you like our work.
Cheers
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.January 6, 2014 at 23:04 in reply to: Make groups and profiles only visible for logged-on users #9246AbeKeymasterHi @studiblog
you can redirect users to the registration page by adding this code to sweetdate-child/functions.php and manipulate the redirectCOPY CODE// redirect to registration page instead of membership levels page add_filter('kleo_pmpro_url_redirect', 'my_custom_redirect'); function my_custom_redirect() { if (is_user_logged_in()) { return pmpro_url("levels"); } else { return bp_get_signup_page(); } }
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.AbeKeymasterHi @daniellemarie
If you only want to match I am a with Looking for fields this is the code:COPY CODEadd_action('after_setup_theme','kleo_my_match'); function kleo_my_match() { global $kleo_config; $kleo_config['matching_fields']['starting_score'] = 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'; //sex percentage $kleo_config['matching_fields']['sex_percentage'] = 99; //single value fields like select, textbox,radio $kleo_config['matching_fields']['single_value'] = array (); //multiple values fields like multiple select or checkbox $kleo_config['matching_fields']['multiple_values'] = array (); }
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.AbeKeymasterHello,
Please add this css to match your needs to Sweetdate – Styling options – Quick css:COPY CODE.page-template-page-templatesfront-page-php .rev_slider_wrapper { min-height: 450px; }
Thanks
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.AbeKeymasterHi,
1 and 5. This code will show bpAlbum images in the tab even when you have rtMedia
COPY CODEadd_action('after_setup_theme','kleo_my_custom_tabs'); function kleo_my_custom_tabs() { global $bp_tabs; $bp_tabs = array(); /* Bp-Album tab */ $bp_tabs['bp-album'] = array( 'type' => 'bp_album', 'name' => __('My photos', 'kleo_framework'), 'class' => 'mySlider' ); $bp_tabs['looking-for'] = array( 'type' => 'cite', 'name' => __('Looking for', 'kleo_framework'), 'group' => 'Looking for', 'class' => 'citetab' ); $bp_tabs['base'] = array( 'type' => 'regular', 'name' => __('About me', 'kleo_framework'), 'group' => 'Base', 'class' => 'regulartab' ); $bp_tabs['social'] = array( 'type' => 'regular', 'name' => __('Social', 'kleo_framework'), 'class' => 'regulartab' ); }
2. My answer is there 🙂
5. Not such an easy way but see this topic and adapt it to your needs. You require some PHP knowledge: https://archived.seventhqueen.com/forums/topic/hide-members-real-names
6. css works. make sure to get the whole code. to reduce the height even more add also this css:
COPY CODE.search-item .date { display: none; }
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.AbeKeymasterthis is how it should look like:
COPY CODEfunction kleo_img_rounded( $atts, $content = null ) { extract(shortcode_atts(array( 'src' => '', 'class' => '', 'url' => '#' ), $atts)); $output = '<div class="circle-image '.$class.'">'; $output .= ' <a href="'.$url.'" class="imagelink" data-rel="prettyPhoto[gallery1]"> <span class="overlay"></span> <span class="read"><i class="icon-'.apply_filters('kleo_img_rounded_icon','heart').'"></i></span> <img src="'.$src.'" alt=""> </a> </div>'; return $output; }
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.AbeKeymasterHi, Those are added by CSS and you will overwrite the styling with CSS added to Sweetdate – Styling options – Quick css. THis is the css you need to change it to a star.
COPY CODE#activity-favs:before { content: ""; }
Here are all Fontawesame icons you can use: http://fontawesome.io/3.2.1/cheatsheet/
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.AbeKeymasterHi, Reduce it with this CSS code added to Sweetdate – Styling options – Quick css and customize your width
COPY CODE.contain-to-grid .top-bar { width: 280px; }
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.AbeKeymasterHello,
1. You should find a plugin for that. We saw in the past Bp Docs
2. Add this code to replace default breadcrumb. code goes to sweetdate-child/functions.phpCOPY CODEfunction kleo_show_breadcrumb() { if (sq_option('breadcrumb_status') == 1) { if(!is_page_template('page-templates/front-page.php')) { echo '<section><div id="breadcrumbs-wrapp"><div class="row"><div class="nine columns"></div>'; do_action('kleo_after_breadcrumb'); echo '</div></div></section>'; } } }
3. Try this code. You should search Buddypress forums for buddypress related customizations
COPY CODE//remove feeds function bp_remove_feeds() { remove_action( 'wp', 'bp_activity_action_sitewide_feed', 3 ); remove_action( 'wp', 'bp_activity_action_personal_feed', 3 ); remove_action( 'wp', 'bp_activity_action_friends_feed', 3 ); remove_action( 'wp', 'bp_activity_action_my_groups_feed', 3 ); remove_action( 'wp', 'bp_activity_action_mentions_feed', 3 ); remove_action( 'wp', 'bp_activity_action_favorites_feed', 3 ); remove_action( 'wp', 'groups_action_group_feed', 3 ); } add_action('bp_include', 'bp_remove_feeds');
4. We just tested on our demo and works. Maybe a plugin you installed is interfering
5. See this topic: https://archived.seventhqueen.com/forums/topic/redirect-user-to-their-profile-after-login
you just need to change the redirection link from return bp_core_get_user_domain($user->ID ); to return bp_core_get_user_domain($user->ID ).’/activity/friends/’;6. those are generated by buddypress. There are lots of topics out there
http://codex.buddypress.org/buddypress-components-and-features/members-navigation-menus/
seventhqueen.com/support/forums/topic/buddypress-profile-landing-page-changeHi 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.AbeKeymasterYou can hide that portion with CSS. You can add it to Sweetdate – Styling options – Quick css
#profile, .buddypress #breadcrumbs-wrapp {display: none;}
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.AbeKeymasterThat is the message you get and it is telling you that you can’t translate each user post.
You can switch to spanish now form user profile and it shows in Spanish..
There are some changes to be done to a Buddypress core file to translate profile fields to Spanish. You should make this changes each time you update Buddypress
This is the file: buddypress/bp-xprofile/bp-xprofile-template.php
Change:COPY CODEfunction bp_get_the_profile_field_name() { global $field; return apply_filters( 'bp_get_the_profile_field_name', $field->name ); }
with:
COPY CODEfunction bp_get_the_profile_field_name() { global $field; return apply_filters( 'bp_get_the_profile_field_name', __($field->name, "buddypress") ); }
and
$groups[$i]->name with __($groups[$i]->name, “buddypress”)Theme is multilingual, supports WPML but there are certain parts from Buddypress that can’t be translated like all user activity posts. We can’t interfere in Buddypress core…
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.AbeKeymasterHi, Sorry, the gender won’t match since it should be different option and not the same value as other fields so you should exclude it and change $kleo_config[‘matching_fields’][‘sex_match’] = 1;
COPY CODEadd_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_match'] = 1; //single value fields like select, textbox,radio $kleo_config['matching_fields']['single_value'] = array ( 'Marital status' => 3, 'Country' => 5, 'City' => 5, 'Occupation' => 8, 'Annual Income' => 9, 'Education' => 8, 'Political Views' =>2, 'Religion' => 1, 'Body Type' => 2, 'Ethnicity' => 6 ); //multiple values fields like multiple select or checkbox $kleo_config['matching_fields']['multiple_values'] = array ( 'Interests' => 2, 'Languages Spoken' => 3 ); }
Also redefine the function for the matching calculation
COPY CODEfunction compatibility_score($userid1=false, $userid2=false) { global $kleo_config; if ($userid1 && $userid2) { $score = $kleo_config['matching_fields']['starting_score']; //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']['sex'], $userid2); if ( $field1_u1 != $field1_u2 ) { $score += $kleo_config['matching_fields']['sex_percentage']; } //if no sex match, return the score else { return $score; } } //single fields match if (is_array($kleo_config['matching_fields']['single_value'])) { foreach ($kleo_config['matching_fields']['single_value'] as $key => $value) { if ( xprofile_get_field_data($key, $userid1) && xprofile_get_field_data($key, $userid2) && xprofile_get_field_data($key, $userid1) == xprofile_get_field_data($key, $userid2) ) { $score += $value; } } } //multiple fields match if (is_array($kleo_config['matching_fields']['multiple_values'])) { foreach ($kleo_config['matching_fields']['multiple_values'] as $key => $value) { $field1 = xprofile_get_field_data($key, $userid1); $field2 = xprofile_get_field_data($key, $userid2); if ( $field1 && $field2 && $field1 == $field2 ) { $intersect = array_intersect((array)$field1,(array)$field2); if ( count($intersect) >= 1 ) { $score += $value; } } } } return $score; } }
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.AbeKeymasterHello,
1.
You should see this topic for changing those tabs https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image. You move the photos array in the code so it will be the first one like this:COPY CODEadd_action('after_setup_theme','kleo_my_custom_tabs'); function kleo_my_custom_tabs() { global $bp_tabs; $bp_tabs = array(); /* rtMedia tab - only if plugin installed */ if (class_exists('RTMedia')) { $bp_tabs['rtmedia'] = array( 'type' => 'rt_media', 'name' => __('My work', 'kleo_framework'), 'class' => 'mySlider' ); } /* Bp-Album tab - only if plugin installed */ elseif (function_exists('bpa_init')) { $bp_tabs['bp-album'] = array( 'type' => 'bp_album', 'name' => __('My photos', 'kleo_framework'), 'class' => 'mySlider' ); } $bp_tabs['looking-for'] = array( 'type' => 'cite', 'name' => __('Looking for', 'kleo_framework'), 'group' => 'Looking for', 'class' => 'citetab' ); $bp_tabs['base'] = array( 'type' => 'regular', 'name' => __('About me', 'kleo_framework'), 'group' => 'Base', 'class' => 'regulartab' ); $bp_tabs['social'] = array( 'type' => 'regular', 'name' => __('Social', 'kleo_framework'), 'class' => 'regulartab' ); }
2. Add this code to you sweetdate-child/functions.php and you will enable bp-album menu in WP admin:
COPY CODEadd_action( 'admin_menu', 'bp_album_add_admin_menu' );
3.
a) add this code to sweetdate-child/functions.phpCOPY CODEadd_action('after_setup_theme','kleo_my_hearts_actions'); function kleo_my_hearts_actions() { /* disable matching on member profile */ remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match'); }
b) See this topic for changing matching system: https://archived.seventhqueen.com/forums/topic/match-numbers
4. We will take a look
5. Those are all the fields added to your groups in Users -Profile fields. Leave to that group only the fields you want.
6. Add this css to Sweetdate – Styling options – Quick css to remove some of the height
COPY CODE.search-item .search-body { height: auto; margin-bottom: 0; }
To show more members in one line you have to edit this template located in sweetdate/members/members-loop.php and replace “four columns” with “three columns”
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.AbeKeymasterHi, this should be the full code:
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/We are'; $kleo_config['matching_fields']['looking_for'] = 'Interested in Meeting'; //sex percentage $kleo_config['matching_fields']['sex_percentage'] = 49; //single value fields like select, textbox,radio $kleo_config['matching_fields']['single_value'] = array ( 'Status' => 10, 'Country' => 5, 'City' => 5, 'Drinking Habits' => 5, 'Dietary Preferences' => 5, 'Smoking Habits' => 5 ); //multiple values fields like multiple select or checkbox $kleo_config['matching_fields']['multiple_values'] = array ( 'For' => 5, 'Interests' => 5, ); }
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.AbeKeymasterHi, This is the topic that shows you how to change the matching system: https://archived.seventhqueen.com/forums/topic/match-numbers#reply-2254
to match only “I am a” and “Looking for” this would be the code you have to add in sweetdate-child/functions.php
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'] = 99; //single value fields like select, textbox,radio $kleo_config['matching_fields']['single_value'] = array (); //multiple values fields like multiple select or checkbox $kleo_config['matching_fields']['multiple_values'] = array (); }
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. -
AuthorPosts