Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

  • Bharat
    Participant

    @chavodbharat

    add_filter(‘bp_email_use_wp_mail’, ‘__return_true’);
    add_filter( ‘wp_mail_content_type’, ‘mathetis_use_html_wp_mail’ );
    function mathetis_use_html_wp_mail() {
    return ‘text/html’;
    }
    add_filter( ‘bp_email_get_content_plaintext’, ‘mathetis_get_bp_email_content_plaintext’, 10, 4 );
    function mathetis_get_bp_email_content_plaintext( $content = ”, $property = ‘content_plaintext’, $transform = ‘replace-tokens’, $bp_email ) {
    if ( ! did_action( ‘bp_send_email’ ) ) {
    return $content;
    }
    return $bp_email->get_template( ‘add-content’ );
    }


    Bharat
    Participant

    @chavodbharat

    @arcangelgirl
    You can add this code in functions.php file or bp-custom.php
    add_filter( ‘bp_attachments_current_user_can’, function( $can, $capability ) {
    if ( ‘edit_avatar’ !== $capability ) {
    return $can;
    }
    // This will let all users upload an avatar (not just logged in members).
    $can = true;
    return $can;
    }, 10, 2 );


    Bharat
    Participant

    @chavodbharat

    Hi Lars

    you can use email token name while https://codex.buddypress.org/emails/email-tokens/ .


    Bharat
    Participant

    @chavodbharat

    Same issue , when i filter topics and Replies fitters results are not working , all time display same results . Any one help us how we can fix that issue?


    Bharat
    Participant

    @chavodbharat

    okay thank


    Bharat
    Participant

    @chavodbharat

    Hi destac

    I have already try but it not working as per our expection

    (1)Each sub site have separate activity ,Group, user register process ,everything required separate site with buddypress.

    I have gone through buddypress database table all database table common for all network not creating table as per site blog id.

    Could you help us how we can archive buddy press separate all things with separate sub domain site ?


    Bharat
    Participant

    @chavodbharat

    Thank you very much stegtflesk

    good job keep it up


    Bharat
    Participant

    @chavodbharat

    I have found solutions for html email text
    there is some changes in bp_core files :
    You can change content type given below path:
    \wp-content\plugins\buddypress\bp-core\bp-core-functions.php line number 2962

    put content_html text instead content_plaintext:
    content_plaintext should be send plain text email and content_html should be

    send html email:
    $email->get( ‘content_plaintext’, ‘replace-tokens’ )

    $email->get( ‘content_html’, ‘replace-tokens’ )

    I would like to give suggestions, if buddypress team should be given backend options like select content type (1)HTML email (2)Plain text
    because buddypress have not given any hook for changes content type text


    Bharat
    Participant

    @chavodbharat

    Hello Guys

    I have found solutions for html email text
    there is some changes in bp_core files :
    You can change content type given below path:
    \wp-content\plugins\buddypress\bp-core\bp-core-functions.php line number 2962

    put content_html text instead content_plaintext:
    content_plaintext should be send plain text email and content_html should be

    send html email:
    $email->get( ‘content_plaintext’, ‘replace-tokens’ )

    $email->get( ‘content_html’, ‘replace-tokens’ )

    I would like to give suggestions, if buddypress team should be given backend options like select content type (1)HTML email (2)Plain text
    because buddypress have not given any hook for changes content type text

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