Forum Replies Created
-
Author
-
SQadminKeymaster
Hi, Make sure you have this file: wp-content/plugins/bp-custom.php
If not, create it with this content:COPY CODEif ( !defined( 'BP_AVATAR_THUMB_WIDTH' ) ) define( 'BP_AVATAR_THUMB_WIDTH', 120 ); //change this with your desired thumb width if ( !defined( 'BP_AVATAR_THUMB_HEIGHT' ) ) define( 'BP_AVATAR_THUMB_HEIGHT', 120 ); //change this with your desired thumb height if ( !defined( 'BP_AVATAR_FULL_WIDTH' ) ) define( 'BP_AVATAR_FULL_WIDTH', 580 ); if ( !defined( 'BP_AVATAR_FULL_HEIGHT' ) ) define( 'BP_AVATAR_FULL_HEIGHT', 580 ); //change this to default height for full avatar
Normally the theme adds it when you install it
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHey guys,
I modified the above code so now it is only one functions and accepts as a parameter the user id. To show the status in member directory you have 2 options:1. edit members/members-loop.php and add this by hand where you want to appear inside the members loop:
<?php if (kleo_is_user_online(bp_get_member_user_id())) { echo "Online"; } else { echo "Offline"; } ?>
2. Add this code to sweetdate-child/functions.php to show it before the name:
COPY CODEadd_action('bp_members_meta', 'kleo_online_status'); function kleo_online_status() { if (kleo_is_user_online(bp_get_member_user_id())) { echo "Online"; } else { echo "Offline"; } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
You can add this to sweetdate-child/functions.php. This won’t actually add a restriction but it will allow you to display the text in front-end and customize the setting from Sweetdate – Memberships like other restrictionsCOPY CODEadd_filter('kleo_pmpro_level_restrictions', 'my_restriction_option'); function my_restriction_option($settings) { $settings[] = array( 'title' => __('Restrict users from adding media to their profile using rtMedia or bpAlbum','kleo_framework'), 'front' => __('Add media to your profile','kleo_framework'), 'name' => 'my_setting_alias' ); return $settings; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
I customized it to match the theme structure. You need to do the following steps to fix all styling:
– Add this code to sweetdate-child/functions.phpCOPY CODEremove_action('bp_after_member_header','prorevs_add_star_loop_header'); add_action('bp_before_member_header_meta','prorevs_add_star_loop_header'); remove_action('bp_directory_members_actions','prorevs_add_star_loop_content'); add_action('bp_members_meta','prorevs_add_star_loop_content', 11); function my_prorevs_member_header() { if ($GLOBALS['bp']->current_component == "reviews") { return false; } else { ?> <div class="generic-button"> <a class="add-reviews button" title="Add reviews for this user." href="<?= bp_get_displayed_user_link() ?>reviews/">Add Review</a> </div> <?php } } remove_action('bp_member_header_actions', 'prorevs_member_header'); add_action('bp_member_header_actions', 'my_prorevs_member_header');
– Add this code to WP Admin – Sweetdate – Styling options – Quick css:
COPY CODE#profile .rating-top {margin-top:15px;clear:left; display:block} #profile .rating-top img {vertical-align: middle;} .activity-inner .ratingtop {display:block} .activity-inner .ratingtop img {display:inline-block;} .activity #activity-stream div.activity-avatar { float: left; position: relative; z-index: 1; } .activity #activity-stream li { border-left: 1px solid #e5e5e5; list-style: none outside none; margin: 0 0 0 25px; padding: 30px 0 0;float:left; } #activity-stream div.activity-avatar img { border-radius: 50%; -moz-border-radius: 50%; -webkit-border-radius: 50%; display: inline-block; } #activity-stream div.activity-avatar img {width:60px;} #activity-stream div.avatar, #activity-stream div.activity-avatar { height: 60px;width: 60px; left: -30px; margin-bottom: 20px;overflow: hidden; position: relative; z-index: 1;border: 2px solid #fff;border-radius: 50%; -moz-border-radius: 50%; -webkit-border-radius: 50%;-webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterAs I said, you have there all you need, just copy/paste operation. Here it is just in case..
COPY CODE<div id="myModal2" class="reveal-modal"> <h2>Awesome. I have it.</h2> <p class="lead">Your couch. It is mine.</p> <p>Im a cool paragraph that lives inside of an even cooler modal. Wins</p> <a class="close-reveal-modal">×</a> </div> <a href="#" class="button" data-reveal-id="myModal2">Click Me For A Modal</a>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterBy css:
COPY CODE#groups .group-item .circular-item {display:none;}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterYou are getting an 404 error on all site? I don’t understand. This code will remove the “Profile” tab from the navigation menu in a member profile(not your own so you can still edit it):
This snippet added to sweetdate-child/functions.php
COPY CODEfunction my_remove_profile_nav() { global $bp; if (!bp_is_my_profile()) { bp_core_remove_nav_item( 'profile' ); } } add_action( 'bp_setup_nav', 'my_remove_profile_nav' );
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterIf you mean the dropdown fields:
COPY CODEform.custom div.custom.dropdown ul li.selected { background: none repeat scroll 0 0 #CDEBF5; color: #000000; } form.custom div.custom.dropdown ul li { background: #ffffff; color: #555555; } .form-search.custom div.custom.dropdown a.current { background-color: #FFFFFF; border: 1px solid #DDDDDD; color: #141414; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi, In next theme version you will be able to accomplish that with a shortcode to display members carousel like this:
[kleo_members_carousel width=94 type=new total=10]
You need to edit your Home page and remove all other shortcodes from it.To increase avatar size in members directory add this css to Sweetdate – Styling options – Quick css:
COPY CODE#members-list .search-item .avatar { width: 120px; height:120px; }
Then you need to add you custom size also to this template file: sweetdate/members/members-loop.php around line 28:
<?php bp_member_avatar('type=full&width=94&height=94&class='); ?>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi MarkNilsson, as a quick fix until the next update you can put the following line in Sweetdate/Styling options/Quick css box:
COPY CODE.kleo-page { display: inherit;}
Regards,
RobertHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi, This way it works:
COPY CODEfunction my_remove_profile_nav() { if (!bp_is_my_profile()) { remove_action( 'bp_setup_nav', 'bp_album_setup_nav' ); } } add_action( 'bp_setup_nav', 'my_remove_profile_nav', 9 );
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterYou can remove this part from members/members-loop.php file:
COPY CODE<div class="bp-member-dir-buttons"> <?php do_action('bp_directory_members_item_last');?> </div>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterAdd this css:
COPY CODE#members-list .three.columns:nth-child(4n+1) { clear: left; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterYou changed you structure and we really cannot guess what people are doing in their theme. As you modified it the #header div is empty
COPY CODE#header {display:none;}
Please use Firebug for Firefox of Chrome to inspect your elements css
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterWidgets do not work this way. Only template files work that way.
You could remove the default widget and add add your code for the custom widget in sweetdate-child/functions.php. You can remove the mailchimp widget like this:COPY CODEfunction unregister_default_widgets() { unregister_widget('SQueen_Mailchimp_Widget'); } add_action('widgets_init', 'unregister_default_widgets', 11);
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi, Thanks you,
You just need to add this function that overrides the default one:COPY CODEfunction sweetdate_widgets_init() { register_sidebar( array( 'name' => __( 'Main Sidebar', 'kleo_framework' ), 'id' => 'sidebar-1', 'description' => __( 'Default sidebar', 'kleo_framework' ), 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', ) ); register_sidebar(array( 'name' => 'Footer Widget 1', 'id' => 'footer-1', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); register_sidebar(array( 'name' => 'Footer Widget 2', 'id' => 'footer-2', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); register_sidebar(array( 'name' => 'Footer Widget 3', 'id' => 'footer-3', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); register_sidebar(array( 'name' => 'Footer Widget 4', 'id' => 'footer-4', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); register_sidebar(array( 'name' => 'Footer Level 1 - Widget 1', 'id' => 'footer-level1-1', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); register_sidebar(array( 'name' => 'Footer Level 1 - Widget 2', 'id' => 'footer-level1-2', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); register_sidebar(array( 'name' => 'Footer Level 2', 'id' => 'footer-level-2', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); register_sidebar(array( 'name' => 'Shop Sidebar', 'id' => 'shop-1', 'before_widget' => '<div id="%1$s" class="widgets clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', )); }
And by default it is a H5
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterThis is the code that should be added, with you changes on the field names:
COPY 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( 'I am', 'Type', 'City' ); }
Because it does a caching on those fields you can add this also to sweetdate-child/functions.php and remove it once the new fields appear:
COPY CODEdelete_transient( 'kleo_bp_meta_fields');
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterTry with them in the first function:
COPY CODEadd_action(‘bp_after_member_header’,'kleo_my_custom_tab’, 0); function kleo_my_custom_tab() { global $bp_tabs; $bp_tabs = array(); /* Change About me to About Us & Add Our Photos tab on profile */ $bp_tabs['base'] = array( ‘type’ => ‘regular’, ‘name’ => apply_filters(‘kleo_extra_tab2′,__(‘About Us’, ‘kleo_framework’)), ‘group’ => ‘About Us’, ‘class’ => ‘regulartab’ ); $bp_tabs[] = array( ‘type’ => ‘regular’, ‘name’ => bp_get_member_profile_data( ‘field=Partner 1: First Name’ ), ‘group’ => ‘Partner1′, ‘class’ => ‘regulartab’ ); $bp_tabs[] = array( ‘type’ => ‘regular’, ‘name’ => bp_get_member_profile_data( ‘field=Partner 2: First Name’ ), ‘group’ => ‘Partner2′, ‘class’ => ‘regulartab’ ); /* rtMedia tab – only if plugin installed */ if (class_exists(‘RTMedia’)) { $bp_tabs['rtmedia'] = array( ‘type’ => ‘rt_media’, ‘name’ => __(‘Our photos’, ‘kleo_framework’), ‘class’ => ‘mySlider’ ); } /* Bp-Album tab – only if plugin installed */ elseif (function_exists(‘bpa_init’) AND sq_option(‘bp_album’, 1) == 1) { $bp_tabs['bp-album'] = array( ‘type’ => ‘bp_album’, ‘name’ => __(‘Our Photos’, ‘kleo_framework’), ‘class’ => ‘mySlider’ ); }
Seems the code didn’t copied well. Do the changes in your existing code
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterTo change the layout width you need to edit in app.css around line 38 like this example:
COPY CODE.row { width: 1170px; margin: 0 auto; }
Regards.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterIf you are talking about the home slider that is not added with a shortcode, you can add this to sweetdate-child/functions.php
COPY CODEadd_action('after_setup_theme','my_slider_mod'); function my_slider_mod() { remove_action('kleo_after_header', 'kleo_home_revslider') ; if (sq_option('home_rev',0) == 1 && function_exists('putRevSlider') && !is_user_logged_in()) { add_action('kleo_after_header', 'kleo_home_revslider') ; } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
You can add this functionality for all links inside a page or post by putting this code in footer.php, somewhere before the wp_footer() line:COPY CODE<script> jQuery(document).ready(function() { jQuery(".article-content a").prettyPhoto(); }); </script>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
Please add
<?php bp_head(); ?>
in header.php just before wp_head()Then add this css for little styling:
COPY CODE#TB_window {padding:5px} #TB_title {margin-bottom:10px;}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 21, 2013 at 20:33 in reply to: Show username in Members directory instead of full name #4793SQadminKeymasterThis does the trick:
COPY CODE/* Display Username in Directory */ function my_member_username() { global $members_template; return $members_template->member->user_login; } add_filter('bp_member_name','my_member_username');
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
I modified the shortcode to support the opened attribute. It can take as value the item number you want to be opened by default, or “none” value to have al closed.
Example:COPY CODE[kleo_accordion opened="none"] [kleo_accordion_item title="Title"] Accordion Item Content [/kleo_accordion_item] [kleo_accordion_item title="Title2 "] Accordion Item Content 2 [/kleo_accordion_item] [kleo_accordion_item title="Title 3"] Accordion Item Content 3 [/kleo_accordion_item] [/kleo_accordion] [kleo_accordion opened="2"] [kleo_accordion_item title="Title"] Accordion Item Content [/kleo_accordion_item] [kleo_accordion_item title="Title2 "] Accordion Item Content 2 [/kleo_accordion_item] [kleo_accordion_item title="Title 3"] Accordion Item Content 3 [/kleo_accordion_item] [/kleo_accordion]
Until next theme version update this files content:
wp-content/themes/sweetdate/assets/scripts/app.js with this: https://archived.seventhqueen.com/files/app.jswp-content/themes/sweetdate/framework/shortcodes/shortcodes.php with this: https://archived.seventhqueen.com/files/shortcodes.txt
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterI think you added some custom css that might affect this..
Try adding this in Quick css box:COPY CODE.rtmedia-activity-container .rtmedia-list .rtmedia-item-thumbnail .mejs-poster img { display: block; margin-left: 0; margin-top: 0; max-height: inherit; max-width: inherit; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi @adam,
That is interesting and I have created the code you have to enter in your sweetdate-child/functions.phpCOPY CODEadd_action('bp_after_member_header','kleo_my_custom_tab', 0); function kleo_my_custom_tab() { global $bp_tabs; $bp_tabs[] = array( 'type' => 'regular', 'name' => bp_get_member_profile_data( 'field=Test' ), 'group' => bp_get_member_profile_data( 'field=Test' ), 'class' => 'pagetab' ); } /* Add more */ add_action('after_setup_theme','kleo_my_tabs', 1); function kleo_my_tabs() { global $bp_tabs; //remove default tabs $bp_tabs = array(); //add here other tabs as the array examples }
You must remember that you need to replace my “Test” field with your own. And also the value that is inside that field must be a name of a Group of fields.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi, You can add this css to sweetdate-child/style.css or in WP admin – Sweetdate – Styling options – Quick css:
COPY CODE.section-members .two.columns:nth-child(6n+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,
This code added to wp-content/bp-custom.php ges the job doneCOPY CODEfunction my_change_profile_default_subnav() { global $bp; bp_core_new_nav_default(array( 'parent_slug' => $bp->profile->slug, 'screen_function' => 'bp_profile_screen_edit', 'subnav_slug' => 'edit')); } add_action( 'bp_setup_nav', 'my_change_profile_default_subnav' );
but you won’t be able to see other users’s profile tab
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi @gavinthompson
Sorry for the late reply
You request is not skipped and as @JohnDoe said we respond to all requests without exception depending on the topicFor you issue you can add this CSS code to Sweetdate – Styling options – Quick css and adjust the height as you need:
COPY CODE.page-template-page-templatesfront-page-php .rev_slider_wrapper { min-height: 580px; }
You also have a setting in your added Revolution slide to set the slider height
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
I did some changes to a theme file to allow this, so please change the contents of sweetdate/custom_buddypress/bp-functions.php with https://archived.seventhqueen.com/files/bp-functions.txtthen this is the code you need to add to sweetdate-child/functions.php and customize:
COPY CODE//manual number online members add_filter( 'kleo_online_users_count', 'kleo_my_online_users', 10, 2); function kleo_my_online_users($number, $value) { switch ($value) { //ALL MEMBERS ONLINE case FALSE: return '1 MILION'; break; case "Woman": return $number+50000; break; case "Man": return $number+1000; break; default: return $number; break; } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterYou can hide it with css:
COPY CODE.field-visibility-settings-toggle {display:none}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
THis code added to sweetdate-child/functions.php does the trick:COPY CODEfunction remove_public_message_button() { remove_filter( 'bp_member_header_actions','bp_send_public_message_button', 20); } add_action( 'bp_member_header_actions', 'remove_public_message_button' );
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi, You need to add this code to sweetdate-child/functions.php
For the total members:COPY CODEadd_filter( 'bp_get_total_member_count', 'kleo_my_total_members' ); function kleo_my_total_members($number) { return 1000; }
For online users:
COPY CODEadd_filter( 'kleo_online_users_count', 'kleo_my_online_users'); function kleo_my_online_users($number) { return $number+100; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterAdd this css to Sweetdate – Styling options – QUick css:
COPY CODE.kleo-message-count { background: #f00056; } .kleo-friends-req { background: #01a8da; }
NOTE: Please use the inspect tool from the Chrome browswe of Mozilla Firebug to find the CSS styles on your own because is not that hard.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterYou can try:
COPY CODE.top-bar ul.left {float:right}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi, if you want to hide temporary you can simply add in admin/Sweetdate/Styling options/Quick css box the following line:
COPY CODE.widget_kleo_about_us .icon-heart {display: none;}
Regards,
RobertHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterAdd css to Sweetdate – Styling options – Quick css:
COPY CODE#search-bar { background: #f8f8f8 }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 14, 2013 at 21:51 in reply to: How to get rid of the ">" icons in the Footer that appear before each link? #4387SQadminKeymasterHi,
Add this css to Sweetdate – Styling options – Quick css:COPY CODE.widgets-container .widgets ul li:before {content: ""}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
When v.2.2 wil be out, you will able to do it by adding this to sweetdate-child/functions.php and settings how the restrictions will appear from Sweetdate – MembershipsCOPY CODEadd_filter('kleo_pmpro_level_restrictions', 'kleo_extra_pmpro_restrictions'); function kleo_extra_pmpro_restrictions($restrictions) { $restrictions[] = array( 'title' => __('Title that appears on Sweetdate - Memberships','kleo_framework'), 'front' => __('Description in the Levels page','kleo_framework'), 'name' => 'unique_identifier' ); return $restrictions; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
That is part of the theme core framework . There is this filter added that you can manipulate:COPY CODEapply_filters( 'breadcrumb_trail_get_buddypress_items', $trail, $args )
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts