GithubHelp home page GithubHelp logo

embedly / embedly_wordpress_plugin Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 13.0 3.74 MB

The Embedly Wordpress plugin allows bloggers to embed videos, images and rich media from 300+ providers with just the url.

Home Page: http://embed.ly/wordpress

CSS 13.41% PHP 60.10% JavaScript 26.49%

embedly_wordpress_plugin's People

Contributors

buildingbot avatar ninnypants avatar r-a-y avatar rinatkhaziev avatar screeley avatar stiteler avatar tboetig avatar tomboetig avatar whichlight avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

embedly_wordpress_plugin's Issues

Embedly-inserted markup is being filtered from the editor on draft save

  • Create a new post
  • Write some crap about something: blah blah.
  • Ensure focus is on the content area of the editor.
  • Click the embedly icon
  • Enter: http://ponga.com/fdbf4c1e377fa467 650 x 600
  • Hit preview, watch as the preview appears perfectly.
  • Click embed.
  • See the magical embedly blue box, yay.

Markup at this point looks like this:

<div class="mceItemEmbedly" style="max-width:650px;overflow:hidden;max-height:600px;" data-ajax="{'url':'http://ponga.com/fdbf4c1e377fa467','width':'650','words':null,'height':'600','embed':'&lt;div class=\&quot;embedly\&quot; style=\&quot;position:relative; \&quot;&gt;&lt;iframe src=\&quot;http://ponga.com/embedded?id=fdbf4c1e377fa467\&quot; width=\&quot;650\&quot; height=\&quot;488\&quot; frameborder=\&quot;0\&quot; allowfullscreen=\&quot;true\&quot;&gt;&lt;/iframe&gt;&lt;div class=\&quot;media-attribution\&quot;&gt;&lt;span&gt;via &lt;/span&gt;           &lt;img class=\&quot;embedly-favicon\&quot; width=\&quot;16px\&quot; height=\&quot;16px\&quot; src=\&quot;http://ponga.com/favicon.ico\&quot;&gt;&lt;a href=\&quot;http://ponga.com/\&quot; class=\&quot;media-attribution-link\&quot; target=\&quot;_blank\&quot;&gt;Ponga&lt;/a&gt;          &lt;/div&gt;&lt;div style=\&quot;clear:both;\&quot;&gt;&lt;/div&gt;&lt;div class=\&quot;embedly-clear\&quot;&gt;&lt;/div&gt;&lt;/div&gt;'}">
<div class="embedly" style="position:relative; "><iframe src="http://ponga.com/embedded?id=fdbf4c1e377fa467" width="650" height="488" frameborder="0" allowfullscreen="true"></iframe>
<div class="media-attribution"><span>via </span>           <img class="embedly-favicon" width="16px" height="16px" src="http://ponga.com/favicon.ico"><a href="http://ponga.com/" class="media-attribution-link" target="_blank">Ponga</a></div>
<div style="clear:both;"></div>
<div class="embedly-clear"></div>
</div>
</div>
  • Click the 'Save draft' button of doom

Note that the markup is now:

<div class="mceItemEmbedly" style="overflow:hidden">
<div class="embedly">
<div class="media-attribution"><span>via </span>           <img class="embedly-favicon" width="16px" height="16px" src="http://ponga.com/favicon.ico"><a href="http://ponga.com/" class="media-attribution-link" target="_blank">Ponga</a></div>
<div style="clear:both"></div>
<div class="embedly-clear"></div>
</div>
</div>

So the embed obviously doesn't work after this point.

  • The user authoring the post is an administrator
  • This should work for editor roles and above, correct?
  • For another admin user, this works perfectly.

Likely this isn't an embedly issue, but a horrible wordpress-pre-save-filter-spaghetti issue which we'll look into separately, but thought you guys might want to know that it can break

Any idea?

_a

Embedly does not load on wordpress 4.0

Hy!
I use this wordpress plugin and just wont load.
I click for the embedly button, the lightbox is shows, and there noting loading.
I use latest version of embed.ly wordpress plugin.

deprecated 'add_menu_page' used

change line 163 from

add_menu_page('Embedly', 'Embedly', 'administrator',

to

add_menu_page('Embedly', 'Embedly', 'edit_pages',

to remove wordpress debug warning:
PHP Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in/wp-includes/functions.php on line 3466

validate_api_key is fired on each frontend request

Hi,

validate_api_key method is hooked to plugins_loaded, which fires on each request, making a remote request which is detrimental to site performance. I'm not sure why it's done this way, since I'm not familiar with the platform, but I moved it admin_init hook, which is still suboptimal but at least it's not going to affect frontend. Probably it's better to move it to a wp cron hook. After all, how often keys are getting invalidated?

Cheers,
Rinat.

oembed in theme template files

I'd like to access a custom field that contains the URL for an oembed, then display the embed within a template file using the plugin. Is this possible?

Embedly doesn't embed

Hi!
I am trying to figure out why links-in-one-line aren't replaced by riched embedded content with embedly. The installation is done over a wordpress blog (akae.es) following the simple instructions at the plugin page ( http://wordpress.org/extend/plugins/embedly/ ). Is there anything else for me to do with the install so the links are "detected"? WP 3.0.1_Es
Thanks!

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.