A Bit Of Help Please

Status
This content is read-only, or is not open for further replies.

Ozzy47

Guest
offline
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 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...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom