Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • in reply to: Displaying Recent Groups #75473
     jenny555
    Participant

    Hi,
    try this in your style.css (child)

    COPY CODE
    #groups .six.columns:nth-child(2n+1) {
        clear: right;
    }
    in reply to: Change colors #75260
     jenny555
    Participant
    This reply has been set as private.
     jenny555
    Participant

    Hello 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' );
    in reply to: Problem with default avatar #73189
     jenny555
    Participant

    Hello 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

     jenny555
    Participant

    Hello 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

Viewing 5 posts - 1 through 5 (of 5 total)

Log in with your credentials

Forgot your details?