Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Mentions plugin, displays blocked users.
Avatar
Apopas
Member
sp_UserOfflineSmall Offline
Feb 20, 2017 - 7:51 pm

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 20, 2017 - 8:11 pm

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...

Avatar
Apopas
Member
sp_UserOfflineSmall Offline
Feb 20, 2017 - 8:20 pm

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?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 21, 2017 - 4:44 am

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...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Apopas
Member
sp_UserOfflineSmall Offline
Feb 22, 2017 - 6:26 pm

The same happens with "search by user" as well frown

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 23, 2017 - 4:22 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Apopas
Member
sp_UserOfflineSmall Offline
Mar 3, 2017 - 12:42 pm

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 3, 2017 - 3:03 pm

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

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17344
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10117
Posts: 79600