• 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

RyanC

Active member
#1
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:

[YT]ESOj56fWB8Q[/YT]

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!

ryan
 

Brogan

XenForo moderator
Staff member
#2
Take a backup first.

Code:
UPDATE xf_post SET message = REPLACE(message,'[YT]','[MEDIA=youtube]');
Code:
UPDATE xf_post SET message = REPLACE(message,'[/YT]','[/MEDIA]');
 

RyanC

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

[yt]WGK6AQAI8AE[/yt]

Could I have missed something? Is it case sensitive?

@Brogan