Linux 软件免费装
Banner图

IMDb Markup Syntax

开发者 HenrikRoos
更新时间 2015年5月18日 12:01
捐献地址: 去捐款
PHP版本: 3.3 及以上
WordPress版本: 4.2.2
版权: GPL-3.0
版权网址: 版权信息

标签

API Review Clean Movie Syntax IMDb Markup

下载

1.0 1.1 1.2 2.0 2.1 2.2 2.3 2.4 2.5

详情介绍:

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 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. Set language for a set av tags In post edit mode you write: [imdb:id(tt0110912)] [imdb:locale(de_DE)] 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] [imdb:id(tt0110912)] [imdb:locale(es)] 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] List of movies In post edit mode you write: [imdb-WhatIf:id(tt1486834)] [imdblive-WhatIf:id(tt1486834)] [imdb-WhatIf:title_nolink] Ratings: [imdblive-WhatIf:rating]/10 from [imdblive-WhatIf:votes] users [imdb-WhatIf:poster] [imdb-AboutAlex:id(tt2667918)] [imdblive-AboutAlex:id(tt2667918)] [imdb-AboutAlex:title_nolink] Ratings: [imdblive-AboutAlex:rating]/10 from [imdblive-AboutAlex:votes] users [imdb-AboutAlex:poster] 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)] Tag description imdb tag (static) imdblive tag (dynamic) Cast (A list of main actors) [imdb:cast] [imdblive:cast] Cast (A list of main actors) no link [imdb:cast_nolink] [imdblive:cast_nolink] Certificate (Recommended age in your country) [imdb:certificate] [imdblive:certificate] Date (The day when a movie is shipped to exhibitors in your country) [imdb:date] [imdblive:date] Directors (The principal creative artist on a movie set) [imdb:directors] [imdblive:directors] Directors (The principal creative artist on a movie set) no link [imdb:directors_nolink] [imdblive:directors_nolink] Genres (One or more genres for current movie) [imdb:genres] [imdblive:genres] Plot (Description) [imdb:plot] [imdblive:plot] Poster (Current movie poster image from your lib) [imdb:poster] N/A Poster (Current movie poster image from your lib) no link [imdb:poster_nolink] N/A Poster Remote (Current movie poster image direct linked from imdb server) no link [imdb:posterRemote_nolink] [imdblive:posterRemote_nolink] Poster Remote (Current movie poster image direct linked from imdb server) [imdb:posterRemote] [imdblive:posterRemote] Rating (Rating scale from 1 to 10 with one decimal) [imdb:rating] [imdblive:rating] Runtime (Runtime in minutes for current movie) [imdb:runtime] [imdblive:runtime] Tagline (Branding slogan) [imdb:tagline] [imdblive:tagline] Tconst (IMDb ID) [imdb:tconst] [imdblive:tconst] Title (Prefered in your language) [imdb:title] [imdblive:title] Title (Prefered in your language) no link [imdb:title_nolink] [imdblive:title_nolink] Type (IMDb classifies) [imdb:type] [imdblive:type] Votes (Number of votes from imdb members) [imdb:votes] [imdblive:votes] Writers (Someone who creates a written work) [imdb:writers] [imdblive:writers] Writers (Someone who creates a written work) no link [imdb:writers_nolink] [imdblive:writers_nolink] Year (Publication year) [imdb:year] [imdblive:year]

安装:

  1. Upload 'imdb-markup-syntax' to the '/wp-content/plugins/' directory,
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. PHP 5.3+ with PECL json 1.2+ and cURL is required.
How to use the plugin on your blog You have watched a movie and want to post a comment on it on your blog. With a few simple steps you can use this plugin to extract movie facts and display it on your blog which will complement your writing with professional and exact facts about the movie.
  1. Go to IMDb and search the movie you want to write about.
  2. Copy the movie id tag shown in the url, for example: http://www.imdb.com/title/tt0081505 i.e. tt0081505** This tag will help you to insert facts from the movie that will be displayed and highlighted when you are writing the movie title, name of the actors, the directors and so on.
  3. For example: [imdb:id(tt0081505)] Yesterday I saw an old movie, [imdb:title]. I really liked both the [imdb:directors] and the movie
  4. Your text will be displayed as: Yesterday I saw an old movie, The Shining. I really liked both the Stanley Kubrick and the movie
You can also insert statistics such as the number of people who has comment on the movie at IMDb´s website and this will be automatically updated whenever your own blog page is refreshed.

屏幕截图:

  • [IMDb site](http://www.imdb.com/)
  • Add New Post
  • Edit Post
  • View Post
  • Media Library
  • Edit Media

升级注意事项:

Current version is backward compatibility.

其他记录:

Markup Syntax [imdb:id(tt0000000)] Set the current movie. All tags starting with [imdb use this id. This ID disappearance when you save the post into your database. [imdblive:id(tt0000000)] Set the current movie. All tags starting with [imdblive use this id. This ID disappearance when you read the post from your database. [imdb:locale(en)] or [imdblive:locale(sv_se)] Set the current language in standard RFC 4646. All tags starting with [imdb [imdblive use this language (if imdb.com support that). [imdb:cast] or [imdblive:cast] A list of main actors (Updated 2.5). Example:Elijah Wood Frodo BagginsIan McKellen Gandalf the GreyOrlando Bloom Legolas GreenleafSean Bean Boromir [imdb:cast_nolink] or [imdblive:cast_nolink] A list of main actors with no links (Required 2.0, Updated 2.5). Example:Elijah Wood, Ian McKellen, Orlando Bloom, Sean Bean [imdb:certificate] or [imdblive:certificate] Various countries or regions have film classification boards for reviewing movies and rating their content in terms of its suitability for particular audiences. For many countries, movies are required to be advertised as having a particular "certificate" or "rating", forewarning audiences of possible "objectionable content". The nature of this "objectionable content" is determined mainly by contemporary national, social, religious, and political standards. The usual criteria which determine a film's certificate are violence and sexuality, with "mature" (adult) situations and especially blasphemy and political issues often being considered more important outside the Western world. This is by no means a hard and fast rule; see the Hays Production Code for an example. In some cases, a film classification board exhibits censorship by demanding changes be made to a movie in order to receive a certain rating. As many movies are targeted at a particular age group, studios must balance the content of their films against the demands of the classification board. Negotiations are common; studios agree to make certain changes to films in order to receive the required rating. The IMDb uses the term "Certificate" as opposed to "Rating" to avoid confusion with "ratings" meaning the opinions of critics. http://www.filmratings.com Classification and Rating Administration (CARA)NOTE: This tag has language dependency, different WordPress language different output.Example: Fight Club has certificate PG on english WordPress and 15 on swedish WordPress [imdb:date] or [imdblive:date] The day when a movie is shipped to exhibitors by the distributor, it is deemed to have been released for public viewing - there are no longer any studio restrictions on who can see the movie. If no release date is given as used publication year.NOTE: This tag has language dependency, different WordPress language different output.Example: Pulp Fiction has release date Fri Oct 14 1994 on english WordPress and Fre 25 Nov 1994 on swedish WordPress [imdb:directors] or [imdblive:directors] The principal creative artist on a movie set. A director is usually (but not always) the driving artistic source behind the filming process, and communicates to actors the way that he/she would like a particular scene played. A director's duties might also include casting, script editing, shot selection, shot composition, and editing. Typically, a director has complete artistic control over all aspects of the movie, but it is not uncommon for the director to be bound by agreements with either a producer or a studio. In some large productions, a director will delegate less important scenes to a second unit.Example: Director of Pan's Labyrinth is Guillermo del Toro** [imdb:directors_nolink] or [imdblive:directors_nolink] The principal creative artist on a movie set. A director is usually (but not always) the driving artistic source behind the filming process, and communicates to actors the way that he/she would like a particular scene played. A director's duties might also include casting, script editing, shot selection, shot composition, and editing. Typically, a director has complete artistic control over all aspects of the movie, but it is not uncommon for the director to be bound by agreements with either a producer or a studio. In some large productions, a director will delegate less important scenes to a second unit. Widhout link to imdbExample: Director of Pan's Labyrinth is Guillermo del Toro** [imdb:genres] or [imdblive:genres] One or more genres for current movie. http://www.imdb.com/genre IMDb list of all genres.Example: The Lord of the Rings: The Fellowship of the Ring has genres: Action, Adventure, Fantasy** [imdb:plot] or [imdblive:plot] A plot summary is a description of the story in a novel, film or other piece of storytelling. It is not a review and should not contain the opinions of the author. It should contain all the necessary information about the main characters and the unfolding drama to give a complete impression of the twists and turns in the plot, but without confusing the reader with unnecessary detail.Example: Les quatre cents coups has plot: Intensely touching story of a misunderstood young adolescent who left without attention, delves into a life of petty crime.** [imdb:poster] Current movie poster image download automatic to your WordPress Media Library and display image as medium size from library.Example: [imdb:poster_nolink] Current movie poster image download automatic to your WordPress Media Library and display image as medium size from library. Without link to imdb.Example: [imdb:posterRemote] or [imdblive:posterRemote] Current movie poster image direct linked from server (remote). No locale savings!Example: [imdb:posterRemote_nolink] or [imdblive:posterRemote_nolink] Current movie poster image direct linked from server (remote). No locale savings! Without link to imdbExample: [imdb:rating] or [imdblive:rating] Rating scale from 1 to 10 with one decimal where 10 is best.NOTE: This tag has language dependency, different WordPress language different output.Example: Pulp Fiction has rating 9.0 on english WordPress and 9,0 on swedish WordPress [imdb:runtime] or [imdblive:runtime] Runtime in minutes for current movie.NOTE: This tag has language dependency, different WordPress language different output.Example: The very long movie Matrjoschka has runtime 5700 min long on english WordPress and 5 700 min long on swedish WordPress [imdb:tagline] or [imdblive:tagline] A tagline is a variant of a branding slogan typically used in marketing materials and advertising.Example: Se7en has tagline Long is the way, and hard, that out of hell leads up to light.** [imdb:tconst] or [imdblive:tconst] Tconst/id for current movie.Example: Se7en has Tconst tt0114369** [imdb:title] or [imdblive:title] Title for current moive with link to imdb.com.Example: Se7en has title Se7en** [imdb:title_nolink] or [imdblive:title_nolink] Title for current moive without link to imdb.com.Example: Se7en has title Se7en** [imdb:type] or [imdblive:type] IMDb classifies titles under one of the following types: Example: Game of Thrones has type tv_series** [imdb:votes] or [imdblive:votes] Number of votes from imdb members for the current movie.NOTE: This tag has language dependency, different WordPress language different output.Example: Game of Thrones has votes 307,685 on english WordPress and 307 685 on swedish WordPress* [imdb:writers] or [imdblive:writers] A general term for someone who creates a written work, be it a novel, script, screenplay, or teleplay.Example: Game of Thrones has tow writers David Benioff (creator), D.B. Weiss (creator)** [imdb:writers_nolink] or [imdblive:writers_nolink] A general term for someone who creates a written work, be it a novel, script, screenplay, or teleplay. Widhout link to imdbExample: Game of Thrones has tow writers David Benioff - (creator), D.B. Weiss - (creator)** [imdb:year] or [imdblive:year] Publication year.Example: Pulp Fiction has publication year 1994 IMDb data copyright Limited non-commercial use of IMDb data is allowed, provided the following conditions are met:
  1. You agree to all the terms of our copyright/conditions of use statement. Please also note that IMDb reserves the right to withdraw permission to use the data at any time at our discretion.
  2. The data must be taken only direct from IMDb. You may not use data mining, robots, screen scraping, or similar online data gathering and extraction tools on our website.
  3. The data can only be used for personal and non-commercial use and must not be altered/republished/resold/repurposed to create any kind of online/offline database of movie information (except for individual personal use). Please refer to the copyright/license information enclosed in each file for further instructions and limitations on allowed usage.
  4. You must acknowledge the source of the data by including the following statement:
Information courtesy of The Internet Movie Database. Used with permission. May I use a photo from your site for my web site or publication? Most of the photos on our site are licensed to us for our own use only. We do not have the authority to sublicense them to others. Photos on our site may be licensed directly from the license holders. For photos from "our Studio Friends," you'll need to contact the studio or production company. We recommend contacting the publicity department for current releases and the home video department for older films. For most movies, there is a "company credits" link near the top of the lefthand column on the film's listing. That will provide the name of the studio(s) and companies involved with making the film. Please note that many of our "posters" for older films are actually just scans of their video or DVD packaging. We cannot sublicense those images. Please contact the appropriate studio. For images from agencies like WireImage, Getty Images and MPTV, their names are linked on pages where we display their photos. Click on their names for more information about the agencies and links to their web sites where you can get licensing information. See: http://pro.imdb.com/help/show_leaf?photoslicense

更新日志:

The code in WordPress plugin host is only production releases. Developers releases with unit-test and jenkins build config is hosted on GitHub 2.5
  1. Changes in [imdb:cast], [imdblive:cast]. Replace , to . Thanks Aloysius69 for you feedback!
  2. Changes in [imdb:cast_nolink], [imdblive:cast_nolink]. Show stars name without character name. Thanks reborn79 and bluecity for you feedback!
  3. Add support for WordPress 4.2
2.4
  1. Add support for WordPress 4.1
2.3
  1. Add support for php 5.3. Must have php 5.3+.
2.2
  1. New feature: Add support for [imdb:locale(...)] tag. Thanks nexplissken
  2. Better support for WordPress Coding Standards for PHP_CodeSniffer
  3. PHPUnit improvement for PhpStorm 8
  4. Tested and supported for WordPress 4.0
  5. Must have php 5.4+
2.1
  1. New feature: Added support for one-off tags with embedded IDs e.g. imdb-AboutAlex, imdblive-IntotheStorm, imdb-zaq12wsx, ... GitHub issue #8 Thanks to Daniel!
  2. Tested and supported for WordPress 3.9.1
2.0
  1. New feature: Handle mulit tags in same content e.g. imdb-a, imdb-b, ... imdb-z GitHub issue #2
  2. New feature: New tags cast_nolink, directors_nolink, poster_nolink, posterRemote_nolink, title_nolink and writers_nolink with no links to imdb.com. Thanks williamxd3 GitHub issue #4
  3. New feature: New tag year Year of publication of the movie. Thanks gauwain GitHub issue #5
  4. Update feature: Adding support to tags in post title e.g [imdb:id(tt1951264)][imdb:title_nolink] Thanks ray19 GitHub issue #3
  5. Tested and supported for WordPress 3.8
1.2
  1. Tested and supported for WordPress 3.6
  2. Improve error handling
1.1
  1. Delete some options for a cURL transfer - use default instead.
  2. Improve error handling for cURL transfer.
  3. Add support for WordPress 3.5.2.
1.0 First stable release, tested from English WordPress (3.3, 3.3.1, 3.3.2, 3.3.3, 3.4, 3.4.1, 3.4.2, 3.5, 3.5.1), Svenska WordPress 3.5.1, Español WordPress 3.5.1 and ئۇيغۇرچە WordPress 3.5.1. Error messages in English and Swedish is supported. Easy to contribute and make changes If you want to be involved in developing this plug along, you are welcome to attend. The code is structured, well commented and have very high test coverage, so it is easy to contribute and make changes. Of course you get a license for PhpStorm 8!