Onebox: A Fancy Hyperlink Display Plugin for WordPress
This plugin lets you use a shortcode
[onebox url="http://example.com" title="optional title" description="optional description"] in place of a link that will display a lovely Facebook/Twitter-style box with additional information about the link.
WordPress has built-in support for some links like Google+ or Twitter, where it will generate a nice-looking embed from a link or shortcode, but what about other sites? Onebox aims to extend this by letting you turn any link into an embedded box, with extra features for some special sites, and with a fully customisable HTML template.How does the plugin work?
Many webpages now have metadata in their header with a description and image to help sites like Twitter or Facebook generate embeds. Onebox can read this same data to generate similar embeds. In addition, the plugin makes use of a number of "parsers" to scan for specific sites and pull out even more data to use.Where can I see it in action?
A demo site is set up at http://onebox.surrealroad.com
The source is maintained on GitHub: https://github.com/surrealroad/wp-oneboxRequirements
The following modules are optional, but highly recommended: * APC extension for PHP * GeoIP extension for PHPCurrently supported sites
others to follow
(* site uses affiliate links)Note
This plugin renders affiliate links for some websites in order to support its development. You are more than welcome to fork or modify the source if you don't want to allow this.
TODO: * Add more parsers
Additional credits * Inspired by the "Onebox" ruby gem (https://github.com/dysania/onebox) * Open Graph Protocol helper for PHP * Amazon ECS PHP Library * forceutf8 * Vanilla template based on "Facebook Notify Widget" by Pixels Daily and GitHub-jQuery-Repo-Widget * Flat template based on "FlatPad" by Repix Design * PHPQuery * Icons by Symbly * Italian translation by Mte90