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

Replace content within post, signature, conversation?

Discussion in 'XenForo Development Discussions' started by semprot, Dec 4, 2014.

  1. semprot

    semprot Active Member

    How to do content replacement within post, signature, conversation?
    I'd like to make my own regular expression to replace content.

    Thank you :)
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Permanently? Temporary? When is this occurring?
     
  3. semprot

    semprot Active Member

    temporary is fine (which means if i disable the plugin code, all will go back to the original string).
    But if it is permanent (which means the replacement happens before the content is saved to database), it is fine too.

    It is a kind of "censoring" (which is replacing pre defined "bad words" by asterisks).
    But i want to replace something (pre defined by regular experssion) to something else (not asterisks).

    It occurs when it is viewed.
     
    Last edited: Dec 4, 2014
  4. semprot

    semprot Active Member

Share This Page