Dipity.com Dipity Blog

Archive for July, 2011

Dipity now oEmbed Positive

Do you have a WordPress.org blog? Do you want to enable easy embedding of your Dipity timeline? Well, good news, Dipity is now oEmbed positive. Thanks to a slick bit of engineering from our developer team WordPress/Dipity users with programatic knowledge can now turn on this oSo useful feature.

Harry Potter Wants You to Try the Dipity oEmbed

Harry Potter Wants You to Try the Dipity oEmbed

So what is an oEmbed? It’s essentially a way to make embedding easier. Instead of using a clunky, hefty embed code, you simply copy and paste the URL and the internet magically grabs the code for you. It’s your chance to use Dipity just like Harry Potter would. According to oEmbed.com, “oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.”

For Dipity, enabling oEmbed also represents a step in the right direction for making it on the WordPress.com internal whitelist. This will finally allow Dipity users with hosted WordPress.com blogs to embed our timelines. It will also open the Dipity oEmbed up to other services.

In order to use the Dipity oEmbed on your WordPress.org site, take a look at these instructions:

To find out more about the oEmbed standard, have a look at oEmbed.com. The dipity oEmbed endpoint is located at http://www.dipity.com/oembed/timeline/
It accepts any URL pointing to a dipity timeline and supports JSON (default) and XML. If you are able to access your theme’s code, you can programmatically add Dipity to your Wordpress instance’s whitelist. Simply add the following line of code into your theme’s functions.php file: wp_oembed_add_provider(’#http://(www.)?dipity.com/([/]+)/([/]+)/#’,’http://www.dipity.com/oembed/timeline/’,true).

Once you have done this, you will be able to use your Dipity widget on your blog simply by entering your the URL.

Good luck and godspeed!

-Steve

2 comments