Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • @melhergui

    Participant

    Works like a charm!! Thanks!

    @melhergui

    Participant

    Hi @prashantvatsh and everyone,

    The problem was that i am using Easy WP SMTP and it overwrites the reply to header.
    Sorry to ask without knowing this, but i hope it helps others anyway.

    Thanks for your help!

    @melhergui

    Participant

    Hi everyone!

    I couldn’t make it work, it is always sending with the admin email. Can anyone help me with this issue?

    Here is the codes i tried:

    
    add_filter( 'bp_email_set_from', function( $retval ) {
        $user = wp_get_current_user();
        return new BP_Email_Recipient( $user->data->user_email );
    }, 99, 1 );
    
    add_filter( 'bp_email_set_reply_to', function( $retval ) {
        $user = wp_get_current_user();
        return new BP_Email_Recipient( $user->data->user_email );
    }, 99, 1 );
    
    add_action( 'bp_email', function( $email_type, $email_obj ) {
        $user = wp_get_current_user();
        $email_obj->set_from( $user->data->user_email , "Custom Website Name" );
    }, 99, 2 );
    

    @melhergui

    Participant

    Hi @edvard1 it’s not your theme. The plugin is broken since BP 2.9.1.

    I was having problems with multiple checkboxes and made it work like this:

    File: /conditional-profile-fields-for-buddypress/assets/bp-conditional-field.js

    line 114: jQuery.each( $selected, function (index, $el ) {
    to:       jQuery.each( [$selected], function (index, $el ) {

    And…

    lines 350 to 369:

    var parent_div = jq( jq( element ).parents( '.editfield' ).get(0) );
          
            //;find its parent having class edit field
            if ( !match ) {
                //if the condition did not match, reverse visibility condition
                
                if ( visibility == 'show' ) {
                	visibility = 'hide';
                    
                } else {
                	visibility = 'show';
                }    
            }
            
            if ( !visible ) {
                parent_div.show();
            } else {         
                parent_div.hide();
            } 

    To:

    var parent_div = jq( jq( element ).parents( '.editfield' ).get(0) );
            visible = jq(parent_div).is(':visible');
    
            //;find its parent having class edit field
            if ( match ) {
                //if the condition did not match, reverse visibility condition
                if ( !visible ) {
    	            parent_div.show();
    	        } else {         
    	            parent_div.hide();
    	        }  
            }  

    Hope it helps!

    @melhergui

    Participant

    I got it working for me only using @henrywright solution with the filter for html emails. But my bp_email_use_wp_mail function i have set to return false. Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar