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

XF 1.3 BB Code help

Discussion in 'XenForo Questions and Support' started by RyanC, May 20, 2014.

  1. RyanC

    RyanC Active Member

    So I just migrated from VB to Xenforo and I'm now dealing with some legacy issues. One of those is the BBcode I used for Youtube embeds on VB. When using VB, the user would use this code to embed a youtube video:


    Where ESOj56fWB8Q = ID of the video on Youtube.

    Is there a way I can make these old legacy embeds work on my new Xenforo installation using custom BB codes?

    Thanks so much!

  2. Brogan

    Brogan XenForo Moderator Staff Member

    Take a backup first.

    UPDATE xf_post SET message = REPLACE(message,'[YT]','[MEDIA=youtube]');
    UPDATE xf_post SET message = REPLACE(message,'[/YT]','[/MEDIA]');
    Chris D likes this.
  3. RyanC

    RyanC Active Member

    So, I did this... And it didn't work.... posts still display in this format:


    Could I have missed something? Is it case sensitive?

  4. Jeremy

    Jeremy Well-Known Member

    Under "Performance" in options, disable "Cache BB Code output" and retest. If that works, reenable the option.
  5. RyanC

    RyanC Active Member

    You sir are a scholar and a gentleman... I assume it will recache after a while and start working... It did work when I disabled cache.

  6. Jeremy

    Jeremy Well-Known Member

    Once you reenable it, it will recache as posts are processed on the front end.
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Personally I would just leave the cache disabled.
    I didn't see any difference with it enabled.
  8. RyanC

    RyanC Active Member

    Xenforo rules simply cuz support is so damned good... Seriously.

Share This Page