2017 © Pedro Peláez
 

elgg-plugin oembed

Provides oEmbed support for URLs in text

image

coldtrick/oembed

Provides oEmbed support for URLs in text

  • Thursday, April 26, 2018
  • by jeabakker
  • Repository
  • 2 Watchers
  • 0 Stars
  • 373 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 18 % Grown

The README.md

oEmbed

Elgg 5.0 Elgg 6.0 Lint Checks Latest Stable Version License, (*1)

Provides oEmbed support for URLs in text, (*2)

Features

  • This plugin tries to replace URLs in output/longtext with embed code. For example if you paste a YouTube URL it will be replaced by the embed code for that URL.
  • Nothing is done to the original text, so if the plugin is disabled all original links are still present.
  • In order to control which URLs should be replaced there is a plugin setting for a whitelist and a blacklist. If the whitelist is set only those URLs will be replaced and the blacklist is ignored. If only the blacklist is set, every URL except those on the blacklist will be replaced.

Caching

The results of the oEmbed requests is cached in system cache. This is to increase performance and reusability. If the cache is flushed requests will be made again., (*3)

Developers

Prevent oEmbed

In order to prevent the use of oEmbed on your use of output/longtext set a var 'oembed' => false., (*4)

Modifying valid URL

Before an oEmbed adapter is created based on a valid URL an event is triggered. This allows last minute changes to the URL (eg. adding validation tokens). The event is replace_url, oembed. The return value should be a URL. in the $params you get the original url under url., (*5)

Output views

To change the output of the oEmbed code the different types have their own view oembed/type/{$oembed_type}., (*6)

The Versions

26/04 2018

dev-master

9999999-dev

Provides oEmbed support for URLs in text

  Sources   Download

GPL-2.0 GPL-2.0-only

The Requires

 

The Development Requires

plugin elgg

08/03 2018

v1.2.1

1.2.1.0

Provides oEmbed support for URLs in text

  Sources   Download

GPL-2.0-only

The Requires

 

The Development Requires

plugin elgg

25/01 2018

v1.2

1.2.0.0

Provides oEmbed support for URLs in text

  Sources   Download

GPL-2.0-only

The Requires

 

The Development Requires

plugin elgg

14/12 2017

v1.1

1.1.0.0

Provides oEmbed support for URLs in text

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin elgg

12/07 2017

v1.0

1.0.0.0

Provides oEmbed support for URLs in text

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin elgg

14/06 2017

v1.0-beta.1

1.0.0.0-beta1

Provides oEmbed support for URLs in text

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

plugin elgg