Forum Replies Created
-
Author
-
SQadmin
KeymasterHi,
I think the easiest method is to edit page-parts/general-register-modal.php (copy it to sweetdate-child and modify it there)
at line 24 remove alert from class attribute andCOPY CODE<i class="icon-<?php echo apply_filters('kleo_register_button_icon','heart'); ?>"></i>
Another option is to define a style for the alert button in Sweetdate-> Quick css : button.alert {background#HEX}
and remove the icon by adding this into sweetdate-child.php:
add_filter(‘kleo_register_button_icon’, function() { return ”;})Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi, for Google Chrome issue as a quick fix you can put in Seetdate/Styling options/Quick css box the following line:
COPY CODE.reveal-modal .button { padding-left: 10px; padding-right: 10px; }
Regards,
RobertHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterTry the code bellow that adds it only to your own profile and shows beneath the image
COPY CODEadd_action('kleo_bp_header_actions', 'my_prog_bar', 11); function my_prog_bar() { if (function_exists('bppp_progression_block') AND bp_is_my_profile()) { echo '<div class="clearfix"></div>'; bppp_progression_block(); } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterYou could use an action to render that. Add this to sweetdate-child/functions.php
add_action('kleo_bp_header_actions', 'my_prog_bar', 11); function my_prog_bar() { if (function_exists('bppp_progression_block')) { bppp_progression_block(); } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
Maybe it works this way to redirect. Add the following code to sweetdate-child/functions.phpCOPY CODEadd_filter('login_redirect', 'redirect_previous_page', 10); function redirect_previous_page(){ $request = $_SERVER["HTTP_REFERER"]; $req = explode(get_option('siteurl'),$request); if (isset($req[1])){ $redirect = site_url( $req[1], 'login_post' ); } else { $redirect = site_url( '', 'login_post' ); } return $redirect; }
PS: Thanks for the awesome comment 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
The syntax for icon is like this:COPY CODE<i class="icon icon-heart"></i> My menu
You can replace the icon: icon-heart with the existing Fontawesome icons:
http://fortawesome.github.io/Font-Awesome/icons/To disable menu hover you can set the exact same color for the hover in Sweetdate -> Styling
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
You need to do two things to add the lang parameter:
1. Replace the content of the main theme file: sweetdate/custom_buddypress/kleo-bp-search.php with this one:
https://archived.seventhqueen.com/files/kleo-bp-search.txt2. add this code in your sweetdate-child/functions.php:
COPY CODEadd_action('kleo_bp_search_add_data','my_translated_field'); function my_translated_field() { if (defined('ICL_LANGUAGE_CODE')) { echo "<input type='hidden' name='lang' value='".ICL_LANGUAGE_CODE."'>"; } }
That should do the trick.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
You can edit the file members/single/messages/compose.php and the subject line is this one:COPY CODE<input type="text" name="subject" id="subject" value="<?php bp_messages_subject_value(); ?>" />
You could add a space after or if you don’t want to show the subject then make it a hidden input with a default value like PM:
COPY CODE<input type="hidden" name="subject" id="subject" value="PM" />
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterIf you want to change the group name then go to Users -> Profile fields and rename the existing groups to match your language.
Then you need to change the tabs to show that translated groups. Add this to your sweetdate-child/functions.php. Just rename the group names here also:
COPY CODEadd_action('after_setup_theme','kleo_my_actions'); function kleo_my_actions() { global $bp_tabs; $bp_tabs = array(); $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', 'kleo_framework')), 'class' => 'citetab' ); $bp_tabs['base'] = array( 'type' => 'regular', 'name' => apply_filters('kleo_extra_tab2',__('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 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 solutionSQadmin
KeymasterPlease check this topic if you want to add the renamed tabs to the profile:
https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image
So to display the renamed group you should add this snippet:COPY CODEadd_action('after_setup_theme','kleo_my_actions'); function kleo_my_actions() { global $bp_tabs; $bp_tabs['looking-for'] = array( 'type' => 'cite', 'name' => __('My new tab', 'kleo_framework'), 'group' => __('My new tab', 'kleo_framework'), 'class' => 'citetab' ); }
For the photos replace the contents of this file bp_custom/class-bp-tabs.php in the parent theme with this one:
https://archived.seventhqueen.com/files/class-bp-tabs.txtHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
This snippet added to sweetdate-child/functions.php should do the trick: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 solutionSQadmin
KeymasterHi,
1. You can do this by adding the following snippet in sweetdate-child/funtions.hpCOPY CODEfunction kleo_new_wp_login_url() { return home_url(); } add_filter('login_headerurl', 'kleo_new_wp_login_url'); function kleo_new_wp_login_title() { return get_option('blogname'); } add_filter('login_headertitle', 'kleo_new_wp_login_title');
2. That text is found in sweetdate/registration/register.php at line 34. Copy the file in your child theme and modify it there(keep the same folder structure)
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi, You can already do that by adding this to sweetdate-child/functions.php:
COPY CODEadd_action('after_setup_theme','kleo_my_actions'); function kleo_my_actions() { add_filter('kleo_modal_login_redirect','my_custom_redirect'); } function my_custom_redirect() { return $_SERVER['REQUEST_URI']; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
You need to have the child theme activated. Not two themes active.
I have posted for you the code above to rename the tab but I’ll copy/paste it again:COPY CODE<?php add_action('after_setup_theme','kleo_my_actions'); function kleo_my_actions() { global $bp_tabs; $bp_tabs['rtmedia'] = array( 'type' => 'rt_media', 'name' => __('My work', 'kleo_framework'), 'class' => 'mySlider' ); $bp_tabs['social'] = array( 'type' => 'regular', 'name' => __('Social', 'kleo_framework'), 'class' => 'regulartab' ); } ?>
Delete whatever you have in sweetdate-child/functions.php and add the above code. You can then add the login redirect code
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
So you want to use both of the plugins and just display bp-media.
Make sure you are adding the code like this: https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-imagebecause you need that add_action line, that function and the global $bp_tabs inside the function
You need to have this inside the function:COPY CODEglobal $bp_tabs; $bp_tabs['bp-album'] = array( 'type' => 'bp_album', 'name' => __('Photos', 'kleo_framework'), 'class' => 'mySlider' ); $bp_tabs['rtmedia'] = array();
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
To hide the age you should have something like this in sweetdate-child/functions.php:COPY CODEadd_action('after_setup_theme','kleo_remove_actions'); /** * Override existing actions * Use these functions to replace/remove existing actions * @since Sweetdate 1.3 */ function kleo_remove_actions() { add_filter('kleo_bp_meta_fields','my_remove_age'); /* For example uncomment the line bellow to disable matching on member profile */ //remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match'); } function my_remove_age($output) { //remove the Age form array unset($output['age']); return $output; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
We disabled this by default,
Please add this in your sweetdate-child/functions.php to enable the menu:COPY CODEadd_action( 'admin_menu', 'bp_album_add_admin_menu' );
It will appear in the WP main menu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
Logo react like any image on the site, it’s fill up all the column space. You can reset this by putting exact dimmensions of your logo in Sweetdate/Styling options/Quick css box:COPY CODE#logo img { width: 80px; height: 50px; }
ps: We still recommend the default size 294×108 like this example: http://d.pr/i/gDul
Regards,
RobertHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
You need to add this to Sweetdate -> Styling options -> Quick cssCOPY CODE.sliderEvent .label.alert { background-color: #F00056; }
Cheers
PS. Change the hex with your desired color
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterTo change the order of the tabs we can remove the default added tabs by reinitializing the array with $bt_tabs = array(); and the adding our own tabs:
COPY CODEadd_action('after_setup_theme','kleo_my_actions'); function kleo_my_actions() { global $bp_tabs; $bp_tabs = array(); $bp_tabs['base'] = array( 'type' => 'regular', 'name' => apply_filters('kleo_extra_tab2',__('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 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' => __('My photos', 'kleo_framework'), 'class' => 'mySlider' ); } $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' ); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 10, 2013 at 17:07 in reply to: Member Directory Page – About Me Text and other meta fields #1259SQadmin
KeymasterHello and thanks,
You can change the info that displays under the name and the details field by adding this to your sweetdate-child/functions.php file:COPY CODE//members page fields add_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 a', 'Marital status', 'City' ); }
Also if the fields don’t appear add this line, reload the members page and you can remove the line after that(we have added a caching on those fields for better performance):
COPY CODEdelete_transient( 'kleo_bp_meta_fields' );
Just replace those profile field names in the code with our one custom ones.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi Jeremie,
I really tried to give you as much info to accomplish what you need and I don’t think by that you can say I don’t care but anyway let’s take the initial questions again and see where you have problems:1. How can I make the main menu look a bit bigger than they are right now?
To do that you don’t need to edit any file, you just need to go to your WordPress admin and then click the “Sweetdate” menu, then go to “Styling options” then at the bottom of the page you have “Quick css” section where you need to paste the code:COPY CODE.top-bar ul > li a:not(.button) {font-size:14px;}
3. When a user login, he or she should be redirect to their profile, how can I achieved that?
This one you said it works.We will release an update Monday that will include some changes to the way the profile tabs are rendered and it will allow to reorder the tabs or add another with just some small lines of code.
Let me answer the questions bellow Monday when the new update will be available. Hope that is ok with you. Thanks2. The site has a love heart allover, how can I remove that since I’m using the theme as project management platform.
4. When users are on their profile area, they need to see the about me tab immediately instead of clicking to see it. How can I achieved that?
5. Last but not the least, I’ve been having trouble with the profile tabs, only the about me shows next to the photos even when I’ve added all the info. How can I shop up the other tabs?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
Yes it is.
Just add this snippet to your sweetdate-child/functions.php file under wp-content/themes:COPY CODEfunction bp_restrict_email_domains_validate_user_signup( $result ) { if ( bp_restrict_email_domains_is_email_address_safe( $result['user_email'] ) ) $result['errors']->add('user_email', __('You cannot use that email address to signup.', 'kleo_framework' ) ); return $result; } add_filter( 'bp_core_validate_user_signup', 'bp_restrict_email_domains_validate_user_signup' ); function bp_restrict_email_domains_is_email_address_safe( $user_email ) { $allowed_names = array( '.co.uk', 'gmail.com' ); if ( is_array( $allowed_names )) { $email_domain = strtolower( substr( $user_email, 1 + strpos( $user_email, '@' ) ) ); foreach ( (array) $allowed_names as $allowed_domain ) { if ( strstr( $email_domain, $allowed_domain ) || ( strstr( $allowed_domain, '/' ) AND preg_match( $allowed_domain, $email_domain ) ) ) return false; } } return true; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi if you are using the login modal it has a filter applied for the redirection.
The modal is found in sweetdate/page-parts/general-login-modal.php
You can manually edit the parameter for wp_login_url() function:COPY CODEform action="<?php echo wp_login_url(apply_filters('kleo_modal_login_redirect', '') ); ?>"
or use the filter in your functions.php:
COPY CODEadd_filter('kleo_modal_login_redirect', 'my_redirect'); function my_redirect() { return 'http://mysite/?param=val'; }
If you are not using the modal then u can do like this:
COPY CODEadd_filter("login_redirect","kleo_redirect_to",100,3); function kleo_redirect_to($redirect_to_calculated,$redirect_url_specified,$user){ return 'http://my_url'; }
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHI,
1. To add those codes you have to connect to your server by FTP and go tp wp-content/themes
There you should have you main theme: sweetdate and child theme: sweetdate-child folders.
If you don’t have the child theme you should install and activate it instead of the main theme.
If you have a Cpanel powered hosting you can login and use the File browser instead of FTP
2. To increase the size do exactly as I wrote above. There is no file to edit. It is from the WordPress Admin. Just follow the menu instruction
3. To have one particular tab selected on page load add this to sweetdate-child/functions.php:COPY CODEadd_filter('kleo_bp_profile_default_top_tab','my_default_tab'); function my_default_tab() { return 'my-photos'; }
4. Take a look at this post: https://archived.seventhqueen.com/forums/topic/how-to-disable-comment-form-on-select-pages
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi again,
I’m back with a small fix for the nested comments until next update will be available.You nedd to edit two lines in wp-content/themes/sweetdate/assets/styles/app.css:
On line 735 comment or remove “width: calc(100% – 20px);”
On line 736 comment or remove “width: 100%;”COPY CODE.comment .children { margin: 0; padding: 10px 0 0 20px; position: relative;float:left; /*width: calc(100% - 20px);*/ } .comment .children .comment { position: relative; /*width: 100%;*/ }
Best regards,
RobertHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi and thanks.
1. To increase the menu font you can add the bellow rule to Sweetdate-> Styling options -> Quick css:COPY CODE.top-bar ul > li a:not(.button) {font-size:14px;}
2. To change the heart icon over the images:
Add this to sweetdate-child/functions.php into the remove actions function:COPY CODEadd_filter(‘kleo_img_rounded_icon’, ‘my_custom_icon’);
And then at the end of the file the function:
COPY CODEfunction my_custom_icon () { return ‘camera’; }
To change the heart in the register modal you need to edit ../page-parts/general-register-modal.php and replace “icon-heart” with your desired icon from fontawesome:http://fortawesome.github.io/Font-Awesome/icons/
3. Add this to your sweetdate-child/functions.php
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 bp_core_get_user_domain($user->ID ); else return $redirect_to_calculated; /*if site admin*/ }
4. Make sure to update to 1.4.1 theme version
5. If you have modified the name of your groups then uncomment or add this on your sweetdate-child/functions.php
COPY CODEadd_filter('kleo_extra_tab1', 'custom_tab'); function custom_tab() { return 'Base'; }
This can be modified to show other Group than “Looking for” as in our demo. The above code replaces it with the Base group
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHello,
You can do this using only one Home page but to put conditions on the content to show.
I have created for you 2 new shortcodes that we will also include in our next update.
Add the following lines to your functions.php:COPY CODE/*-----------------------------------------------------------------------------------*/ /* Restrict content /*-----------------------------------------------------------------------------------*/ if (!function_exists('kleo_only_members')) { function kleo_only_members( $atts, $content = null ) { if (is_user_logged_in()) { return do_shortcode($content); } else { return ''; } } add_shortcode('kleo_only_members', 'kleo_only_members'); } if (!function_exists('kleo_only_guests')) { function kleo_only_guests( $atts, $content = null ) { if (!is_user_logged_in()) { return do_shortcode($content); } else { return ''; } } add_shortcode('kleo_only_guests', 'kleo_only_guests'); }
Use them like this in your page:
COPY CODE[kleo_only_members]Content only for members[/kleo_only_members] [kleo_only_guests]Content only for guests[/kleo_only_guests]
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
This shows a 404 error on the admin page:COPY CODE// Hide admin profile pages add_action( 'wp', 'hide_profile_template', 1 ); function hide_profile_template() { global $bp; if(bp_is_profile AND $bp->displayed_user->id == 1 AND $bp->loggedin_user->id != 1) : global $wp_query; $wp_query->set_404(); status_header(404); include(locate_template('404.php')); exit; endif; }
For groups just create the groups with another user.
CheersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
To hide Admin profile you could add this snippet to your sweetdate-child/functions.php:COPY CODE/* Hide admin */ add_action('bp_init', 'kleo_private_admin'); function kleo_private_admin(){ global $bp; if(is_super_admin()) { remove_action("wp_head","bp_core_record_activity"); //id SM is on, remove the record activity hook //then remove the last activity, if present delete_user_meta($bp->loggedin_user->id, 'last_activity'); } } add_action('bp_ajax_querystring','kleo_exclude_users',20,2); function kleo_exclude_users($qs=false,$object=false) { //list of users to exclude $excluded_user='1';//comma separated ids of users whom you want to exclude if($object!='members')//hide for members only return $qs; $args=wp_parse_args($qs); //check if we are listing friends?, do not exclude in this case if(!empty($args['user_id'])) return $qs; if(!empty($args['exclude'])) $args['exclude']=$args['exclude'].','.$excluded_user; else $args['exclude']=$excluded_user; $qs=build_query($args); return $qs; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
You should update to 1.4.1 because I see you are using 1.4
The new version has a small code changed in sweetdate/page-parts/general-login-modal.php at the form tag, action attribute:COPY CODEform action="<?php echo wp_login_url(apply_filters('kleo_modal_login_redirect', '') ); ?>"
Try updating or modifying with the above code.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHello,
Integration with Instagram is not possible.
I found this code snippet that allows you to filter email addresses sent trough private messages:COPY CODE/*remove email addresses from private messages http://webdeveloperswall.com/snippets/buddypress-remove-email-id-from-private-messages */ function wdw_remove_email_from_private_msg($message){ $replacement = "[removed]"; /*if you dont want any replacement text, replace the above line with $replacement = ""; */ return preg_replace("/[^@\s]*@[^@\s]*\.[^@\s]*/", $replacement, $message); /*the code is short and works in most cases but not full proof. Check http://www.linuxjournal.com/article/9585*/ } add_filter('messages_message_content_before_save', 'wdw_remove_email_from_private_msg'); add_filter('messages_message_subject_before_save', 'wdw_remove_email_from_private_msg');
I think you could use it also for profile fields but haven’t tested it:
add_filter( ‘bp_get_the_profile_field_value’, ‘wdw_remove_email_from_private_msg’, 999, 1 );Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
You will have to edit the shortcode to match your needs. You need to add the modified version to your sweetdate-child/functions.php:COPY CODEfunction kleo_status_icon( $atts, $content = null ) { extract(shortcode_atts(array( 'type' => 'total', 'image' => '', 'subtitle' => '', 'link_url' => '', 'link_title' => '' ), $atts)); switch ($type) { case 'total': $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_01.png' : $image; $number = bp_get_total_member_count(); break; case 'members_online': $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_02.png' : $image; $number = bp_get_online_users(); break; case 'women_online': $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_03.png' : $image; $number = bp_get_online_users("Woman"); break; case 'men_online': $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_04.png' : $image; $number = bp_get_online_users("Man"); break; default: if ($type == 'Man') { $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_04.png' : $image; } elseif($type == 'Woman') { $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_03.png' : $image; } else { $image = ($image == '')? get_template_directory_uri().'/assets/images/icons/steps/status_01.png' : $image; } $number = bp_get_online_users($type); break; } $output ='<div class="status three columns mobile-one">'; $output .= '<div data-animation="pulse" class="icon">'; $output .= '<img width="213" height="149" alt="" src="'.$image.'">'; $output .= '</div>'; if ($link_url && $link_title) { $output .= '<a href="'.$link_url.'">'.$link_title.'</a>'; } $output .= '<ul class="block-grid">'; $output .= '<li class="title">'.$number.'</li>'; $output .= '<li class="subtitle">'.$subtitle.'</li>'; $output .= '</ul>'; $output .= '</div>'; return $output; } add_shortcode('kleo_status_icon', 'kleo_status_icon');
and use it in your home page like this:
COPY CODE[kleo_status_icon type="total" link_title="LINK" link_url="#" subtitle="Members in total"]
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterThanks Mimi,
This line should not be there:COPY CODE<body style=”font-family:new century schoolbook;” >
if you want to change the font for you body go to Sweetdate -> Styling options
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterYou can put the buttons from header:
COPY CODE<?php if (function_exists('bp_is_active')): ?> <li class="relative"><a href="<?php bp_loggedin_user_link(); ?>" class="tiny secondary button radius"><i class="icon-user hide-for-medium-down"></i> <?php _e("PROFILE", 'kleo_framework'); ?></a><div class="kleo-notifications"><?php if( bp_is_active('messages') && messages_get_unread_count() > 0 ) { ?><a href="<? echo bp_loggedin_user_domain().'messages/'; ?>" data-width="210" title="<?php _e("New messages", 'kleo_framework');?>" class="kleo-message-count has-tip tip-left"><?php echo messages_get_unread_count(); ?></a><?php } ?><?php if (bp_is_active('friends') && bp_friend_get_total_requests_count() > 0): ?> <a href="<? echo bp_loggedin_user_domain().'friends/requests'; ?>" data-width="210" title="<?php _e("Friend requests", 'kleo_framework');?>" class="kleo-friends-req has-tip tip-right"><?php echo bp_friend_get_total_requests_count(); ?></a><?php endif; ?> </div></li> <?php endif; ?> <li><a href="<?php echo wp_logout_url(get_bloginfo('url')); ?> " class="tiny button radius"><i class="icon-off hide-for-medium-down"></i> <?php _e("LOG OUT", 'kleo_framework'); ?></a></li> <?php else: ?> <li><a href="#" data-reveal-id="login_panel" class="tiny secondary button radius"><i class="icon-user hide-for-medium-down"></i> <?php _e("LOG IN", 'kleo_framework'); ?></a></li> <?php if(get_option('users_can_register')) { ?> <li><a href="#" data-reveal-id="register_panel" class="tiny button radius"><i class="icon-group hide-for-medium-down"></i> <?php _e("SIGN UP", 'kleo_framework'); ?></a></li> <?php } ?>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterThanks for your suggestion. We will add a topic with that
The looking for that is a Group in Users -> Profile fields. To change the group you want to show there is a piece of code in the sweetdate-child/functions that you need to uncomment and change the Group name you want to use.
It looks like this:COPY CODEadd_filter('kleo_extra_tab1', 'custom_tab'); function custom_tab() { return 'Base'; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 1, 2013 at 11:51 in reply to: Profile Search Results Color & Group Counter Carousel Color #1113SQadmin
KeymasterHi,
Add this to your quick css section from Sweetdate -> Styling optionsCOPY CODE.pink-text {color: #F00056}
Replace the hex with your color.
In sweetdate/assets/scripts/app.js at line 300 change it to be like this:
COPY CODE'fgColor': kleoFramework.mainColor,
it will take the background color of your main button
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
Keymaster1. I don’t know what you mean but icon should be
COPY CODE<i class="icon icon-heart"></i>
if you want to hide icons on sticky add a css rule:
COPY CODE.sticky .icon {display:none;}
2.
Add this to your child theme functions:COPY CODEfunction kleo_button_video( $atts, $content = null ) { extract(shortcode_atts(array( 'url' => '#', 'style' => 'standard', 'size' => 'standard', 'round' => '0', 'icon' => '' ), $atts)); if(strpos($url,'?') !== false) { $url .= '&wmode=transparent'; } else { $url .= '?wmode=transparent'; } $before = ''; $after = ''; if (!empty($icon)) { $icondata = explode(',', $icon); //if position is set if(isset($icondata[1])) { if ($icondata[1] == 'before') { $before = '<i class="icon-'.$icondata[0].'"></i> '; } else { $after = ' <i class="icon-'.$icondata[0].'"></i>'; } } } $output =''; $vid= esc_attr(trim(preg_replace('/[^(\x20-\x7F)]*/','', $content))).rand(99,999); $output .= '<a data-videoid="'.$vid.'" class="play button'.($size != 'standard'?" ".$size:"").($style != 'standard'?" ".$style:"").($round == '0' ?"":" ".$round) .'" href="'.$url.'">' . $before . do_shortcode($content) . $after .'</a>'; $output .='<!--Video - Hidden by default--> <div id="markerPoint-'.$vid.'"></div> <div id="'.$vid.'" class="kleo-video"> <div class="central"> <a href="#" class="videoClose"><i class="icon-off icon-2x"></i></a> <div class="videoLoad flex-video widescreen"> <!--YOUTUBE EXAMPLE-->'; $output .= '<iframe src="'.$url.'"></iframe>'; $output .= '</div> </div> </div> <!--end video-->'; return $output; } add_shortcode('kleo_button_video', 'kleo_button_video');
3. Add this to your functions:
COPY CODEadd_filter('widget_text', 'do_shortcode');
4. You can edit members/single/member-header.php to add custom code in the profile header.
5. I don’t know what you mean 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
You can modify members/index.php template somewhere around line 72 and make a condition to show the members loop, something like this:COPY CODE<?php if ( is_user_logged_in() ) { locate_template( array( 'members/members-loop.php' ), true ); } else { //other content for non-logged in users } ?>
Hope it helps
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi, Thanks for your suggestions
For point 4 you can add extra fields using an array in your sweetdate-child/functions.php inside the kleo_remove_actions functionCOPY CODE$kleo_config; $kleo_config['bp_members_loop_meta'] = array( 'I am a', 'Marital status', 'City' );
These are the default ones. You can modify them or add extra fields.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts