Approve postings with certain keywords

Started by HunterP, March 26, 2013, 04:30:46 AM

Previous topic - Next topic

HunterP


Hi there,

I'd like to have an option to put postings which contain certain keywords (like the censor words) under approval so my team can check those messages before they appear on the forum.

Basically, I could run a strstr() or so to set the 'approved' column to 0.

But maybe there are other/better solutions for this?

Running SMF 2.0.4

Arantor

No, there's not really a better way to do it, you would just have to splice in to the posting process in Post2(), where it checks whether it would otherwise become approved and set it to 0 if it would be posted without becoming approved in the process.

Specifically do what censorText does, so you can ensure things would not be handled differently.

HunterP


Advertisement: