News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Search options, exclude user(s)

Started by Aleksi "Lex" Kilpinen, January 11, 2019, 01:04:47 PM

Previous topic - Next topic

Aleksi "Lex" Kilpinen

We already have an option to search for posts by a specific user, and that's nice, but could we expand on this idea and have an option to specifically exclude specific users from results? The user searching for example, or any specific other user?

Search posts Not From User

Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

albertlast

How should be the delimiter,
between the users nicks?

Could you filter on user xor exclude on some?
Or can you filter on both on the same time?
How would you desing the ui?

What should happen when you include and exclude the same nick?

Aleksi "Lex" Kilpinen

I would just add an option to not include a user, or users from the search results.
Of course, if you search by user - you can not exclude a user at the same time.

I would probably approach this by giving an option to either search by user(s) / or excluding user(s)
So one input field, with one dropdown selection to specify is this about including or excluding, and if the field is empty the dropdown is dismissed.

Delimiter - Good question, can't say really off the top of my head.
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Arantor

You know there's this wonderful autocomplete thing that exists in SMF that handles all that delimiter stuff for you, right?

Aleksi "Lex" Kilpinen

Quote from: Arantor on January 11, 2019, 03:21:38 PM
You know there's this wonderful autocomplete thing that exists in SMF that handles all that delimiter stuff for you, right?
In this instance, I would not really know how such would work - no, I'm not that well versed with the code behind some stuff I master as a user :P
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

lurkalot

Quote from: Aleksi "Lex" Kilpinen on January 11, 2019, 03:26:06 PM
Quote from: Arantor on January 11, 2019, 03:21:38 PM
You know there's this wonderful autocomplete thing that exists in SMF that handles all that delimiter stuff for you, right?
In this instance, I would not really know how such would work - no, I'm not that well versed with the code behind some stuff I master as a user :P

Can't you just use an exclude - Example, 

Coppermine -Aleksi "Lex" Kilpinen
Coppermine Aleksi "Lex" Kilpinen
Coppermine

Arantor

No, because that doesn't work - are you looking to exclude 'Aleksi' or 'Aleksi "Lex" Kilpinen' as both could be valid?

But retrofitting the existing autocomplete onto the existing search member is not difficult (although limits scope for searching for posts by guests) - and adding a new thing is even more trivial because it just gives you a list of user ids to exclude automagically.

Advertisement: