Replaces URLs associated with a whitelisted group of providers with embedded media content based on the oEmbed format.
Simply add a URL on it's own line for one of the supported providers into a forum post, page, or comment text body and it will replace the URL with embedded media from the provider in it's place.
Example Usage
Hmmm.. https://twitter.com/THErealDVORAK/status/354694500976820225 Ya, that's sounds about right.
Use the BBCode [embed]url here[/embed] to embed anywhere in your text body:
Example Usage
Lorem ipsum dolor [embed]https://www.youtube.com/watch?v=vx50HspXtWA[/embed] sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
The embed BBCode also takes height and width attributes:
Example Usage
[embed width="200" height="200"]url here[/embed]
This plugin can be found on GitHub.
Thanked: 74 times
Nice one!
Thanked: 5 times
So, you add an url to a youtube video in a post or page and this plugin will automatically make it an embedded video?
Same with images? All you need is to put the url to an image in a post/page and this gets changed to an embedded image automatically?
But, I do not userstand why one time you can just add the link and the other time you need to use the embed bbcode.
Or maybe I am just dumb but can you shine some light on that? I read the oEmbed page but I am still a bit confused.
Thanked: 16 times
You are correct.
If you put a URL on it's own line, it automatically gets embeded. URLs do not automatically produce embeded content unless they are on their own line.
If you wrap the URL in the BBCode, you can embed content inside paragraphs, and well basically anywhere. These can be on their own line or not.
If you didn't wrap the URL in a BBCode and the URL is inside a line of text, it won't get embeded. The reason for the BBCode is to not embed URLs in text bodies that weren't originally intended, that may also produce wierd looking posts. The BBCode also allows you to use height and width attributes.
Thanked: 5 times
Ahh, now I get. Yes that is very nice. Thanks for taking the time to explain some more :)
Thanked: 181 times
Great!
I Had the same idea for plug but with local defined providers.
Thanked: 87 times
После изменений в API youtube в oembed.functions стоит для ютуба изменить протокол на https
http://www.youtube = https://www.youtube
и тд