Notifications
Clear all

[Solved] How can members block other members?

7 Posts
2 Users
1 Reactions
607 Views
Posts: 10
Customer
Topic starter
(@zubin-mathai)
Member
Joined: 1 year ago

From the product description, it sounded like members can block other members. Is this possible?

I can't find that option anywhere. If someone sends another person a message, I see there are options to "remove" and "report". Neither of them stop the other person from starting a new chat with them.

How do members block someone from sending them messages?

6 Replies
Posts: 4214
 Tom
Admin
(@tomson)
Famed Member
Joined: 10 years ago

Hi @zubin-mathai,

Please see the attached screenshot:

Screenshot 2023 09 14 at 00.31.07
Reply
1 Reply
Customer
(@zubin-mathai)
Joined: 1 year ago

Member
Posts: 10

@tomson Please see my other reply and screenshot. Any idea why I'm not seeing the "block" option on my site? I couldn't find any setting that might be affecting it.

Reply
Posts: 10
Customer
Topic starter
(@zubin-mathai)
Member
Joined: 1 year ago

Thanks for the reply. But I'm not seeing that. What could be causing it not showing?

Screenshot 2023 09 12 at 7.05.35 PM

?

Reply
2 Replies
 Tom
Admin
(@tomson)
Joined: 10 years ago

Famed Member
Posts: 4214

@zubin-mathai,

Ok, I passed this to the addon developers, it seems the block button depends how the conversation is created. If you've manually selected a person to massage with him/her you cannot block him/her, you can only block if somebody contacted you by clicking the [envelop] button of your profile.

Reply
Customer
(@zubin-mathai)
Joined: 1 year ago

Member
Posts: 10

@tomson 

Thanks for the response. That clarifies it! Interesting choice on the developers' part, since someone can just add someone into a conversation they want to harass and the other person can't block them.

I see that the blocks are stored in the blocker's user_meta under wpforopm_blocked_userids. I can add my own button to profiles to allow someone to block anyone. Can you ask the developers if there is a public function in the add-on I can call to block a user?

I'd rather use an official function than write directly to the db.

Reply
Posts: 10
Customer
Topic starter
(@zubin-mathai)
Member
Joined: 1 year ago

@tomson

You can disregard my other question. Just adding the html to the page works, and wpforo's javascript properly handles the blocking of a user

If anyone else is looking for this solution:

// add block user choice if not there
if ( jQuery('.wpfpm-uli-cog-report').length && !jQuery('.wpfpm-uli-cog-block').length) {
    jQuery('.wpfpm-uli-cog-report').after('<li class="wpfpm-uli-cog-block" title="Block User"><i class="fas fa-ban"></i>Block</li>');
}
Reply
Share:
Scroll to top