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

XF 1.1 Media Link Error

Siber

New member
#3
yup Jake.

match URLs:
youtube.com/watch?v={$id}
youtube.com/v/{$id}
youtube.com/{$id}
youtube.com/*/u/*/{$id}
youtube.com/watch?feature=player_embedded&v={$id}

embeded HTML
<iframe width="500" height="300" src="http://www.youtube.com/embed/{$id}?wmode=opaque" frameborder="0" allowfullscreen></iframe>


put in Youtube link, get undefined error >.<
 

Mike

XenForo developer
Staff member
#5
This is an indication of a bad regex (or the regular expression option being selected when you didn't mean to) for one of the media sites -- not necessarily the one you're actually attempting to embed.
 

Siber

New member
#6

works fine here and work on my domain typing in media=youtube...

however place url into editor and error pop up.
 

Jake Bunce

XenForo moderator
Staff member
#7
More specifically, Mike and I are referring to these options:

Admin CP -> Home -> BB Code Media Sites -> [click the media site]
> Match URLs
> Advanced Options: Regular Expression Matching: Use 'Match URLs' as PCRE regular expressions


Either the Match URLs is bad or Use 'Match URLs' as PCRE regular expressions is enabled when it shouldn't be.