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

XF 1.5 BB Code Media Sites Help

#1
So i was trying to make a bb code media for challonge then i came up with several scenarios

No problem with this type of url http://challonge.com/coldqs since i just have to do simple replace http://challonge.com/{$id}

Embed HTML:
<iframe src="https://challonge.com/{$id}/module" width="100%" height="600" frameborder="0" scrolling="auto" allowtransparency="true"></iframe>

Need help if it has subdomain example below
http://eulcs2k.challonge.com/EULCSSP2014F

Can i get 2 ids? i was thinking of just capturing the whole url http://eulcs2k.challonge.com/EULCSSP2014F but not sure how to this

Embed HTML would look like this
<iframe src="https://{$id}/module" width="100%" height="600" frameborder="0" scrolling="auto" allowtransparency="true"></iframe>

If we can capture the whole url this can used as a like generic bb code media.
 

Brogan

XenForo moderator
Staff member
#2
Is the subdomain always the same?
I suspect not as it seems to be related to the actual media.

In which case you would likely need a PHP callback to deal with it.