A partial archive of meta.discourse.org as of Tuesday July 18, 2017.

Notify user when certain words appear in posts

ked

Use Case: simply saying thank you to someone who has posted on a topic that was missing or lacking within a forum. As in, “hey, thanks for your insightful post on Mars. We’ve been hoping someone would shed some light on this subject here at the Planets Forum”

ked

As to the Actions that could be initiated upon a word/phrase match, what are the reasonable possibilities?

  • send an email notification to Admin(s)?
  • record the match in a CSV file (timestamp, match phrase, URL of the post)
  • Other?

Also, is the ability to establish "watch words" for Admins only, or possibly other TL's?

neil

The actions being considered right now are:

  • Block the post
  • Flag as inappropriate
  • Require approval for the post
pfaffman

I think what @ked wants to know is would it be hard to also just give a notification when such posts occurred? Or do you think that having the messages flagged is just as effective? My concern is that we don’t want messages with “good” watched words in them to be hidden or otherwise marked as “bad,” but instead be able to take action with that person (“thanks for asking about the thing I care about, I can help”).

neil

So you want a global site setting (vs a per-user setting) to send a notification to someone (moderators? admins?) when certain “good” words appear in posts?

pfaffman

I thought that these were all global settings, so I thought that the idea was that this was for admins only.

But yes, the “keyword alerts” feature that you describe is what @ked is looking for. As far as he’s concerned, having it available only to admins (read: him) would be sufficient.

I think the question is that if what he wants is “keyword alerts” would it be possible to coerce the block/flag/require approval scheme that you’re suggesting to provide admin-only keyword alerts?

codinghorror

As covered in the other topic, I think this approach is quite flawed.

A better approach is saved searches, as in

  1. Do this search (ordered by date)
  2. When there are new matches in the search…
  3. PM me a summary (if many matches)

This gives you complete flexibility as you have the entire power of the search engine, and you can determine how often it runs, etc.

Also all we need to do is store date the last search was run, and the highest (most recent) date of search match. So it’s pretty simple from a data storage perspective.

ked

Seems like a great approach to me!

A couple of possibilities/thoughts:

  • a way to delete searches no longer of interest would be handy
  • what would be the best way to regulate the timing of the searches?
  • could there be an optional tie to the Data Explorer plugin (assuming it’s being used of course) that could be leveraged in conjunction with this feature?
  • as for the UI, I very much like the use of a column-sortable Table
pfaffman

This looks like exactly what @ked is looking for. Is this feature on the timeline?