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

XF 1.4 How to replace bbcode and word?

Discussion in 'XenForo Questions and Support' started by clubpromos, May 26, 2015.

  1. clubpromos

    clubpromos Active Member

    Hi,

    1. My old VB forums were using [youtube][/youtube] BBcodes and were also allowing users to just paste the Youtube link and the video would be inserted.
    What do I need to do to make all these work?

    2. I'm struggling with finding how to replace words. These are word I was automatically replacing in both the text and links and I'd like to do the same with Xenforo.

    Thanks
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Run this in phpMyAdmin:
    Code:
    UPDATE xf_post SET message = REPLACE(message, '[youtube]', '[media=youtube]');
    UPDATE xf_post SET message = REPLACE(message, '[/youtube]', '[/media]');
    Take a backup first.

    Auto parsing of media can be configured in the bb code media site options.
     
  3. clubpromos

    clubpromos Active Member

    Thank you!
    Do you know how to also replace words by any chance? For example on VB I was replacing "example" by "anotherexample".

    Thanks
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

Share This Page