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

XF 1.2 BBCode conversion question

#1
Hello,

I'm doing a vb -> xf convert and i always get crushed on regular expressions. I'm trying to convert the following bbcode:
Code:
[video=youtube;YOUTUBEID]http://www.youtube.com/watch?v=YOUTUBEID&SOMEJUNK[/video]
to the standard media bbcode:
Code:
[media=youtube]YOUTUBEID[/media]
Can someone who doesn't mind regular expressions help me on this one? :) Also, I'm not too good with mysql regex REPLACES as well!

THanks!
 

EQnoble

Well-known member
#2
Hello,

I'm doing a vb -> xf convert and i always get crushed on regular expressions. I'm trying to convert the following bbcode:
Code:
[video=youtube;YOUTUBEID]http://www.youtube.com/watch?v=YOUTUBEID&SOMEJUNK[/video]
to the standard media bbcode:
Code:
[media=youtube]YOUTUBEID[/media]
Can someone who doesn't mind regular expressions help me on this one? :) Also, I'm not too good with mysql regex REPLACES as well!

THanks!

Hi there...I have responded here... http://xenforo.com/community/threads/post-content-find-replace.6548/page-17#post-616508


You will need to install the addon from that thread.