ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 26,019
- Points
- 823
Reputation:
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:
Read more
Continue reading...
entity_post_save
that seems to be working okay.PHP:
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...