MG 2.1 Help me with this Media BBcode site.

dondomainer

Active member
I found


a 100% legal free movie.so i try to create an custom BBcode.

Code:
(^https?://(?:[^./]+\.)*popcornflix\.com/.(?'id'))i

embed tamplate

Code:
<iframe src="https://www.popcornflix.com/watch/channel/new-releases/movie/{$id}?autoplay=true&autoplayMuted=true&autoplayNext=true&embed=true" frameborder="0" scrolling="no" width="560" height="315" allowfullscreen style="overflow: auto; -webkit-overflow-scrolling: touch;"></iframe>

but i get "

The specified URL cannot be embedded as media. .. what i missing here ?

Thanks.
 
Here is a custom BB code for embedding a TEDTalk video:

Code:
<div style="max-width:854px"><div style="position:relative;height:0;padding-bottom:56.25%"><iframe src="https://embed.ted.com/talks/{param}" width="854" height="480" style="position:absolute;left:0;top:0;width:100%;height:100%" frameborder="0" scrolling="no" allowfullscreen></iframe></div></div>

Note the inclusion of {param} in the replacement code.

Then to use this, I've defined the tag as "ted" so all I need to add between the tags is the {param} part, in this case the title of the video which is obtained from the last part of the URL, like this:

Code:
[ted]jason_b_rosenthal_the_journey_through_loss_and_grief[/ted]

You need to do something similar for your custom BBCode.
 
Here is a custom BB code for embedding a TEDTalk video:

Code:
<div style="max-width:854px"><div style="position:relative;height:0;padding-bottom:56.25%"><iframe src="https://embed.ted.com/talks/{param}" width="854" height="480" style="position:absolute;left:0;top:0;width:100%;height:100%" frameborder="0" scrolling="no" allowfullscreen></iframe></div></div>

Note the inclusion of {param} in the replacement code.

Then to use this, I've defined the tag as "ted" so all I need to add between the tags is the {param} part, in this case the title of the video which is obtained from the last part of the URL, like this:

Code:
[ted]jason_b_rosenthal_the_journey_through_loss_and_grief[/ted]

You need to do something similar for your custom BBCode.

great, thanks for you help.
 
Top Bottom