WordPress.org

Ready to get started?Download WordPress

Plugin Directory

IMDb Markup Syntax

Add IMDb syntax functionallity in your post. Enter simple tags and this plugin replace with IMBb data direct from IMDb Mobile Applications.

This plugin makes it possible to insert movie data in your text from the IMDb Web Service which is the same datasource that IMDb:s Mobile apps is using IMDb Mobile Applications. The plugin is

  • Stable: over 100 unit test.
  • Clean: no configuration, well integrated to WordPress API, no checkstyle errors.
  • Fast: No extra database writes, using only filter hooks (no actions hooks). IMDb DataSource is an RESTful interface.
  • Internationalizing: Support for locale from IMBb datasource, date format and number format.
  • Error handling: Well design and well tested error handling.

Simple example

In post edit mode you write:

[imdb:id(tt0110912)]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum venenatis eros non dui porta tincidunt.
Nulla ut mi eget justo ultrices auctor sed in lacus.

Title: [imdb:title]
Release Date: [imdb:date]

Vivamus id sem felis. Donec consequat urna et sapien gravida bibendum sed ut orci. Donec eu nibh leo.
Etiam hendrerit justo eget est vehicula eu ornare dolor vulputate. 

After you save it is transform to:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum venenatis eros non dui porta tincidunt.
Nulla ut mi eget justo ultrices auctor sed in lacus.

Title: Pulp Fiction
Release Date: 1994-10-14

Vivamus id sem felis. Donec consequat urna et sapien gravida bibendum sed ut orci. Donec eu nibh leo.
Etiam hendrerit justo eget est vehicula eu ornare dolor vulputate.

List of movies

In post edit mode you write:

[imdb-WhatIf:id(tt1486834)]
[imdblive-WhatIf:id(tt1486834)]
<h1>[imdb-WhatIf:title_nolink]</h1>
Ratings: [imdblive-WhatIf:rating]/10 from [imdblive-WhatIf:votes] users
<div>[imdb-WhatIf:poster]</div>

[imdb-AboutAlex:id(tt2667918)]
[imdblive-AboutAlex:id(tt2667918)]
<h1>[imdb-AboutAlex:title_nolink]</h1>
Ratings: [imdblive-AboutAlex:rating]/10 from [imdblive-AboutAlex:votes] users
<div>[imdb-AboutAlex:poster]</div>

All tags example

This example display all implements tags in one post. For you own test: cut and paste this example in a new post and save it.

[imdb:id(tt1951264)]
[imdblive:id(tt1951264)]
<table>
    <tr>
        <th>Tag description</th>
        <th>imdb tag (static)</th>
        <th>imdblive tag (dynamic)</th>
    </tr>
    <tr>
        <td>Cast (A list of main actors)</td>
        <td>[imdb:cast]</td>
        <td>[imdblive:cast]</td>
    </tr>
    <tr>
        <td>Cast (A list of main actors) no link</td>
        <td>[imdb:cast_nolink]</td>
        <td>[imdblive:cast_nolink]</td>
    </tr>
    <tr>
        <td>Certificate (Recommended age in your country)</td>
        <td>[imdb:certificate]</td>
        <td>[imdblive:certificate]</td>
    </tr>
    <tr>
        <td>Date (The day when a movie is shipped to exhibitors in your country)</td>
        <td>[imdb:date]</td>
        <td>[imdblive:date]</td>
    </tr>
    <tr>
        <td>Directors (The principal creative artist on a movie set)</td>
        <td>[imdb:directors]</td>
        <td>[imdblive:directors]</td>
    </tr>
    <tr>
        <td>Directors (The principal creative artist on a movie set) no link</td>
        <td>[imdb:directors_nolink]</td>
        <td>[imdblive:directors_nolink]</td>
    </tr>
    <tr>
        <td>Genres (One or more genres for current movie)</td>
        <td>[imdb:genres]</td>
        <td>[imdblive:genres]</td>
    </tr>
    <tr>
        <td>Plot (Description)</td>
        <td>[imdb:plot]</td>
        <td>[imdblive:plot]</td>
    </tr>
    <tr>
        <td>Poster (Current movie poster image from your lib)</td>
        <td><div>[imdb:poster]</div></td>
        <td>N/A</td>
    </tr>
    <tr>
        <td>Poster (Current movie poster image from your lib) no link</td>
        <td><div>[imdb:poster_nolink]</div></td>
        <td>N/A</td>
    </tr>
    <tr>
        <td>Poster Remote (Current movie poster image direct linked from imdb server) no link</td>
        <td>[imdb:posterRemote_nolink]</td>
        <td><div>[imdblive:posterRemote_nolink]</div></td>
    </tr>
    <tr>
        <td>Poster Remote (Current movie poster image direct linked from imdb server)</td>
        <td>[imdb:posterRemote]</td>
        <td><div>[imdblive:posterRemote]</div></td>
    </tr>
    <tr>
        <td>Rating (Rating scale from 1 to 10 with one decimal)</td>
        <td>[imdb:rating]</td>
        <td>[imdblive:rating]</td>
    </tr>
    <tr>
        <td>Runtime (Runtime in minutes for current movie)</td>
        <td>[imdb:runtime]</td>
        <td>[imdblive:runtime]</td>
    </tr>
    <tr>
        <td>Tagline (Branding slogan)</td>
        <td>[imdb:tagline]</td>
        <td>[imdblive:tagline]</td>
    </tr>
    <tr>
        <td>Tconst (IMDb ID)</td>
        <td>[imdb:tconst]</td>
        <td>[imdblive:tconst]</td>
    </tr>
    <tr>
        <td>Title (Prefered in your language)</td>
        <td>[imdb:title]</td>
        <td>[imdblive:title]</td>
    </tr>
    <tr>
        <td>Title (Prefered in your language) no link</td>
        <td>[imdb:title_nolink]</td>
        <td>[imdblive:title_nolink]</td>
    </tr>
    <tr>
        <td>Type (IMDb classifies)</td>
        <td>[imdb:type]</td>
        <td>[imdblive:type]</td>
    </tr>
    <tr>
        <td>Votes (Number of votes from imdb members)</td>
        <td>[imdb:votes]</td>
        <td>[imdblive:votes]</td>
    </tr>
    <tr>
        <td>Writers (Someone who creates a written work)</td>
        <td>[imdb:writers]</td>
        <td>[imdblive:writers]</td>
    </tr>
    <tr>
        <td>Writers (Someone who creates a written work) no link</td>
        <td>[imdb:writers_nolink]</td>
        <td>[imdblive:writers_nolink]</td>
    </tr>
    <tr>
        <td>Year (Publication year)</td>
        <td>[imdb:year]</td>
        <td>[imdblive:year]</td>
    </tr>
</table>

Requires: 3.3 or higher
Compatible up to: 3.9.2
Last Updated: 2014-8-4
Downloads: 2,537

Ratings

4 stars
4.6 out of 5 stars

Support

0 of 3 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1