Facebook  Twitter 


+- +-


+- User Information

Welcome, Guest.
Please login or register.
Forgot your password?

+- Forum Stats

Total Members: 12350
Latest: cl4ude327
New This Month: 2
New This Week: 0
New Today: 0
Total Posts: 40054
Total Topics: 7052
Most Online Today: 49
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 49
Total: 50

Author Topic: [Mod]Open Embed  (Read 1328 times)

0 Members and 1 Guest are viewing this topic.

Offline nend

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • SIComm.us
[Mod]Open Embed
« on: February 03, 2016, 07:50:45 pm »
Open Embed


Open Embed is a BBCode that works with Open Graph 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.

Code: [Select]
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

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.

PHP 5 or greater


- Initial pre-release

! Moved cache_put for a successful database call to the if statement for max-age to prevent stale data from being cached.
+ Added support for HTML 5 video and audio.
+ Added fallback support for text/html video to iframe.
! Moved $data = array() to else statement.
- Removed HTML 5 video support as it isn't fully supported.
+ Added some more meta phasing for og:video:url
+ Added code to disregard text/html video.
+ Added scheduled task to purge old data.
- Remove update support from main function.
! Renamed modification to Open Embed.
! Fixed errors with xpath when property isn't found.

+ Added some support to remove autoplay from url string.
+ Added oEmbed JSON support. (Only in a iframe via JavaScript as any other option isn't wise)
! Updated install with Margaretts suggestions.
! Changed video support from iframe to embed
+ Added useragent string. (Some sites are back in the 00s, browser discrimination it's called.)
+ Other stuff I may have forgotten...

- Removed JavaScript iFrame for oEmbed as it wasn't always working right and may be insecure.
+ Added a allowed list of trusted sites mainly for oEmbed.
! Fixed bug in oEmbed with initial json_decode as it wasn't set to be returned as a array.
« Last Edit: February 04, 2016, 07:08:08 am by nend »


Related Topics

  Subject / Started by Replies Last post
9 Replies
Last post September 13, 2007, 08:44:23 pm
by ApplianceJunk
7 Replies
Last post December 13, 2013, 01:15:20 pm
by SMFHacks
3 Replies
Last post February 04, 2016, 09:50:05 pm
by nend
0 Replies
Last post February 08, 2016, 07:40:25 am
by nend
0 Replies
Last post February 28, 2016, 10:26:44 pm
by nend

+- Recent Topics

Cannot install Gallery Pro on SMF 2.1 RC2 by SMFHacks
Today at 07:30:15 am

[Mod]Avatars Display Integration by SMFHacks
February 15, 2020, 07:30:47 pm

[Mod]BBC Message Boxes 1.0 by SMFHacks
February 15, 2020, 07:26:46 pm

[Mod]Stack Trace by live627 by SMFHacks
February 15, 2020, 07:21:33 pm

Stripe Integration by SMFHacks
February 08, 2020, 10:55:29 pm

SMF Store 4.0 Released by SMFHacks
January 26, 2020, 12:11:56 pm

Order of photos by D4611001
January 21, 2020, 12:06:36 pm

Cannot install by SMFHacks
January 18, 2020, 09:40:56 pm

Call to undefined function mysql_query() by SMFHacks
January 18, 2020, 02:06:47 pm

English British Translation file by HAL9000
January 17, 2020, 05:44:28 pm

Powered by EzPortal