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

Filtering post message on output

Discussion in 'XenForo Development Discussions' started by Beanjam, Jul 31, 2016.

  1. Beanjam

    Beanjam Active Member

    I'd like to make an add-on to filter and replace certain message text when it's being output, where should I be looking to extend for this?

    I've been able to make an add-on to do it before it's written to the database by extending Datawriter DiscussionMessage Post.php but now I need this to happen after the message is retrieved as I don't want the filter to be permanent.
     
  2. Sim

    Sim Well-Known Member

    I'd think you'd want to extend XenForo_ViewPublic_Thread_View
     
    Beanjam likes this.
  3. Beanjam

    Beanjam Active Member

    Thanks, after having a look around in there I think I might have a fiddle with /ViewPublic/Helper/Message.php
     

Share This Page