Forum Replies Created
-
Author
-
SQadminKeymaster
Hi,
Add this css to Sweetdate -> Styling options – Quick css and change the color:COPY CODEa [class^="icon-"] {color:red}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi @adam,
You need to add this css to Sweetdate – Styling options – Quick css since it takes styling from the top-link section:COPY CODE.top-links a.button {color: #f00056;}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
You can take advantage of the searching feature to do that and combine it with this plugin Menu Item Visibility ControlOnce you install that plugin you will have in Appearance – Menus a Visibility field for each menu.
You need to create two custom menu links one to show for Man one to show for Woman from here: http://d.pr/i/OU1i
In the link section you will add the path to the search directory when filtering by a specific search criteria(eq. searching for Man when you are creating the Woman menu)In the visibility field you need to add this and modify it accordingly with your field names and values:
COPY CODEbp_get_profile_field_data('field=I am a&user_id='.bp_loggedin_user_id()) == 'Man'
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 17:13 in reply to: Separate the text on top menu from the text in the form #4353SQadminKeymasterWith this you set the color for the form:
COPY CODE.form-search a:not(.button), .form-search.custom input[type="text"], .form-search.custom input[type="password"], .form-search.custom select { color: #000000; }
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 14:07 in reply to: Redirecting WordPress's Login page to a custom login page. #4349SQadminKeymasterTo update without losing your changes you have to use the sweetdate-child theme and to have there all your modified templates.
If you have looked at the existing anchor that triggers the login modal you would have seen it is like this:COPY CODE<a href="#" data-reveal-id="login_panel" class="tiny secondary button radius">LINK
So this is what you need to have: data-reveal-id=”login_panel”
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterTry adding this to wp-content/plugins/bp-custom.php
COPY CODEfunction bbg_change_subnav() { global $bp; $bp->bp_options_nav['activity']['friends']['position'] = 5; } add_action( 'bp_setup_nav', 'bbg_change_subnav', 999 ); function my_change_activity_default_subnav() { global $bp; bp_core_new_nav_default(array( 'parent_slug' => $bp->activity->slug, 'screen_function' => 'bp_activity_screen_friends', 'subnav_slug' => $bp->friends->slug)); } add_action( 'bp_setup_nav', 'my_change_activity_default_subnav' );
This is buddypress related. Please try searching of buddypress forums for similar questions
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
You can upload the .mo file trough an uploading service like https://www.wetransfer.com/ and put the link hereTheme doesn’t have support for RTL by default. We will look over the link you sent. You can try some plugins that do that.
If you have the css that needs to be included for RTL, then you need to add it into header.php just inside the < head > tag like this:COPY CODE<link rel='stylesheet' href='http://path_to_css' type='text/css' media='all' />
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterIf you are using the Paid memberships pro plugin the you can choose who you want to restrict and that includes the non-logged in users. When they click the restricted page they will be redirected to the membership levels page to choose a level.
To change the redirection url to a custom one, add this to sweetdate-child/functions.phpCOPY CODEadd_filter('kleo_pmpro_url_redirect','kleo_pmpro_my_redirect'); function kleo_pmpro_my_redirect($url) { return 'http://my_redirect_url.com'; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterYou mean instead of rtMedia?
This topic shows how to manipulate tabs next to profile image:
https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-imageyou can add this code to sweetdate-child/functions.php
COPY CODEadd_action('after_setup_theme','kleo_my_custom_tabs'); function kleo_my_custom_tabs() { global $bp_tabs; //remove rtmedia unset($bp_tabs['rtmedia'] ); $bp_tabs['bp-album'] = array( 'type' => 'bp_album', 'name' => __('My photos', 'kleo_framework'), 'class' => 'mySlider' ); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterYou can hide those visibility options with Javascript. Add this to footer.php just before the wp_footer() line:
COPY CODE<script> jQuery(document).ready(function() { jQuery("label[for=see-field_adminsonly], label[for=see-field_loggedin]").hide(); }); </script>
For Bp Album only way is to modify core file: wp-content/themes/sweetdate/framework/inc/bp-album/includes/bpa.screens.php around line 70 and leave your desired options only
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 correct css to add and it will also be included in next update:COPY CODE.admin-bar .sticky.fixed {margin-top: 28px;}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi there,
We are releasing tomorrow v.2.2 where you will be able to add an action to sweetdate-child/functions.php and show extra icons without modifying the templates. Here is the code example to add:COPY CODEadd_action('kleo_extra_social_icons','kleo_my_extra_social_icons'); function kleo_my_extra_social_icons() { ?> <a href="http://link_to_social_website.com" class="has-tip tip-bottom" data-width="210" title="Find us on My other social site"><i class="icon-facebook-sign icon-2x"></i></a> <?php }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 11, 2013 at 00:07 in reply to: Color of the register/search form background on the Home Page. #4145SQadminKeymasterOk, great. If anybody else is interested this is the css code:
COPY CODE.form-header { border-left: 10px solid rgba(31, 168, 209, 0.3); border-right: 10px solid rgba(31, 168, 209, 0.3); border-top: 10px solid rgba(31, 168, 209, 0.3); } .form-search, .form-header { background: none repeat scroll 0 0 #0296C0; } .form-search { border-left: 10px solid rgba(31, 168, 209, 0.3); border-right: 10px solid rgba(31, 168, 209, 0.3); } .form-search.custom div.custom.dropdown a.selector, .form-search.custom div.custom.dropdown a.current, .form-search.custom select { border: 1px solid #1FA8D1; } .form-search.custom div.custom.dropdown a.current, .form-search.custom input[type="text"], .form-search.custom input[type="password"], .form-search.custom select { background-color: #1FA8D1; }
With latest carousel:
COPY CODE.form-footer { background: url("../images/patterns/gray_pattern.gif") repeat scroll 0 0 #F8F8F8 !important; border-bottom: 10px solid #FAFAFA !important; border-left: 10px solid #FAFAFA !important; border-right: 10px solid #FAFAFA !important; color: #777777 !important; }
Without carousel:
COPY CODE.form-footer { background: none !important; border-bottom: none !important; border-left: none !important; border-right: none !important; color: #777777 !important; }
To make it transparent you need to set the background on the form in rgba form(rgba(31, 168, 209, 0.3);) instead of hex
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterThis is the css you need to modify to style it separately:
COPY CODE.form-header { border-left: 10px solid rgba(31, 168, 209, 0.3); border-right: 10px solid rgba(31, 168, 209, 0.3); border-top: 10px solid rgba(31, 168, 209, 0.3); } .form-search, .form-header { background: none repeat scroll 0 0 #0296C0; } .form-search { border-left: 10px solid rgba(31, 168, 209, 0.3); border-right: 10px solid rgba(31, 168, 209, 0.3); } .form-search.custom div.custom.dropdown a.selector, .form-search.custom div.custom.dropdown a.current, .form-search.custom select { border: 1px solid #1FA8D1; } .form-search.custom div.custom.dropdown a.current, .form-search.custom input[type="text"], .form-search.custom input[type="password"], .form-search.custom select { background-color: #1FA8D1; }
To make it transparent you need to set the background on the form in rgba form(rgba(31, 168, 209, 0.3);) instead of hex
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
Please replace the contents of sweetdate/framework/classes/SQueen.php with https://archived.seventhqueen.com/files/SQueen.txtThen add to your sweetdate-child/functions.php:
COPY CODEadd_filter('kleo_gfont_extra_params','my_special_chars'); function my_special_chars() { return '&subset=latin,latin-ext'; }
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 css to Sweetdate-> Styling options -> Quick cssCOPY CODE.membership .pricing-table .price, .membership .bullet-item:before, .button.link-button {color:#0095C2}
Change #0095C2 with your own color
The “Popular” label it is an image located in wp-content/themes/sweetdate/paid-memberships-pro/images/pop.png
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHello and thanks for the kind words.
Do you have a caching plugin? You must edit the files via FTP or something similar that changes the file on the hosting server.
Normally you should have activated the sweetdate-child theme and copy the file you want to edit in the exact same location.If you want to get rid of those features, you can disable those specific Buddypress components from Settings -> Buddypress.
After that you still need to add this code to disable the buttons for non-logged in users. Add it to sweetdate-child/functions.phpCOPY CODEadd_action('after_setup_theme','kleo_remove_buttons'); function kleo_remove_buttons() { //non-logged in users remove_action('kleo_bp_header_actions', 'kleo_bp_member_buttons'); // Friends button remove_action( 'bp_member_header_actions', 'bp_add_friend_button', 5 ); // Activity button remove_action( 'bp_member_header_actions', 'bp_send_public_message_button', 20 ); // Messages button remove_action( 'bp_member_header_actions', 'bp_send_private_message_button', 20 ); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
We did some test and privacy seems to be working fine. For example we set an image to be private and then logged out and went to that profile and the image doesn’t appear.
Maybe you have some caching plugin.. just a thoughtYou can change the limit. We added a filter there: apply_filters(‘kleo_rtmedia_photo_limit’,100);
You can change it by adding a code like this to sweetdate-child/functions.php:COPY CODEadd_filter('kleo_rtmedia_photo_limit','kleo_rtmedia_limit'); function kleo_rtmedia_limit() { return 20; }
We did some tests to check the images that aren’t loading. How did you made the image tab to be the first? You should followed this topic https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image and moved the images tab first 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' ); }
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 modifies the length of the excerpt:COPY CODE// group custom excerpt add_filter( 'bp_excerpt_length', 'kleo_my_custom_group_excerpt'); function kleo_my_custom_group_excerpt($length) { return 225; }
Modify the 225 length to whatever you want
Also you need to add this css to Sweetdate – Styling options – Quick css to disable the limited height:
COPY CODE#groups-list .search-body {height:auto;}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
That is a styled by css default Buddypress widget and can’t be easily modified.
But this can be done by css. Add this to Sweetdate -> Styling options -> Quick css:COPY CODE#members-list-options, .widget_bp_core_members_widget #members-list .item-meta {display:none;}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi Guys,
Please add this css to Sweetdate -> Styling options -> Quick css:COPY CODE#groups-list .four.columns:nth-child(3n+1) { clear: left;} #groups-list .search-item h5 { height: auto; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterFollowing the topic you should end you adding this to sweetdate-child/functions.php
COPY CODEadd_action('after_setup_theme','kleo_my_custom_tabs'); function kleo_my_custom_tabs() { global $bp_tabs; $bp_tabs = array(); $bp_tabs['base'] = array( 'type' => 'regular', 'name' => __('Base', 'kleo_framework'), 'group' => 'Base', 'class' => 'regulartab' ); $bp_tabs[] = array( 'type' => 'regular', 'name' => __('Summary', 'kleo_framework'), 'group' => 'Summary', 'class' => 'regulartab' ); $bp_tabs[] = array( 'type' => 'regular', 'name' => __('Physical', 'kleo_framework'), 'group' => 'Physical', 'class' => 'regulartab' ); $bp_tabs[] = array( 'type' => 'regular', 'name' => __('Location', 'kleo_framework'), 'group' => 'Location', 'class' => 'regulartab' ); /* rtMedia tab - only if plugin installed */ if (class_exists('RTMedia')) { $bp_tabs['rtmedia'] = array( 'type' => 'rt_media', 'name' => __('My photos', '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' ); } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterThat changes the input type text and type password, Maybe you want also the select:
COPY CODE.form-search.custom input[type="text"], .form-search.custom input[type="password"], .form-search.custom div.custom.dropdown a.current {color: #fff}
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,
You need to add this to sweetdate-child/functions.php and to have the child theme activatedCOPY CODEadd_action('kleo_bp_after_profile_name', 'my_profile_button'); function my_profile_button() { echo '<a href="#" class="button radius show-for-small">My button</a>'; }
That should show the button only on mobile
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterMaybe:
COPY CODEadd_filter('kleo_bp_meta_fields', 'my_extra_data_mb_loop'); function my_extra_data_mb_loop($output) { global $members_template; array_unshift($output,'<span style="text-align:center">'.$members_template->member->user_login.'</span>'); return $output; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
I have added a line to the facebook functions file that will allow you to customize user data before it is added to wordpress. Please replace your framework/functions/facebook_login.php content with the one from this file: https://archived.seventhqueen.com/files/facebook_login.txtAfter that you are able to modify the data that is saved for the user with a filter added to your sweetdate-child/functions.php
COPY CODEadd_filter('kleo_fb_register_data', 'kleo_custom_fb_data'); function kleo_custom_fb_data($userdata) { /* * $userdata is an array with the values that will be saved and looks like this: $userdata = array( 'user_login' => 'facebook_user', 'user_email' =>'emailfrom@facebook.com', 'user_pass' => 'already_generated_pass', 'display_name' =>'My nice name'); */ //change user data example $userdata['display_name'] = 'Not a real name'; $userdata['user_login'] = 'generate_me_an_unreal_username'; return $userdata; }
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 -> Styling options -> Quick css:
COPY CODE.link-list li:last-child { display: none; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterFor the top links bottom border add this css to Sweetdate -> Styling options -> Quick css:
COPY CODE.top-links {border-bottom: 1px solid #fff}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi, The text color is set by “Top Menu Link Color”
If you want to use a different color than the one set for the Top Menu Link Color add this css to Sweetdate -> Styling options -> Quick css:COPY CODE.form-search.custom input[type="text"], .form-search.custom input[type="password"] {color: #fff}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterYou can change it by adding this code snipped to sweetdate-child/functions.php
COPY CODE//Redirect only guests to register page add_filter('kleo_pmpro_url_redirect', 'kleo_my_custom_guest_redirect'); function kleo_my_custom_guest_redirect($redirect) { if (!is_user_logged_in()){ return home_url().'/register'; } else { return $redirect; } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi, Quick fix for you 🙂
Add this css in Sweetdate -> Styling options -> Quick css:
COPY CODE.fixed.log-entries {position:static;}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterA solution for this can be do to it from css for each widget. You need to inspect each element with Firebug for example and see widget wrapper class. For example to the search widget add a search icon before the title:
COPY CODE.widget_search h5:before {content: "";font-family: FontAwesome;}
Look here for icons and what to put inside the content attribute:
http://astronautweb.co/snippet/font-awesome/Add the css to Sweetdate -> Styling options -> Quick css
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 CODEadd_filter('kleo_bp_meta_fields', 'my_extra_data_mb_loop'); function my_extra_data_mb_loop($output) { global $members_template; array_unshift($output,$members_template->member->user_login); return $output; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
Read this topic that shows you how to handle those tabs:
https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image
Your code should be something like:add_action('after_setup_theme','kleo_my_actions'); function kleo_my_actions() { global $bp_tabs; $bp_tabs['looking-for'] = array( 'type' => 'cite', 'name' => __('Looking for new name', 'kleo_framework'), 'group' => 'Looking for', 'class' => 'citetab' ); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi,
here is a nice and easy fix. Add this css to Sweetdate-> Styling optioins -> Quick css:COPY CODE#header .eight.columns:not(.login-buttons) { clear: left; width: 100%; }
Yes you can disable comments on individual pages from the Discussions section in the page edit. If you can’t see that section enable it from the top of the page in Screen options
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi, This should be your code. I saw some extra spaces and bad quotes
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( 'Proffession', 'City' ); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterHi
This is probably a hosting issue. try talking with the hosting company to guide you on how to resolve this.
I have found that this code added to .htaccess file in your wordpress root install might help:COPY CODE<FilesMatch "^(wp-login|wp-log)\.php$"> Header set Set-Cookie wordpress_test_cookie=WP+Cookie+check </FilesMatch>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadminKeymasterThat can be achieved with: http://wordpress.org/plugins/buddypress-sidebar/
If you don’t want a sidebar in the groups section try adding this code to your sweetdate-child/functions.php
COPY CODEadd_action('after_setup_theme', 'kleo_disable_group_sidebar'); function kleo_disable_group_sidebar() { if(BP_GROUPS_SLUG == bp_current_component()) { remove_action('kleo_buddypress_before_content', 'kleo_buddypress_sidebar'); remove_action('kleo_buddypress_after_content', 'kleo_buddypress_sidebar'); } }
And modify page-parts / buddypress-before-wrap.php line 27 to:
<div class="<?php if (sq_option('buddypress_sidebar','right') == 'no' OR BP_GROUPS_SLUG == bp_current_component()) echo 'twelve'; else echo 'eight'; ?> columns">
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:
COPY CODE.regulartab dd p, .regulartab dd {line-height:20px;}
3. You shoud replace kle_one_third shortcode with kleo_one
Example:COPY CODE[kleo_one][kleo_img_rounded src="http://seventhqueen.com/demo/sweetdatewp/wp-content/uploads/2013/06/small_thumb_03.png"] [kleo_h4]Becca Morgan[/kleo_h4]Founder Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. [kleo_icon icon="twitter-sign" size=2x] [kleo_icon icon="facebook-sign" size=2x] [kleo_icon icon="pinterest-sign" size=2x] [/kleo_one]
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts