Skip to:
Content
Pages
Categories
Search
Top
Bottom

Admin access to other members messages

  • Avatar of bojan85
    bojan85
    Participant

    @bojan85

    Hi everyone, is there anyway to let admins have access to members private message? I would like to get notified or see when a message is Sent and received. This would help me sleep better at night so I know members don’t get any spam or inappropriate messages just because of joining my community.

    Is there anyway to enable this or is it impossible with buddypress?

    Cheers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of meg@info
    meg@info
    Participant

    @megainfo

    Hi @bojan85,

    add this code to your functions.php file

    function bp_admin_is_my_profile( $my_profile ){
    global $bp;

    if( ( $bp->current_component == BP_MESSAGES_SLUG )
    && current_user_can(‘manage_options’) ) return true;
    else return $my_profile;
    }
    add_filter(‘bp_is_my_profile’, ‘bp_admin_is_my_profile’, 1);

    but i think is not good idea to read the messages of members :), try to use anti spam plugins.

    Avatar of bojan85
    bojan85
    Participant

    @bojan85

    Hi @meg thanks for the code!! So i assume that this will attach the admin to every private message sent on the site. So the admin would receive a copy of the message sent between members. I’m I correct?

    Cheers, Bojan

    Avatar of meg@info
    meg@info
    Participant

    @megainfo

    No, you can access to the message pages of each profil
    just add /messages to the url of the member, like that :

    http://mysite/members/member_nickname/messages

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

You must be logged in to reply to this topic.