Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 241
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 218
Total: 218

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

0 Members and 1 Guest are viewing this topic.

Offline nend

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

http://www.smfhacks.com/index.php?action=downloads;sa=view;down=184

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]
[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

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.

Requirements
PHP 5 or greater

Changelog:
0.1

- Initial pre-release

0.2
! 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.

0.3
+ 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...

0.4
- 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
7501 Views
Last post September 13, 2007, 08:44:23 pm
by ApplianceJunk
2 Replies
6336 Views
Last post November 04, 2008, 06:21:09 pm
by pioneer
3 Replies
3656 Views
Last post February 04, 2016, 09:50:05 pm
by nend
0 Replies
2267 Views
Last post February 08, 2016, 07:40:25 am
by nend
0 Replies
2411 Views
Last post February 28, 2016, 10:26:44 pm
by nend

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal