• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 looking for way to hook into new post/thread event

zaiger

Active member
#1
Hi all,

I'm looking for a way to hook into a new post or thread event so that we can set up an IRC bot that listens listens to UDP socket and will post in a channel on our IRC server when a post/thread is made. It seems like it should be possible but we haven't been able to figure it out. Any help would be appreciated. thanks!
 

Jake Bunce

XenForo moderator
Staff member
#2
You can make an addon to extend these controllers:

XenForo_ControllerPublic_Thread::actionAddReply
XenForo_ControllerPublic_Forum::actionAddThread

That will allow you to add your own code to be executed when a new thread / post is created.