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
  • #18141

    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.


    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.


    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!


    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.


    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.