Support Forum

Mentions plugin, displays blocked users.

AP Apopas
Apopas
Member

Hi, is there any way to force mentions plugin to display only the valid members? Right now it displays even the users who do not have access to the forum.

 

thanks in advance

7 Answers

New Answer

MP Mr Papa
Mr Papa
Member

blocked users? oh you mean permission on that forum…

no, not directly…  first time anyone has mentioned this…  

it would require creating a new permission for user to mention or be mentioned (that could be 2 permissions)…  so not a small task…

I guess alternatively, checks could be made that the user has permission to view the forum, but its not there now…  and not simply added since it has to be done post query…

you might be able to do this yourself by using the ‘sph_mentions_matches’ filter and altering the where clause to exclude specific user IDs..  or only include users who could view the forum… fairly complex..

but we can add it to our list…

AP Apopas
Apopas
Member

Mr Papa said
you might be able to do this yourself by using the ‘sph_mentions_matches’ filter and altering the where clause to exclude specific user IDs..  or only include users who could view the forum… fairly complex..

My forum has only 40 members (half of them are banned) so it wouldn’t be hard to include or exclude users. But how can I do that?

YS Yellow Swordfish
Yellow Swordfish
Member

I will have to have a chat with @mr-papa about this. Certainly people who do not have permission to view that particular forum should not be shown. Starting to exclude people who are banned or currently suspended starts to get very complex. The main problem is not the logic but the time it will take to create the code. 

The auto-complete list that pops up needs to pop up quickly otherwise it is of no use. Every additional sweep of the list – or additional query clause on the database eats up quite a lot of time. The trick is to get that list up as quickly as possible so it is a trade off.

But we will talk it over here…

YS Yellow Swordfish
Yellow Swordfish
Member

We have started to discuss if there is any way we can do this without causing such a performance hit that it would no longer be usable. And that IS the main problem. With your small user base you would not notice. With ours (14,337 at the time of writing) and other users with a large base, the drag to performance could potentially kill it off.

But we are throwing some ideas around and we do have a ticket opened for it.

AP Apopas
Apopas
Member

I don’t know if this is helpful, but private messaging plugin works as intended and doesn’t display blocked users.

YS Yellow Swordfish
Yellow Swordfish
Member

Curious. I will add this to the ticket notes – thanks