BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 14
    swati on in reply to: [Resolved] search user by "USER ID" #8794

    As the user registered himself/herself, The database creates a unique user ID in numeric form.

  • Participant
    Level: Initiated
    Posts: 14
    swati on in reply to: [Resolved] Email message #8786

    Ok.. I will check again my code.

  • Participant
    Level: Initiated
    Posts: 14
    swati on in reply to: [Resolved] Email message #8750

    When the user click on private message button, A popup window with email form should open and user can send message to that particular friend. Is it possible? As right now when I click on private message button, the page redirects to own profile > compose.

  • Participant
    Level: Initiated
    Posts: 14
    swati on in reply to: [Resolved] Email message #8749

    Hi Brajesh Ji,

    Thanks a lot for your response.

    (2) Your code worked, for rejection email, Thanks a lot.
    (1) Ohh sorry, actually the message “[{{{site.name}}}] New express interest request from {{initiator.name}}”, This is not working. The event is “A member has sent a friend request to the recipient.”

    (3) I used the following code for private message button in member loop as given below. It worked fine till the uesr write message. when user click on “send message” button, the message appears as “Message was not sent. Please try again.”

    //This code is for inserting private message button to member loop

    function filter_message_button_link( $link ) {
    $link = wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . ‘/compose/?r=’ . bp_core_get_username( bp_get_member_user_id() ) );
    return $link;
    }

    function display_private_message_button() {
    if( bp_get_member_user_id() != bp_loggedin_user_id() ) {
    bp_send_message_button();
    add_filter(‘bp_get_send_private_message_link’, ‘filter_message_button_link’, 1, 1 );
    }
    }
    add_action( ‘bp_directory_members_item’, ‘display_private_message_button’ );

    Also I used “restrict user access plugin” to allot the different levels to the users. It shows contradict with buddypress, as “Add friend” button not working properly with it. Can you suggest any suitable plugin.

    Looking for your positive response.

    Thank you