Ozzy47
Guest
Member
I've been tinkering with an addon that will automatically moderate a thread/post if it contains censored words. I'm using a listener on
PHP:
Code:
Read...
Read more
Continue reading...
entity_post_save
that seems to be working okay.PHP:
Code:
Code:
// Moderate Posts If Necessary
public static function moderatePostsPostSave(\XF\Mvc\Entity\Entity $entity)
{
// Get Visitor
$visitor = \XF::visitor();
// Get options
$options = \XF::options();
// Get Variables
$opt1 =...
Read more
Continue reading...