Coder Social home page Coder Social logo

oembed's Introduction

oEmbed

Elgg 5.0 Elgg 6.0 Lint Checks Latest Stable Version License

Provides oEmbed support for URLs in text

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.

Developers

Prevent oEmbed

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

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.

Output views

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

oembed's People

Contributors

jeabakker avatar jdalsem avatar

Stargazers

klermór avatar Oranyero avatar Olivier Seguin avatar

Watchers

James Cloos avatar  avatar  avatar klermór avatar

Forkers

symplace danhype

oembed's Issues

500 error opening plugin settings

Elgg version
Which version of Elgg are you using
4.3.4

Plugin version
Which version of the plugin are you using
4.0
Plugin source

Describe the bug
A clear and concise description of what the bug is.
When I try to open Settings I get a 500 error.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://social.elonara.com/admin/plugins'
  2. Scroll down to 'oembed'
  3. Click on "Settings"

Also,

  1. Go to Administration > Configure > Plugin Settings > oEmbed

In both cases the result is a 500 error.

Expected behavior
A clear and concise description of what you expected to happen.
I expect the action to result in the same result as in my clone from the previous install. I have a ver. 4.2 installation that is working properly and am trying to add this functionality to my 4.3.4 fresh installation.

Screenshots
If applicable, add screenshots to help explain your problem.
This page isn’t working
social.elonara.com is currently unable to handle this request.
HTTP ERROR 500

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.