Skip to:
Content
Pages
Categories
Search
Top
Bottom

Compose name auto complete not working


  • marcelokayata
    Participant

    @marcelokayata

    I am using: define( ‘BP_MESSAGES_AUTOCOMPLETE_ALL’, true ); in bp-custom.php and it’s not working, because I tried to but a name incomplete and it didn’t suggest any name. What am I doing wrong?

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

  • marcelokayata
    Participant

    @marcelokayata

    This is the code in bp-custom which it’s not working

    <?php
    //marcelokayata
    define( ‘BP_MESSAGES_AUTOCOMPLETE_ALL’, true );
    //—————————————————–
    // Add Shortcode
    function teste_avatar_shortcode() {

    ob_start();

    global $post;

    $current_user = wp_get_current_user();
    /*echo ‘Username: ‘ . $current_user->user_login . ‘<br />’;
    echo ‘User email: ‘ . $current_user->user_email . ‘<br />’;
    echo ‘User first name: ‘ . $current_user->user_firstname . ‘<br />’;
    echo ‘User last name: ‘ . $current_user->user_lastname . ‘<br />’;
    echo ‘User display name: ‘ . $current_user->display_name . ‘<br />’;
    echo ‘User ID: ‘ . $current_user->ID . ‘<br />’;*/

    if($current_user->ID!=0){

    echo get_avatar_url($current_user->ID);
    echo get_avatar($current_user->ID);

    }

    $output = ob_get_contents();
    ob_end_clean();
    return $output;

    }
    add_shortcode( ‘teste_avatar’, ‘teste_avatar_shortcode’ );


    shanebp
    Moderator

    @shanebp

    Using this in bp-custom.php works for me:
    define( 'BP_MESSAGES_AUTOCOMPLETE_ALL', true );

    Make sure the quotes are like this ‘
    Not like this `

    You have to type 4 letters to get a suggestion.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar