Forum Replies Created
-
Author
-
SQadminKeymaster
Hi,
To make them appear like that, you need to redefine the function that is rendering this section.See the file attached.bp_renAlso add this css to Sweetdate-> Styling options -> Quick css
COPY CODE.search-item .date, .search-item .date a {height:auto}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files.SQadminKeymasterHi, You should have followed the topic and add the code just like there:
COPY CODEadd_action('after_setup_theme','kleo_my_actions'); function kleo_my_actions() { global $bp_tabs; $bp_tabs['looking-for'] = array( 'type' => 'cite', 'name' => apply_filters('kleo_extra_tab1', __('Looking for', 'kleo_framework')), 'group' => apply_filters('kleo_extra_tab1', 'Looking for'), 'class' => 'citetab' ); $bp_tabs['base'] = array( 'type' => 'regular', 'name' => apply_filters('kleo_extra_tab2',__('About me', 'kleo_framework')), 'group' => 'Base', 'class' => 'regulartab' ); /* Bp-Album tab - only if plugin installed */ $bp_tabs['bp-album'] = array( 'type' => 'bp_album', 'name' => __('My photos', 'kleo_framework'), 'class' => 'mySlider' ); }
You should edit the name attribute (ex: ‘name’ => __(‘My photos’, ‘kleo_framework’),) to match yours
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
1.You don’t need to add the functions.php from the main theme. Child theme already contains a functions.php. You just add extra code that changes stuff in the theme
2. You can add this to Sweetdate -> Styling options -> Quick css:COPY CODE.regulartab dd {line-height:20px;}
3,4. This topic shows how to replace hearts: https://archived.seventhqueen.com/forums/topic/removereplace-the-love-hearts-in-site
The color is given by the “alert” class added to the button in page-parts/general-register-modal.php line 26. Remove that from the class attribute.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
In Sweetdate -> Styling options -> Quick css add this:COPY CODE.page-template-page-templatesfront-page-php .rev_slider_wrapper { min-height: 713px; }
Change 713 to match your height
You can see the logo in the included PSD files. I don’t think the logo has transparency, it is just saved as png without transparent background.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi, Sorry for the late reply. Don’t know why they didn’t come up in our priority list
That code is good. Just add this in sweetdate-child/functions.phpCOPY CODEadd_action('after_setup_theme',' kleo_my_member_data'); function kleo_my_member_data() { global $kleo_config; //this is the details field, right now it take the "About me" field content $kleo_config['bp_members_details_field'] = 'About me'; //this display the fields under the name, eq: 36 / Woman / Divorced / Berlin. Modify with the names of the fields you want to appear there $kleo_config['bp_members_loop_meta'] = array( 'Proffession' ); }
For the color add this in Sweetdate -> Styling options -> Quick css box:
.pink-text { color: #F00056;}
Change the #HEX with your own colorHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
To achieve that please change contents of this file: sweetdate/custom_buddypress/kleo-bp-search.php with this one:
http://d.pr/n/bev6And add this css to Sweetdate – Styling options – Quick css box:
COPY CODE.kleo-checkbox label { float: left; width: 25%;}
Change the 25% to have more or less in a row.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
Yes you can limit access to cometchat by wrapping their code in header.php like this:COPY CODE/* In this example we are allowing only levels 1 and 2 to use the chat. */ <?php if ( pmpro_hasMembershipLevel(array(1,2))) { ?> /*put here the css and js from cometchat */ <?php } ?>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi, It seems to be a problem in this file from rtMedia plugin: /wp-content/plugins/buddypress-media/app/main/routers/RTMediaRouter.php
If you replace lines 140 to 144 with the code bellow it will work. I notified already rtMedia stuff and hopefully they will fix this:
COPY CODEif( function_exists ('bp_set_theme_compat_active')) bp_set_theme_compat_active( false ); add_filter( 'the_content', array(&$this,'rt_replace_the_content') ); $this ->rt_theme_compat_reset_post(); return $new_rt_template;
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi there.
If you want users to show in your site after they activate their account or you activated it using a plugin you have to add this piece of code to your sweetdate-child/functions.php and an user no longer needs to login in order for him to appear in the site.COPY CODEadd_action('bp_core_activated_user', 'kleo_add_member_activity'); function kleo_add_member_activity($user_id, $key, $user ) { add_user_meta( $user_id, 'last_activity', date("Y-m-d H:i:s")); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterhi,
Problem comes from your added css:COPY CODE.woocommerce li { margin-left: 30px; }
This will affect every li in the whole page.
Narrow it by adding: .woocommerce .products liHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterif you are referring to the widget in sidebar:
COPY CODE#newest-members, #popular-members {display:none}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterTry adding this instead of normal min-width1300px:
COPY CODE@media only screen and (min-width: 1279px) { .home-page #header {min-width:1300px} }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi, For those please add this css to Sweetdate -> Styling options -> Quick css box:
COPY CODE.kleo-bp-active-members .activity, #profile .activity {display:none;}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi, That is not related with our update. IT has to do with a plugin of yours: http://my-private-event.com/wp-content/plugins/optimizePressPlugin/lib/assets/default.css
Try to fix it by adding this css to Sweetdate -> Styling option -> Quick css:
COPY CODE.reveal-modal-bg {z-index:40 !important; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
To remove it only from mobile add this css to Sweetdate -> Styling options -> Quick css or in sweetdate-child/style.cssCOPY CODE@media (max-width: 480px) { .contain-to-grid.sticky.fixed {display:none;} }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
Yes it can be done.
Add this code to wp-content/plugins/bp-custom.php to make Buddypress not generate the links:COPY CODEfunction remove_xprofile_links() { remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 ); } add_action( 'bp_init', 'remove_xprofile_links' );
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
Add this css to Sweetdate -> Styling options -> Quick css:COPY CODE.top-links, .top-links a {color:red}
modify it with your color.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
Please add the following code to your sweetdate-child/functions.php file. It replaces the heart with a camera icon.
To view all possible icons available:
http://fortawesome.github.io/Font-Awesome/icons/
Make sure to have the child theme activatedCOPY CODEadd_action('after_setup_theme','kleo_replace_heart'); function kleo_replace_heart() { /* Replace the heart over images */ add_filter('kleo_img_rounded_icon', 'my_custom_icon'); } /* Replace the heart with a camera icon function */ function my_custom_icon () { return 'camera'; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterRevert the previous solution if it didn’t worked and try editing the buddypress/bp-xprofile/bp-xprofile-template.php and replace:
line 513COPY CODE$html .= apply_filters( 'bp_get_the_profile_field_options_select', '<option' . $selected . ' value="' . esc_attr( stripslashes( $options[$k]->name ) ) . '">' . esc_attr( stripslashes( __($options[$k]->name )) ) . '</option>', $options[$k], $field->id, $selected, $k );
line 552
COPY CODE$html .= apply_filters( 'bp_get_the_profile_field_options_multiselect', '<option' . $selected . ' value="' . esc_attr( stripslashes( $options[$k]->name ) ) . '">' . esc_attr( stripslashes( __($options[$k]->name )) ) . '</option>', $options[$k], $field->id, $selected, $k );
line 578
COPY CODE$html .= apply_filters( 'bp_get_the_profile_field_options_radio', '<label><input' . $selected . ' type="radio" name="field_' . $field->id . '" id="option_' . $options[$k]->id . '" value="' . esc_attr( stripslashes( $options[$k]->name ) ) . '"> ' . esc_attr( stripslashes( __($options[$k]->name )) ) . '</label>', $options[$k], $field->id, $selected, $k );
line 618
COPY CODE$html .= apply_filters( 'bp_get_the_profile_field_options_checkbox', '<label><input' . $selected . ' type="checkbox" name="field_' . $field->id . '[]" id="field_' . $options[$k]->id . '_' . $k . '" value="' . esc_attr( stripslashes( $options[$k]->name ) ) . '"> ' . esc_attr( stripslashes( __($options[$k]->name )) ) . '</label>', $options[$k], $field->id, $selected, $k );
The lines might not be the same but you’ll see something similar that gets replaced
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
That happens because of the title being too long and goes on 2 lines. This css will fix it. Add the code to Sweetdate -> Styling options -> Quick css:COPY CODE#groups .group-item:nth-child(2n+1) { clear: left;}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
Please add this css to Sweetdate -> Styling options -> Quick css box:COPY CODE.activity-content span.time-since {display:none;}
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 17, 2013 at 18:41 in reply to: Changes in the Profile page – which file(s) to tweak? Cant find.. #2994SQadminKeymasterHi,
Here goes;
1. Copy sweetdate/members/member-header.php to sweetdate-child/members/member-header.php and remove line 35 and 36.
You need to activate the sweetdate-child theme2. Another file to copy to sweetdate-child in the same location as in the parent theme: members/single/profile/change-avatar.php
Rename the avatar string in the file with the one you desire
There are some other avatar strings that come from Buddypress core that could be changed following this url:
http://codex.buddypress.org/developer/customizing/customizing-labels-messages-and-urls/3. This is also handled by Buddypress. Add this code to wp-content/plugins/bp-custom.php. If the file doesn’t exit create it:
COPY CODEfunction bbg_change_subnav() { global $bp; $bp->bp_options_nav['activity']['friends']['name'] = 'Connections'; } add_action( 'bp_setup_nav', 'bbg_change_subnav', 999 );
Cheers.
PS: Please rate our theme and work if you likeHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHide the title with this css added to Quick css box from Sweetdate -> Styling options:
COPY CODE.directory.members.buddypress .search-result h2 {display:none}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
You can change profile fields from WP Admin -> Users -> Profile fields.
‘cancel friendship’ to ‘unfriend’ you need to add a piece of code to sweetdate-child/functions.phpCOPY CODE//when logged in - generated by buddypress add_filter('bp_get_add_friend_button', 'kleo_bp_change_friend_text'); function kleo_bp_change_friend_text($button) { $is_friend = bp_is_friend( bp_get_member_user_id() ); if ( empty( $is_friend ) ) return false; switch ( $is_friend ) { case "pending": $button['link_text'] = __( 'Cancel Friendship Request', 'kleo_framework' ); break; case "is_friend": $button['link_text'] = __( 'Cancel Friendship', 'kleo_framework' ); break; default: $button['link_text'] = __( 'Add me as a Friend', 'kleo_framework' ); break; } return $button; }
Change the wording to match your needs.
Make sure you have to child-theme activated.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterIn addition to @adam answer you can set the default privacy for the field to be private from the WP admin -> Users -> Profile fields -> profile edit page.
And to display the username instead of fullname in members directory add this to sweetdate-child/functions.php:
COPY CODE/* Display Username in Directory */ function kleo_member_username() { global $members_template; return $members_template->member->user_login; } add_filter('bp_member_name','kleo_member_username');
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterI don’t think that should be translated but you can try modifying the same core file:
from:COPY CODEfunction bp_get_the_profile_field_value() { global $field; $field->data->value = bp_unserialize_profile_field( $field->data->value ); return apply_filters( 'bp_get_the_profile_field_value', $field->data->value, $field->type, $field->id ); }
to
COPY CODEfunction bp_get_the_profile_field_value() { global $field; $field->data->value = __(bp_unserialize_profile_field( $field->data->value )); return apply_filters( 'bp_get_the_profile_field_value', $field->data->value, $field->type, $field->id ); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterAdd this to your sweetdate-child/functions.php and change the url with your own:
COPY CODE/* Filter the redirect url for login*/ add_filter("login_redirect","kleo_redirect_to_profile",100,3); function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){ /*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/ if(!is_super_admin($user->ID)) return 'http://MY_PAGE_URL'; else return $redirect_to_calculated; /*if site admin*/ }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
You can remove it with some css. Add this to Sweetdate -> Styling options -> Quick cssCOPY CODE.callout .bp-profile-details:before {content:"";}
To move it a bit to the left:
COPY CODE.callout .bp-profile-details, .callout .cite {margin-left:0;}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 15, 2013 at 20:44 in reply to: SweetDate alignments in sample pages cannot be reproduced #2848SQadminKeymasterHi,
To show the button, you have a checkbox for that in Sweetdate -> Buddypress in the horizontal form options.
To put a border, change the bg and colors you need to add css in the Sweetdate -> Styling options -> Quick cssCOPY CODE#search-bar {border: 1px solid #ccc; background: #0296C0}
Field color:
COPY CODE#search-bar form.custom div.custom.dropdown a.current { background-color: #FFFFFF; color: #141414; } #search-bar form.custom div.custom.dropdown ul li.selected { background: #CDEBF5; color: #000000; }
Play with the colors as you like
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 13, 2013 at 23:59 in reply to: SweetDate alignments in sample pages cannot be reproduced #2810SQadminKeymasterAdd this to WP admin -> Sweetdate -> Styling options -> Quick css box:
COPY CODE#main {padding-top:20px}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterYou can redirect users at the first login to avatar page by adding this code to sweetdate-child/functions.php
COPY CODEfunction function_new_user($user_id) { add_user_meta( $user_id, '_new_user', '1' ); } add_action( 'user_register', 'function_new_user'); //The next function will check if it's the first login and redirect the user. function function_check_login_redirect($user_login, $user) { $logincontrol = get_user_meta($user->ID, '_new_user', 'TRUE'); if ( $logincontrol ) { //set the user to old update_user_meta( $user->ID, '_new_user', '0' ); //Do the redirects or whatever you need to do for the first login wp_redirect( home_url().'/members/'.$user_login.'/profile/change-avatar/#item-nav', 302 ); exit; } } add_action('wp_login', 'function_check_login_redirect', 10, 2);
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
This is the function you need to add in order to assign a specific membership level to a newly registered user. Add it into your sweetdate-child/functions.phpCOPY CODEadd_action('user_register', 'kleo_pmpro_default_level'); function kleo_pmpro_default_level($user_id) { pmpro_changeMembershipLevel(1,$user_id); }
This one assigns level with ID 1
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterThis is for the other link:
COPY CODEa.bbp-forum-link {font-size:16px;}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
By default Buddypress doesn’t wrap the field name in a translation function so this will do the trick so your field names would appear under WMPL string translation:
Add this code to your sweetdate-child/functions.php file and make sure to have the sweetdate-child theme active:COPY CODEadd_filter('bp_get_the_profile_field_name', 'kleo_translated_profile_name'); function kleo_translated_profile_name($name) { return __($name,'buddypress'); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterYou can add a small css line in Sweetdate -> Styling options -> Quick css box:
COPY CODEa.bbp-forum-title {font-size:16px;}
Change the 16px to match your needs
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterYes or create a new file called functions.php and just add
COPY CODE<?php
on the first line. Then paste custom codes into it
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi, Try using a caching plugin like w3 total cache and you could try adding this to sweetdate-child/functions.php:
COPY CODEremove_action( 'wp_head', 'wp_shortlink_wp_head' ); remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' );
Make sure to have the child theme activated.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 9, 2013 at 08:15 in reply to: Restrict regular users access to WordPress admin(wp-admin) #2483SQadminKeymasterHi,
By default wordpress allows users to go to WP Admin.
This snipped might do the job. Add it to sweetdate-child/function.phpCOPY CODEadd_action( "init", "kleo_blockusers_init" ); function kleo_blockusers_init() { if ( is_admin() AND ! current_user_can( "administrator" ) AND ! ( defined( "DOING_AJAX" ) AND DOING_AJAX ) ) { wp_redirect( home_url() ); exit; } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterThat looks good but you forgot to add a line before “$bp_tabs[‘physical’] = array(“:
COPY CODEglobal $bp_tabs;
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterThis is a sample on how you could achieve that. It has to be added in the footer.php
COPY CODE<?php $bg = array('bg-01.jpg', 'bg-02.jpg', 'bg-03.jpg', 'bg-04.jpg', 'bg-05.jpg', 'bg-06.jpg', 'bg-07.jpg' ); // array of filenames $i = rand(0, count($bg)-1); // generate random number size of the array $selectedBg = "$bg[$i]"; // set variable equal to which random filename was chosen ?> <style type="text/css"> <!-- body{ background: url('<?php get_stylesheet_directory_uri(); ?> /images/<?php echo $selectedBg; ?>') no-repeat; } --> </style>
Images must be placed in sweetdate-child/images and defined in the $bg array
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts