Forum Replies Created
-
Author
-
SQadmin
KeymasterHi,
If you can modify the template for the widget then just follow current structure of the Mailchimp widget:COPY CODE<div class="panel"><h5><i class="icon-thumbs-up"></i> NEWSLETTER SIGNUP</h5> <!--Newsletter form--> <form class="row" method="post" data-url="http://sweet.mydisk.ro/" name="newsletter-form" id="newsletter-form"> <div class="four columns"> <div class="row collapse"> <div class="two mobile-one columns"> <span class="prefix"><i class="icon-user"></i></span> </div> <div class="ten mobile-three columns"> <input type="text" required="" placeholder="Your name" id="yname" name="yname"> </div> </div> </div> <div class="five columns"> <div class="row collapse"> <div class="two mobile-one columns"> <span class="prefix"><i class="icon-envelope"></i></span> </div> <div class="ten mobile-three columns"> <input type="email" required="" placeholder="Your email" id="mc_email" name="mc_email"> </div> </div> </div> <div class="three columns"> <button class="small radius button expand" name="newsletter-submit" id="newsletter-submit" type="submit">JOIN US</button> </div> <div class="twelve column"> <div><small id="result"></small></div></div> </form><!--end newsletter-form--></div>
If you can’t modify the template the I guess you just need to try and do all the changes from css.
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 try increasing the column size by adding this to Sweetdate -> Styling options -> Quick css:COPY CODE#horizontal_search .row .two {width:33.3%}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
Add this to Sweetdate -> Styling options -> Quick css:COPY CODE.top-bar ul > li a:not(.button) {font-size:16px}
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterOh I see what you mean, change it like this please:
COPY CODE.home #groups .group-item .text-center {border:1px solid #ccc; } .home #groups .item-header-avatar {max-width:auto;}
The second line is to have the image as larger as the box
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterOk. add this style to Sweetdate -> Styling options -> Quick css
.home #groups .group-item {border:1px solid #ccc; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterRegarding the matching arrays this is how your code should have looked after my example:
COPY CODEadd_action('after_setup_theme','kleo_my_match'); function kleo_my_match() { global $kleo_config; $kleo_config['matching_fields']['starting_score'] = 1; //required for initial match. If the sex preference matches it will continue to the specified fields below $kleo_config['matching_fields']['sex'] = 'I am a'; $kleo_config['matching_fields']['looking_for'] = 'Looking for a'; //sex percentage $kleo_config['matching_fields']['sex_percentage'] = 49; //single value fields like select, textbox,radio $kleo_config['matching_fields']['single_value'] = array ( 'Marital status' => 20, 'Country' => 5, 'City' => 5, 'Profession' => 10, 'Annual Income' => 10, 'Education' => 10, 'Political Views' =>5, 'Religion' => 20, 'Weight Type' => 5, 'Ethnicity' => 15 ); //multiple values fields like multiple select or checkbox $kleo_config['matching_fields']['multiple_values'] = array ( 'Interests' => 10, 'Looking for' => 10, 'Smoking, Drinking & Drugs' => 10, 'Second Language' => 20 ); }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
Add this css to Sweetdate-> Styling options -> Quick css box:COPY CODE.home .form-wrapper {margin-top:50px;}
Change the 50 pixels to whatever you want
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
Keymasteryes it seems that the paragraph has a default 14px font size.
Please customize the font size by adding this code to Sweetdate -> Styling options -> Quick css box:COPY CODEp {font-size: 17px;}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
I can help you with this functions that check if a user is online or not. You need to add them to your sweetdate-child/functions.phpCOPY CODEfunction kleo_is_user_online($user_id, $time=5) { global $wpdb; $sql = $wpdb->prepare( " SELECT u.user_login FROM $wpdb->users u JOIN $wpdb->usermeta um ON um.user_id = u.ID WHERE u.ID = %d AND um.meta_key = 'last_activity' AND DATE_ADD( um.meta_value, INTERVAL %d MINUTE ) >= UTC_TIMESTAMP()", $user_id, $time); $user_login = $wpdb->get_var( $sql ); if(isset($user_login) && $user_login !=""){ return true; } else {return false;} }
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 members 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 solutionSQadmin
KeymasterThere are several ways you can restrict content.
– On the page/post edit area you can set specific level restrictions
– Using Shortcodes:COPY CODE[membership level="0,1,3,4"] //where 0,1,3,4, are the level ids for which you want to show content
– Using PHP:
COPY CODEif pmpro_hasMembershipLevel($level_id) { //allowed to view content } else { //not allowed to view content }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterSince version 2.0 you can add this function to sweetdate-child/functions.php to override default text:
COPY CODEfunction kleo_copyright_text() { echo "My custom text"; }
You need to replace/add your own text in it
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’t use the just like that.
To get the url this is the complete code to use. $url will have the blog link:COPY CODE$site_info = get_active_blog_for_user(get_current_user_id()); if ($site_info) { $url = $site_info->siteurl; } else { $url = home_url(); } echo $url;
Then just echo $url where you need it.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
To change the fields that affects the matching system you need to override the default options.
To change those fields you need to add a code to sweetdate-child/functions.php and modify it to match your needs like this:COPY CODE//change matching system add_action('after_setup_theme','kleo_my_match'); function kleo_my_match() { global $kleo_config; $kleo_config['matching_fields']['starting_score'] = 1; //If we want to match by members sex. values: 0|1 $kleo_config['matching_fields']['sex_match'] = 1; //required for initial match. If the sex preference matches it will continue to the specified fields below $kleo_config['matching_fields']['sex'] = 'I am a'; $kleo_config['matching_fields']['looking_for'] = 'Looking for a'; //sex percentage $kleo_config['matching_fields']['sex_percentage'] = 49; //single value fields like select, textbox,radio $kleo_config['matching_fields']['single_value'] = array ( 'Marital status' => 20, 'Country' => 5, 'City' => 5 ); //multiple values fields like multiple select or checkbox $kleo_config['matching_fields']['multiple_values'] = array ( 'Interests' => 10, 'Looking for' => 10, ); }
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 have translated or change the default sex field “I am a” you need to set the Sex field from Sweetdate -> Buddypress. This is used for the member count.
Then if you have different options than Man and Woman you need to modify the shortcode in the page like this:COPY CODE[kleo_men_online field="My renamed value"]
You can use the kleo_men_online with different field attributes for every new value you want to show.
Basically [kleo_men_online] is similar to [kleo_men_online field=”Man”] and by adding the field attribute you override the default value.Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
Please add this code to Sweetdate -> Styling options -> Quick css box:COPY CODE.rtmedia-media.flex-video {height:auto;padding-top:inherit;padding-bottom:inherit;margin-bottom:0;}
That will fix it. We will include the fix in the next update
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterI have a quick fix for you. It will work with the 2.0 version. Add this to sweetdate-child/functions.php:
COPY CODEadd_action('fb_popup_register_button_front', 'fb_register_button_front' );
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
We’re fine thank you. Just released v2.0 and we need some sleep 🙂
1. add this css to make the image square to Sweetdate -> Styling options -> Quick cssCOPY CODE#groups .avatar {border-radius: 0;}
to change the structure you need modifications of the shortcode.
2. Also changes to a function. Let me take a closer look and will let you know the solution.
3. This is easy. you need to change the shortcodes type attribut to match your new field value, like type=”Employer”Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterBasically you will have to add the css to the theme
COPY CODE//CSS #profile {background:#ccc;}
by the profile field, that you can check with:
COPY CODE//PHP xprofile_get_field_data( 'Location');
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi, The thumb size can be modified from wp-content/plugins/bp-custom.php
By default this should be the sizes:COPY CODEdefine( '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
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 31, 2013 at 22:37 in reply to: Register on Landing page but no search page on member site #2105SQadmin
KeymasterYou can differentiate content in pages with these 2 shortcodes:
[kleo_only_members]Content to show for members only[/kleo_only_members]
[kleo_only_guests]Content to show for guests only[/kleo_only_guests]This code is used to redirect to the last page user was viewing. Add this to the file located on your server at wp-content/themes/sweetdate-child/functions.php
COPY 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; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
So to add the “Personal Info” tab this is the complete code like in the link I first sent:COPY CODEadd_action('after_setup_theme','kleo_my_tab'); function kleo_my_tab() { global $bp_tabs; $bp_tabs[] = array( 'type' => 'regular', 'name' => __('Personal Info', 'kleo_framework'), 'group' => __('Personal Info', 'kleo_framework'), 'class' => 'regulartab' ); }
PS: The name and group are case sensitive.
Make sure you have the child-theme activated
Make sure the user has filled data in that groupHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 31, 2013 at 22:04 in reply to: Register on Landing page but no search page on member site #2093SQadmin
KeymasterOh. you can remove it. I thought you wan to show something else in the exact same location, but you can remove it and build the page with shortcodes.
To remove it add this snippet to wp-content/themes/sweetdate-child/functions.phpCOPY CODEadd_action('after_setup_theme','remove_search_form',11); function remove_search_form() { remove_action('after_header_content','render_user_search'); }
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 it only for site admins add this code to sweetdate-child/functions.php
COPY CODE/* Amin bar only for admin */ add_action('after_setup_theme','kleo_my_bar'); function kleo_my_bar(){ if (is_super_admin()) { add_action('wp_footer','wp_admin_bar_render',1000); add_filter('show_admin_bar', '__return_true'); } }
Make sure to have the sweetdate-child theme activated for it to work
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionSQadmin
KeymasterHi,
You can add the equivalent css to Sweetdate -> Styling options -> Quick css and it will override it’s original value:COPY CODE.top-bar { margin-top: 28px; }
We will include this in an update so it will automatically generate if the toolbar is on.
Thanks for pointing this out.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHello st,
Right now that line doesn’t have a setting in the styling options.
You can style it by adding this to Sweetdate -> Styling options -> Quick css box:COPY CODE.top-links { border-bottom: 1px solid #HEX; }
Replace the #HEX with your color hex value.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
You cant do that (3rd pasted code). Your using css as html.
Give your link a specific class and apply the css to it(this way it won’t apply to all links)
CSS:COPY CODEdiv.kleo-page header div.header-bg div#header div.row div.eight div.contain-to-grid nav.top-bar section ul#menu-new-menu.left li a.my-message-class {...}
PHP:
COPY CODE$profilelink .= '<li><a class="my-message-class" href="' . bp_loggedin_user_domain( '/' ) . 'messages" rel="nofollow">' . __('Messages','buddypress') . '</a></li>';
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi kswift,
Here is a sample from an existing dropdown. You can create yours the same way:COPY CODE<li class="has-dropdown" ><a class="main-menu-link" href="#">Buddypress</a> <ul class="dropdown"><li><a href="#" class="parent-link hide-for-large-up">Buddypress</a></li> <li><a class="sub-menu-link" href="http://seventhqueen.com/demo/sweetdatewp/members/">Members</a></li> <li><a class="sub-menu-link" href="http://seventhqueen.com/demo/sweetdatewp/groups/">Groups</a></li> <li><a class="sub-menu-link" href="http://seventhqueen.com/demo/sweetdatewp/activity/">Activity</a></li> </ul> </li>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi, this echoes the link
COPY CODEbp_loggedin_user_domain();
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
After:COPY CODE$profilelink = '<li><a href="' . bp_loggedin_user_domain( '/' ) . '" rel="nofollow">' . __('Profile','buddypress') . '</a></li>';
you can add another menus like this:
COPY CODE$profilelink .= '<li><a href="' . bp_loggedin_user_domain( '/' ) . 'messages" rel="nofollow">' . __('Messages','buddypress') . '</a></li>'; $profilelink .= '<li><a href="' . bp_loggedin_user_domain( '/' ) . 'friends" rel="nofollow">' . __('Friends','buddypress') . '</a></li>';
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi Joel,
This is not an easy thing since those controls are put in columns and these columns are based on Zurb Foundation framework but you can rewrite some default values for these columns. You have an example below, put this lines in Sweetdate/Styling options/Quick css box and adjust the values of ”width” and “padding”. Leave the “first-child” and “last-child” as they are.COPY CODE#search-bar .two { width: 14%; } #search-bar .two.columns { padding-left: 2px; padding-right: 2px; } #search-bar .two.columns:first-child, #search-bar .two.columns:last-child { padding: 0 6px; }
Regards,
RobertHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
Here is a list of slugs used by BuddypressCOPY CODEdefine ( 'BP_ACTIVITY_SLUG', 'streams' ); define ( 'BP_BLOGS_SLUG', 'journals' ); define ( 'BP_MEMBERS_SLUG', 'users' ); define ( 'BP_FRIENDS_SLUG', 'peeps' ); define ( 'BP_GROUPS_SLUG', 'gatherings' ); define ( 'BP_FORUMS_SLUG', 'discussions' ); define ( 'BP_MESSAGES_SLUG', 'notes' ); define ( 'BP_WIRE_SLUG', 'pinboard' ); define ( 'BP_XPROFILE_SLUG', 'info' ); define ( 'BP_REGISTER_SLUG', 'signup' ); define ( 'BP_ACTIVATION_SLUG', 'enable' ); define ( 'BP_SEARCH_SLUG', 'find' ); define ( 'BP_HOME_BLOG_SLUG', 'news' );
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’t change this from admin, but you can change it by writing the following line in Sweetdate/Styling options/Quick css box:
COPY CODE.top-links { border-bottom: 1px solid #0784b3; background: #000000; }
– change the hex code to your desired color.
2. You can change it the same way as in the above example:
COPY CODE.top-links, .top-links a { color: #fff; background: #000; }
3) That is because your secondary color is white, same as the background. You can change the button color with this style:
COPY CODEinput#searchsubmit, input#searchsubmit:hover {background:#fff;}
4. You can change the path to your image manually in: ../themes/sweetdate-child/page-templates/contact.php at line 42 http://d.pr/i/xBcW or simply comment this line. You need also to clear browser cache or rename your picture.
5. Same as point 3. Change the secondary button colors or:COPY CODE#kleo_ajaxsearch {background: #eee;}
6. Sweetdate -> Buddypress HORIZONTAL FORM -> Text before form: remove any text added
7. Add profile fields from Users ->Profile fields or Import our demo fields from Sweetdate -> Buddypress -> “Import Buddypress profile fields”
8. You can edit your Home page and there is a button shortcode that show the video button:
[kleo_button_video url=”http://www.youtube.com/embed/FtquI061bag” style=”alert” size=”large” round=”radius” icon=”film,after”] Our TV Commercial [/kleo_button_video]
change style=”alert” attribute value with success, secondary,alert,standard
or
In the same way as in section 1 with the following line:COPY CODE#call-to-actions .alert { background-color: #ff0461; border: 1px solid #ff0461; } #call-to-actions .alert:hover, #call-to-actions .alert:focus { background: #ed0058; border: 1px solid #ed0058; }
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 wrap that embed in a div with the style=”boder:3px solid #777″
something like this:Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 26, 2013 at 10:26 in reply to: Buddypress bug: users with spaces in their usernames can’t register #1794SQadmin
KeymasterHi,
You can restrict users from registering with space in the username:COPY CODEadd_action('bp_init','bpdev_remove_bp_pre_user_login_action'); function bpdev_remove_bp_pre_user_login_action(){ remove_action( 'pre_user_login', 'bp_core_strip_username_spaces' ); } //add a filter to invalidate a username with spaces add_filter('validate_username','bpdev_restrict_space_in_username',10,2); function bpdev_restrict_space_in_username($valid,$user_name){ //check if there is an space if ( preg_match('/\s/',$user_name) ) return false;//if myes, then we say it is an error return $valid;//otherwise return the actual validity }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi.
You cand add this to Sweetdate -> Styling options -> Quick css:COPY CODE#register-page .editfield .checkbox label:not(.reglabel) {width:50%;float:left;}
If you want 3 on a row you can change 50% to 33%
PS: Thanks for the stellar review
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
Try adding this to your wp-config.php file in your root wordpress install directory:COPY CODEdefine ( 'BP_GROUPS_SLUG', 'grupos' );
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 modify page-parts/home-register-form.php and after the form ends you need to add another column with your video(after line 128):Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
Right now there is no shortcode for that but you could install http://wordpress.org/plugins/shortcode-exec-php and create a shortcode that executes this:COPY CODEget_template_part('page-parts/home-register-form');
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHello and thank you.
For the icons that appear in the site take a look at this topic: https://archived.seventhqueen.com/forums/topic/removereplace-the-love-hearts-in-siteTo change the match in the compatibility you have add this function in your sweetdate-child/functions.php and modify the default behaviour:
http://d.pr/n/VbgTChange the __(“match”, ‘kleo_framework’) to whatever you like.
The two icons are a image background rendered by and has this css:COPY CODE.circular-item .hearts { background: url("../images/hearts_bg.png") no-repeat scroll 0 0 transparent; display: block; height: 30px; position: absolute; right: 0; top: -20px; width: 39px; }
You can put you own image on the server and change the span class to “my-hearts” and add the css to Sweetdate -> Styling -> Quick css or in the file sweetdate-child/style.css
COPY CODE.circular-item .my-hearts { background: url("../path_to_new_image") no-repeat scroll 0 0 transparent; display: block; height: 30px; position: absolute; right: 0; top: -20px; width: 39px; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSQadmin
KeymasterHi,
To remove the forum tab from the profile add this to sweetdate-child/functions.php having the sweetdate child theme activated:COPY CODE// Remove forums menu item function my_setup_nav() { global $bp; unset($bp->bp_nav['forums']); } add_action( 'bp_setup_nav', 'my_setup_nav', 1000 );
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts