Plugin / My Movie Database
Kostas StathakosDescription
Description
The My Movie Database plugin compliments your content by adding information about the movies, the television shows and the people in the industry you choose.
The plugin was developed to enrich your movie or tvshow content / review by ‘automatically’ adding the related information and allowing you to focus on your writing instead.
You can use it via shortcodes or the standard posts method, see below for more info and/or the live demo page.
The data comes from the Movie Database (TMDb), the leading crowdsourced movie industry information community. This means that this plugin will make calls to the TMDb api (in other words their ‘website service’) to retrieve the requested data. The TMDb API service is provided free of charge.
– The My-Movie-Database plugin uses the TMDb API but is in no way endorsed or certified by TMDb.
How to use the plugin
The My-Movie-Database (mmdb) plugin can be used via shortcodes or inside wordpress posts (and post types).
After installing the plugin three custom post types are created in wordpress: Movies, TvShows and Persons.
You can disable any one of them (or all of them if you want to use this plugin only via shortcode) by going into the Advanced options tab of the Movie Database options and selecting “No” for the post types you don’t want.
The shortcode method will always be available for all resource types (Movies, TvShows, etc) regardless of the state of the mmdb options for each post type.
Below is an outline of the two methods: WordPress posts and shortcodes
Using the plugin with WordPress posts
So as was mentioned above, by default the plugin will create three custom post types in wordpress: Movies, TvShows and Persons.
These custom post types behave just like your regular wordpress post type except that they have an mmdb section to configure.
Adding a New Movie (or editing a Movie post):
Below the content textarea of your Movie post you will find the mmdb search for a movie field.
-
Enter the title of the movie you are looking for and click on search.
-
You will then be presented with the search results. Click on the desired movie.
(screenshot 4)
- A pop up will appear asking you to confirm your selection or to return to the previous page.
(screenshot 5)
- Once you have confirmed your selection you must save the post.
That’s it! Now if you navigate to the url of your post (front-end), the movie information will be displayed.
Configuration and customization of display
From the plugin option page you can configure:
- which template will be used to display your resource
- if this should appear before or after the post content
- select from a predermined set of width combinations for multiple column arrangements as seen on sections like cast and crew.
- which sections to display/hide
- the header and body colors for the available templates
For the Movie posts only (in the advanced configuration option tab) :
- You have the option of using the default wordpress posts instead of a new custom post type.
- You also have the option of renaming the default WP posts into movies or leaving them as is (‘Posts’).
See the configuration documentation page for more detailed info.
All the of the above apply for TvShows and Persons as well.
Using the plugin with shortcodes
The plugin shortcode is [my_movie_db] . The parameters that can be set are id, type, template and size.
- The basic parameters that you need to set are id and type.
- Optional parameters to override the global plugin settings are : template, size, body (color) and header (color).
1-) id
The most important parameter is the id of the movie, tvshow or person info you wish to display. This parameter corresponds to the unique id of the resource at the TMDb website.
You can find the id by searching for the movie, tvshow or person:
-
In the respective custom post type edit screen in your wordpress backend See ‘Adding a New Movie (or editing a Movie post)’ above (visible on screenshot 5)
-
At the TMDb website:
Once you find the desired id you use it like this:
[my_mοvie_db id=yοur_id]
If you don’t specify an id the id of 655 will be used.
2-) type
The type parameter corresponds to the type of resource you are looking for. Possible acceptable values are movie, tvshow or person
So for example if you are looking to display a tvshow your shortcode should look like this:
[my-mοvie-db id=yοur_id type=tvshow]
The default type value is “movie” so if you don’t specify the type, the movie type will be used.
3-) template (optional – override)
The template parameter defines the mmdb template you wish to use to display your resource.
- Current templates available that ship with the plugin are **tabs** and **accordion.**
So if for example you want to use the accordion template file your shortcode will look like this:
[my-mοvie-db id=your_id type=yοur_type template=accordion]
The default template value is “tabs” so if you don’t specify the template, the tabs template will be used.
If you want to make/use your own template, and/or edit the existing templates reter to the configuration documentation under ‘Choosing the template to use’.
4-) size (optional – override)
Depending on the width setup/style of your target page, you can select from a predermined set of width combinations for a best fit. This setting only affects bootstrap multiple column arrangements (for now) as seen on sections like cast and crew.
So if you have a full-width area with a no sidebar layout you would choose ‘large‘, ‘medium‘ if you have one sidebar and ‘small‘ for a two sidebar area. The default value is ‘medium’.
[my-mοvie-db id=your_id type=yοur_type size=large]
See the width setting demo example on the plugin site page.
5-) header and body (optional – override)
The background color for the ‘body’ and ‘header’ area of the templates.
These two settings combine to give 2 color schemes to your tabs and accordion templates.
In the case of tabs, the selected and the hovered tabs will get the ‘header’ color as well.
Using a valid css color for these settings, your shortcode will look like this:
[my-mοvie-db id=your_id type=yοur_type size=large header=#265a88 body=#122a40]
Shortcode examples
See the demo shortcode examples on the plugin site page for more info.
Configuration and customization of display
From the plugin options page you can select which sections to display/hide, default templates, predefined widths, body and header colors, etc.
See the configuration documentation page for more detailed info.
Ratings
Rating breakdown
Details Information
Version
First Released
Total Downloads
Wordpress Version
Tested up to:
Require PHP Version:
Tags
Contributors
Languages
The plugin hasn't been transalated in any language other than English.
DIRECTORY DISCLAIMER
The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.
The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.
Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.
While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.
wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.