Forum Replies Created
-
Author
-
jenny555
ParticipantHi,
try this in your style.css (child)COPY CODE#groups .six.columns:nth-child(2n+1) { clear: right; }jenny555
ParticipantHi Laura,
id: laura
password: laura987style.css :
COPY CODE/* Theme Name: Sweetdate Child Theme URI: Description: Child theme for Sweetdate Author: SeventhQueen Author URI: http://seventhqueen.com Template: sweetdate Tags: dating, clean, responsive, creative, minimal, modern, landing page, social, buddypress,bbpress, woocommerce License: GNU General Public License License URI: license.txt */ @import url("../sweetdate/style.css"); /* * Please add your custom styles below */ .sticky.fixed { background: rgb(0, 0, 0); background: rgba(0, 0, 0, 0.77); height: 43px; padding-top: 3px; -webkit-backface-visibility: hidden; backface-visibility: hidden; } ul#menu-sweetdate a { color: #C79F4B !important; } ul#menu-sweetdate a:hover { color: white !important; } #breadcrumbs-wrapp a: hover { color: #000; } #call-to-actions .alert { background-color: #101010; border: 1px solid #101010; } #call-to-actions .alert a:hover{ background-color: #C79F4B; border: 1px solid #C79F4B; } .form-footer { color: #D1A14F; padding: 20px 20px 10px; border-left: 10px solid #D1A14F; border-bottom: 10px solid #D1A14F; border-right: 10px solid #D1A14F; background-color: #1A1A1A; } .search-item .author { background-color: #C79F4B; } .search-item .date, .search-item .date a { height: 26px; overflow: hidden; color: #C79F4B; font-style: inherit; font-weight: bold; background-color: #303133; } .search-item .search-body { height: 60px; margin-bottom: 10px; overflow: hidden; text-align: justify; color: #737272; } .search-item { border: 1px solid #e5e5e5; list-style: none; text-align: center; margin-top: 100px; background-color: #fff; box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.2); border-radius: 4px; width: 250px; } .four, .row .four { /* width: 33.33333%; */ /* clear: left; */ /* background-color: #303131; */ width: 250px; padding-left: 0px; padding-right: 0px; border-radius: 5px; margin-right: 15px; /* padding-top: 10px; */ } .bp-member-dir-buttons { margin-bottom: 0px; height: 35px; background: #d4d9dd; background-image: initial; background-position-x: initial; background-position-y: initial; background-size: initial; background-repeat-x: initial; background-repeat-y: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(212, 217, 221); margin-top: 0px; text-align: center; } #members-list .four.columns:nth-child(3n+1) { clear: left; background-color: #303131; width: 250px; padding-left: 0px; padding-right: 0px; border-radius: 5px; } /* background: rgba(14, 103, 143, 0.17); */ /* Search Box Borders Color */ .form-search { border-left: 10px solid #C79F4B !important; border-right: 10px solid #C79F4B !important; } /* Form Background color */ .form-search, .form-header, div.alert-box, div.pagination span.current { background: rgba(0, 0, 0, 0) !important; } .form-search .notch { border-top: 10px solid #202020 !important; } .form-header { border-left: 10px solid rgb(209, 161, 79) !important; border-top: 10px solid rgb(199, 159, 75)!important; border-right: 10px solid rgb(199, 159, 75) !important; } .form-footer { color: #D1A14F !important; border-left: 10px solid #D1A14F !important; border-bottom: 10px solid #D1A14F !important; border-right: 10px solid #D1A14F !important; background-color: #151515 !important; } /*footer*/ #footer hr { border: solid #fff; border-width: 1px 0 0; } .latest-blog span.avatar { background: rgb(199, 159, 75); } #footer h5 { color: #C79F4B; margin-bottom: 20px; } /*profil rounded avatar*/ #profile #item-header-avatar .avatar { border: 6px solid; width: 100%; border-radius: 100%; } #header { padding-top: 20px; padding-bottom: 10px; margin: 0 auto; /* background-color: #35406B; */ background: #232323;; } #breadcrumbs-wrapp { background: #3C5C8D; } ul.rtm-activity-media-list .rtmedia-list-item.media-type-photo a, ul.rtm-activity-media-list .rtmedia-list-item.media-type-photo .rtmedia-item-thumbnail, ul.rtm-activity-media-list .rtmedia-list-item.media-type-photo .rtmedia-item-thumbnail img { max-width: 100% !important; max-height: none !important; width: 100%; padding: 0px !important; margin: 0px !important; display: block; } .top-links { border-bottom: 1px solid #C79F4B; } div#message.updated p { background-color: #C79F4B; border-color: #C79F4B; color: #000000; } .activity-list .activity-content .activity-header, .activity-list .activity-content .comment-header { color: #C79F4B; font-size: 11px; line-height: 220%; } #footer h5 { color: #C79F4B; margin-bottom: 20px; } .regulartab dd { background: rgba(15, 15, 15, 0.63); color: #ffffff; } .circular-item .hearts { background: url(http://www.speedmazal.com/wp-content/uploads/2015/08/coeurs.png) no-repeat !important; display: block; width: 39px; height: 30px; position: absolute; right: 0; top: -20px; } #profile .generic-button a, .tabs.pill.custom dd:not(.active) a, #profile .callout, .regulartab dt, .regulartab dd { background: rgba(15, 15, 15, 0.65); color: #ffffff; } .dl-horizontal dt { float: left; width: 160px; line-height: 2.3em; overflow: hidden; clear: left; text-align: right; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; background: rgba(15, 15, 15, 0.65); }functions.php
COPY CODE<?php /** * @package WordPress * @subpackage Sweetdate * @author SeventhQueen <themesupport@seventhqueen.com> * @since Sweetdate 1.0 */ /** * Sweetdate Child Theme Functions * Add extra code or replace existing functions */ //Avatar default add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' ); function myavatar_add_default_avatar( $url ) { global $bp; $gender = xprofile_get_field_data('Je suis un(e)', bp_get_member_user_id()); if ($gender == "Homme") { return $img_url = '/wp-content/uploads/2015/08/man-avatars.jpg'; } else { return $img_url ='/wp-content/uploads/2015/08/woman-avatars.jpg'; } } add_filter( 'bp_core_mysteryman_src', 'myavatar_add_default_avatar' ); add_filter( 'bp_core_default_avatar_user', 'myavatar_add_default_avatar' ); //manual total members add_filter( 'bp_get_total_member_count', 'kleo_my_total_members' ); function kleo_my_total_members($number) { $number = str_replace(".","",$number); return 1284; } //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 '195'; break; case "Woman": return $number+51; break; case "Man": return $number+134; break; default: return $number; break; } } //carte membres avec champs add_action('after_setup_theme','kleo_my_member_data'); function kleo_my_member_data() { global $kleo_config; //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( 'Je suis un(e)', 'Courant religieux', 'Ville' ); //this is the details field, right now it take the "About me" field content $kleo_config['bp_members_details_field'] = 'Je recherche...'; } //masque les membres du même sexe class BP_Custom_User_Ids { private $custom_ids = array(); public function __construct() { $this->custom_ids = $this->get_custom_ids(); add_action( 'bp_pre_user_query_construct', array( $this, 'custom_members_query' ), 1, 1 ); add_filter( 'bp_get_total_member_count', array( $this, 'custom_members_count' ), 1, 1 ); } private function get_custom_ids() { global $wpdb; //figure out if the logged-in user is male or female $sex = xprofile_get_field_data( 3, bp_loggedin_user_id() ); if ( $sex == 'Homme' ) $query = "SELECT user_id FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 3 AND value = 'Femme'"; else if ( $sex == 'Femme' ) $query = "SELECT user_id FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 3 AND value = 'Homme'"; else $query = "SELECT user_id FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 3 AND value = ''"; $custom_ids = $wpdb->get_col( $query ); return $custom_ids; } function custom_members_query( $query_array ) { $query_array->query_vars['include'] = $this->custom_ids; } function custom_members_count ( $count ) { $new_count = count( $this->custom_ids ); return $new_count; } } function custom_user_ids( ) { new BP_Custom_User_Ids (); } add_action( 'bp_before_directory_members', 'custom_user_ids' ); ?>Regards,
ThanksAugust 18, 2015 at 00:27 in reply to: How to use default man avatar and women avatar of my image files ? #73496jenny555
ParticipantHello Laura, problem solved! it works!
Here is the solution for members who have the same problem as me …
We do need to change, “I am a” and “Man” in your language (case sensitive). Then, this blocking, it is the “SECU.” before url in the code. I deleted it and it works.
Here are the correct code. But I have more questions then I’ll open another topic. In the meantime, thank you.COPY CODE//Avatar default add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' ); function myavatar_add_default_avatar( $url ) { global $bp; $gender = xprofile_get_field_data('Je suis', bp_get_member_user_id()); if ($gender == "Un Homme") { return $img_url = '/wp-content/uploads/2015/08/avatarh.png'; } else { return $img_url ='/wp-content/uploads/2015/08/avatarf.png'; } } add_filter( 'bp_core_mysteryman_src', 'myavatar_add_default_avatar' ); add_filter( 'bp_core_default_avatar_user', 'myavatar_add_default_avatar' );jenny555
ParticipantHello Laura,
yes i have the french language activated. I tried what you told me to do, but it doesn’t work. Here is my functions file:COPY CODE<?php /** * @package WordPress * @subpackage Sweetdate * @author SeventhQueen <themesupport@seventhqueen.com> * @since Sweetdate 1.0 */ /** * Sweetdate Child Theme Functions * Add extra code or replace existing functions */ //Avatar default add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' ); function myavatar_add_default_avatar( $url ) { global $bp; $gender = xprofile_get_field_data('Je suis', bp_get_member_user_id()); if ($gender == "Homme") { return $img_url = SECU.'/wp-content/uploads/2015/08/avatarh.png'; } else { return $img_url = SECU.'/wp-content/uploads/2015/08/avatarf.png'; } } add_filter( 'bp_core_mysteryman_src', 'myavatar_add_default_avatar' ); add_filter( 'bp_core_default_avatar_user', 'myavatar_add_default_avatar' ); //manual total members add_filter( 'bp_get_total_member_count', 'kleo_my_total_members' ); function kleo_my_total_members($number) { $number = str_replace(".","",$number); return 1284; } //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 '195'; break; case "Woman": return $number+51; break; case "Man": return $number+134; break; default: return $number; break; } } ?>what doesn’t work? Also I didn’t understand what I have to change in the homepage. Thanks
Note : Please do not reply to the another post, thanks
August 16, 2015 at 01:46 in reply to: How to use default man avatar and women avatar of my image files ? #73188jenny555
ParticipantHello Laura,
yes i have the french language activated. I tried what you told me to do, but it doesn’t. Here is my functions file:COPY CODE<?php /** * @package WordPress * @subpackage Sweetdate * @author SeventhQueen <themesupport@seventhqueen.com> * @since Sweetdate 1.0 */ /** * Sweetdate Child Theme Functions * Add extra code or replace existing functions */ //Avatar default add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' ); function myavatar_add_default_avatar( $url ) { global $bp; $gender = xprofile_get_field_data('Je suis', bp_get_member_user_id()); if ($gender == "Homme") { return $img_url = SECU.'/wp-content/uploads/2015/08/avatarh.png'; } else { return $img_url = SECU.'/wp-content/uploads/2015/08/avatarf.png'; } } add_filter( 'bp_core_mysteryman_src', 'myavatar_add_default_avatar' ); add_filter( 'bp_core_default_avatar_user', 'myavatar_add_default_avatar' ); //manual total members add_filter( 'bp_get_total_member_count', 'kleo_my_total_members' ); function kleo_my_total_members($number) { $number = str_replace(".","",$number); return 1284; } //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 '195'; break; case "Woman": return $number+51; break; case "Man": return $number+134; break; default: return $number; break; } } ?>what doesn’t work? Also I didn’t understand what I have to change in the homepage. Thanks
-
AuthorPosts