Block User – Add a Warning


Home Forums Front End PM PRO Block User – Add a Warning

This topic is: Not Resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #18141
    David
    Participant

    Users on my site manage to block other users by accident. I have to switch user and unblock the user from their settings.

    Would it be possible to add a warning pop up when the user clicks on the “Block” link. The pop up could say:

    “Do you really want to block <username>. If you click “Yes” then <username> will not be able to send you any more messages.”

    I think this would overcome the problem for me. Not sure if anyone else experiences this from time to time…

    Thanks for your input.

    #18144
    shamim
    Keymaster

    User can unblock from the same place if they accidentally block any user. Still if you want to show confirmation see following.
    You can add following code in block-unblock.js after e.preventDefault();

    if ( ! confirm( 'Do you really want to block/unblock this user?' ) ) {
    	return false;
    }
    

    Currently user name do not pass to js, so we cannot show name. Also from js we do not know if we are blocking or unblocking user. So confirmation is require in both block and unblock request. You can adjust message to show.

    #18314
    David
    Participant

    Thanks very much, works great. The main problem is that people are doing it without realising so do not unblock because they do not realise they have blocked. I think it is because people are making bookings through messaging so they may be mistaking the word “block” for “book”.

    Anyway, it would be great to have this included in the next version. If not I will keep updating the file.

    Thanks again!

    #18318
    shamim
    Keymaster

    This feature is already included for next version including name of user and shows when user try to block another user.
    If you are in development you can check “Bleeding edge Update” in Front End PM PRO > Settings > Licenses. Then update plugin.

    #18320
    David
    Participant

    Awesome, thank you!

Viewing 5 posts - 1 through 5 (of 5 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.