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

BbCode Media Sites...

Jaxel

Well-known member
#1
Okay, lets say I have a text field with a URL to a video.

I would like to parse the URL against the bbcode media sites list and return the embed code for that video. I know I can use XenForo_Helper_Media::convertMediaLinkToEmbedHtml, but the problem this has is it doesn't return the embed code, but instead the bbcode.

How do I get the embed code?