• Resolved wpmember11

    (@wpmember11)


    When a blocked user messages the user that blocked him, he’ll get a response that tells him he’s not allowed to message that usre, which blatantly tells him he’s been blocked by that particular user. For a website that tries to build a harmonious community, this extremely unfriendly message can not only sabotage the overall positive vibe it tries to build and maintain, but also potentially provoke volatile situation especially when these two members may bump into each other latetr down the road.

    Is there a way we can let the blocked user get a message or response that feels like the message went through without knowingit’s acttually been blockced?

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Shamim Hasan

    (@shamim51)

    This is a generic error message. Not only for blocked, but also there are other reasons for this error message. So if he see this error message does not mean that he is blocked.

    After that also if you want to change that message, you can do that easily.

    Thread Starter wpmember11

    (@wpmember11)

    Sorry did you say we can change the message? How?

    Plugin Author Shamim Hasan

    (@shamim51)

    Can you please give me screenshot where you are seeing this error?

    Thread Starter wpmember11

    (@wpmember11)

    The exact wording are:

    when tring to reply to a message whose author blocked him
    “You do not have permission to send reply to this message!”

    when trying to send a new message to such user:
    “[username] does not want to receive messages!”

    While we as admin can say these are just generic error messages, when an user gets these messages immediately after attempting to send / reply a message, it is only natural for the user to think they may be blocked by the user.

    The “”You do not have permission to send reply to this message!” can also trigger an inquiry to us trying to find out why they don’t have permission and how they can get permission.

    In either case, if we can already forsee those problems right now, it is simply a better idea to make it look like their messages have gone through from their screen when it’s in fact blocked by the plugin.

    That is if it is technically possible at all.

    Thank you

    Plugin Author Shamim Hasan

    (@shamim51)

    It is better to know that their messages did not sent, otherwise they may keep sending message thinking that their messages gone through but recipient are not replying. there may have important data to pass. if they know their messages did not gone through, they may try alternate method to reach recipient.

    To change “[username] does not want to receive messages!” add following code in your theme’s (child theme’s if any) functions.php

    add_action( 'fep_action_validate_form', function( $where, $errors, $fields ){
    
    if( 'newmessage' == $where && $errors->get_error_message( 'fep-message-to' ) ){
    	$errors->remove( 'fep-message-to' );
    	$errors->add( 'fep-message-to', __( 'Your custom error message') );
    }
    }, 10, 3);
    

    change “Your custom error message” to whatever error message you want to show. You may pass success message also. but that need to be wrapped in div with class “fep-success”

    In next version ‘fep-message-to’ may changed to ‘fep-message-to-permission’. So after update if not work, change this.

    To change “You do not have permission to send reply to this message!”, Please override “reply_form.php” template. instruction in https://www.shamimsplugins.com/docs/front-end-pm-pro/customization-front-end-pm-pro/change-templates/

    Thread Starter wpmember11

    (@wpmember11)

    Hi Shamim,

    Thank you for the reply. I think you do have a good point, an angle that I did not see. So with that, I’ve change the error message to accommodate both points of view. thank you very much for the codes.

    In the process of doing that, I found one new issue I was surprised I did not notice earlier – on the top of Message Box page, the name after “Welcome” is the user’s first and last name, instead of username. And below that, names right over the date and time are also first name and last name. For my site, all names should be username, not their real names. So how can I change that? Thank you.

    Plugin Author Shamim Hasan

    (@shamim51)

    This plugin shows Display Name in all places. It is made by wordpress to show publicly. Please go to Dashboard > Users > Your Profile > Name to see different types of names and their differences. Display Name is made to show publicly and all should show this name. This plugin shows this name.

    Thread Starter wpmember11

    (@wpmember11)

    Got you.Thank you for the explanation. Appreciated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘The message when a blocked user messages the user that blocked him’ is closed to new replies.