XF 1.2 BBCode conversion question

viaBowl

Member
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!
 
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.
 
Top Bottom