1. 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

Discussion in 'XenForo Questions and Support' started by zaiger, Jan 15, 2012.

  1. zaiger

    zaiger Active Member

    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!
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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.
     
    zaiger likes this.
  3. zaiger

    zaiger Active Member

    Ok we did that with MediaWiki already so it shouldn't be a problem. Thanks!
     

Share This Page