dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on September 09, 2016, 10:49:04 AM

Title: Open Embed
Post by: Chip on September 09, 2016, 10:49:04 AM
http://custom.simplemachines.org/mods/index.php?mod=4075

Open Embed is a BBCode that works with Open Graph, oEmbed and Meta information to embed media, such as videos or music, and site descriptions into your website post.

Instead of installing various mods to embed content from a web site you can embed content with this mod from any site that supports it with one simple BBC tag.

[embed]http://url.of.site/you/want/to/embed[/embed]

By placing the URL from the address bar in between the [embed][/embed] tags, this mod pulls Open Graph and Meta information shared freely from the site owner for display on your forum. By doing this your displaying the content the way the site author intended.

This mod caches the data in the database with a short TTL of only 30 days. This mod also uses the cache system with a TTL of 30 minutes.

Popular Supported Sites [Tested]
- Facebook
- MetaCafe
- YouTube
- Vimeo
- Vine

Live Examples
http://dev.sicomm.us/index.php?board=2.0;sort=subject

The sites that supply information for sharing their content are many. This is just a short list of sites that have been tested so far.

oEmbed Sites
Due to security concerns of the oEmbed standard, any site that shares its information via oEmbed must be added manually in the control panel in Modification Settings. You must add the site to the Allowed Sites list in the Open Embed menu.

For a list of oEmbed sites you can add to the white list, visit the link below.

http://oembed.com/#section6

Installed and works
Title: Re: Open Embed
Post by: Chip on September 09, 2016, 10:50:06 AM
[embed]https://web.facebook.com/photo.php?fbid=10153737360562201[/embed] shows:

Log into Facebook to start sharing and connecting with your friends, family, and people you know.
Title: Re: Open Embed
Post by: Chip on September 13, 2016, 05:20:07 AM
added to Shoutbox as a BBCode.
SimplePortal 2.3.6 © 2008-2014, SimplePortal