Aug 30 2008
Imdb link transformer wordpress plugin

What’s that ?

Imdb link transformer - popup and widget IMDb link transformer aims to ease the movies information search process, for both the blog writer and the blog reader. All movies’s names which are tagged between
<!--imdb-->nameMovie<!--/imdb-->
are automatically turned into an url. This url can open a new window (a popup) containing many useful data related to the movie itself. IMDb link transformer transforms all the words you tagged into links to an informative windows. It means one can view the filmmaker, the casting or the goofs that www.imdb.com website includes with one click; it can show either the director or the movie related data (biography, filmography, miscellaneous related to the director; casting, goofs, AKA titles, crew and many others related to the movie).

Example: 2001, a space odyssey (click the link, and browse). Or you can alternatively have a glance to this movie page reviews. The popup contains a (few) words in French, because this blog currently uses that language. But please note Imdb link transformer supports already English and Portuguese; if you want to translate the plugin into your language, use the comment field below or drop me a mail sorry, I hate spam).

This plugin also add displays buttons in writing interfaces (both HTML and Visual).

You can also activate the imdb link transformer widget, which will display information parsed from IMDb straight on your sidebar (or where is attached your widget). After activating the widget, every time you will add the key “imdb-movie-widget” to the custom field to your message *and* the name of the movie to “value”, the information related to selected movie will be displayed on the sidebar.

In the same way, this plugin can display many movie’s related data inside a post, when putting a movie name in [ imdblt][ /imdblt] tags (remove spaces). No widget needed, and movie’s data can be displayed anywhere inside posts.

IMDb link transformer is a great tool to inform yourself and to provide many trivias on your post! It is very versatile and multi-functional. Blogger can display data in many ways (popup, widget, straight into the post), and can fine-tune data with admin options and css.

Download

Imdb link transformer v. 1.5

How to install

required

Imdb link transformer - settings admin 1. Unzip and put the “imdb-link-transformer” folder into your plugin folder (usually wp-content/plugins/)
2. Activate the plugin (using the settings tab from admin board)
3. Configure the plugin (settings admin board). Values should be automatically completed, but check them anyway.
4. Create the cache directories (cache and photo directories). The plugin is preconfigured to work with “/wp-content/cache/imdb” and “/wp-content/cache/imdb/images”. Deactivate the cache (advanced – cache management section) otherwise, if you don’t want to use the cache. Either you use or you don’t, the plugin will work – but be aware that without cache, process will take a long time, each time…
5. Give read & write permissions to these two cache directories (see 4).

basic options

0. There is three ways to use IMDb link transformer: popup link creator, widget and inside a post. Each option can be combined with any other, as blogger wants; there is no limitation, feel you free to use all three at once!
1. When writing your post, add either <!–imdb–>nameMovie<!–/imdb–> tags to your movie’s name (if you disabled visual editor, and that you have HTML interface) or click on imdb link transformer’s button after selecting the movie’s name. As a result of this, a link which will open a popup will be created. The popup contains many data and is extensively browsable.
2. Widget can be activated, and used in a way where informations will be displayed inside it. Once widget is activated, look closely to select what you want to display on your sidebar: options are available on imdb admin settings tab. Also add “imdb-movie-widget” or “imdb-movie-widget-bymid” to your message’s custom field; the value you will add will be the movie that will be displayed inside the widget. Check faqs.
3. (new) The plugin can now show IMDb data inside a post. When writing your post, put the movie name inside tags [ imdblt][ /imdblt] (which gives ie [ imdblt]Fight club[ /imdblt]). No third party plugin needed anymore.
You may also edit the “/* —- imdbincluded */” part from imdb.css to customize layout according your taste.

Fine tuning:

1. The files inc/imdb-movie.inc.php, popup.php, imdb_movie.php and imdb_person.php could be modified to match your theme; check also /css/imdb.css if you want to customize default theme.
2. A (front) page can be created to include all you movies’ related messages. Have a look there : personal critics page.
3. If your language is not included… translate .po file (inside /lang directory) to yours! And send it to me, of course, thus many people would enjoy IMDb in a new language.

Advanced:

1. If you are not interested in having links opening popup windows but look only for informations displayed (both in widget and posts), look for “widget options / Remove popup links?” and switch the option to “yes”. There will be no more links opening a popup (both in widget and posts).

Update

1. Remove the old IMDb link transformer and install the new. Or use the automated update from wordpress.
2. Go to the IMDb link transformer settings, and click on “reset”.

Faq

How to add the imdb widget ?

Imdb link transformer - custom fields First, go to “design”, “widget”, add “imdb widget” to a sidbar (click on “add”), and change the box’s title (in case you don’t want to have the box named “IMDb data”).

Secondly, open an old post (or write a new) and add the key “imdb-movie-widget” to the custom field of your message *and* the name of the movie you want to display to “value”. IMDb link transformer will automatically display into the widget the movie selected.

Another possibility : add to your post the key “imdb-movie-widget-bymid” into the custom field from your message *and* the IMDb ID for the movie you want to be displayed on your sidebar to “value”. Instead of looking for a name, IMDb link transformer would directly display the movie you want to display. Very handy when your movie’s name doesn’t work as it should (if there are many movies with the same name, the wrong movie is displayed, etc). To get the movie’s IMDb id, search for a title on IMDb website, look at the adress bar for a “ttXXXXX” section, keep only the number part (XXXXX) and add result to the “value” meta field. However, in this specific case, do not mix with an “imdb-movie-widget” key neither add several “imdb-movie-widget-bymid” fields. Only the first one will be displayed.

How to display movie data inside my message?

When writing your post, put the movie name inside tags [ imdblt][ /imdblt] (remove spaces).

I don’t want to have links to a popup window!

Look for “imdb settings / widget options / Remove popup links?” and switch the option to “yes”. No links anymore, for both widget and inside a post.

Can I suggest a feature/report a bug regarding the plugin?

Of course, let a message right here.

How to support ?

Under the GPL licence, “IMDb link transformer” is based on the classes coming from imdbphp project. However, a huge customization work has been required to implement it to wordpress; many new features have been developed as well. If you feel somewhat generous, please click paypal image (from plugin settings).

Release history

Check the changelog here

Special thanks

Well, maybe Izzy, who made the IMDb class available?
Also thanks to Murillo Ferrari for the Brazilian translation, to Andrés Cabrera for the Spanish translation.



Vote for this message:
1 étoile2 étoiles3 étoiles4 étoiles5 étoiles6 étoiles (2 vote(s), moyenne : 3.50 )
Loading ... Loading ...
Filed under: Général   Tags:
Partager et découvrir :
  • Digg
  • del.icio.us
  • Technorati
  • Facebook
  • Google Bookmarks
  • MySpace
  • Netvibes
  • Twitter
  • Yahoo! Bookmarks
  • Wikio FR

| RSS 2.0 des commentaires

106 commentaires sur “Imdb link transformer wordpress plugin”



  1. A quick new release, still at beta stage since I’ve not been able to go through my usual quality process completly:

    http://downloads.wordpress.org/plugin/imdb-link-transformer.zip

    It should correct many issues, especially the ones related to missing datas. This release already uses next libraries developed by Izzy, which will be a major change to the plugin. But Izzy seems currently very busy (as I am), so I release “as it” the beta plugin.

    Don’t expect a quick new release, except if “easy” bugs are found :)




  2. hello, i tried to install this plugin but whenever i try to get to the options page i see this message
    ”You do not have sufficient permissions to access this page.”

    If i upload it on a live website it gets activated and works fine. The problem is on a local installation.

    I tried it on one that has many other successfully installed plugins and this is the only one i get this message!!!

    any workaround?? tia


» Pingback «
»IMDBPHP: librería PHP para acceder al API de IMDB | Adobe User Group Granada (trial) IMDBPHP: librería PHP para acceder al API de IMDB | Adobe User Group Granada (trial) «

[...] IMDBPHP es una librería PHP que nos permite acceder a la API de IMDB y así poder obtener datos sobre series y películas para nuestras aplicaciones web, como por ejemplo un plugin para WordPress. [...]



» Pingback «
»IMDBPHP: librería PHP para acceder al API de IMDB | Sentido Web IMDBPHP: librería PHP para acceder al API de IMDB | Sentido Web «

[...] IMDBPHP es una librería PHP que nos permite acceder a la API de IMDB y así poder obtener datos sobre series y películas para nuestras aplicaciones web, como por ejemplo un plugin para WordPress. [...]





  1. So, are you planning on fixing this to work with wordpress, or not?
    Currently, this does nothing but give errors when the tag [imdblt] is used!!!




    • Hi,

      Some previous issues you mentionned are fixed in development release.

      Shamefully, I don’t have enough spare time to finish that very release right now.

      However, tag [imdlt] should work; I’ve not been able to reproduce the same (wrong) behaviour on my side…

      Sorry, but can’t manage right now either to implement new fonctions or go into debug process :(




      • I guess that just because YOU can’t reproduce the error means nobody else can, right? WRONG! The error is there!

        On further investigation, YOUR ADDON caused my ip address to be blocked by IMDB. Yup, that’s right, blocked. So, your addon does not process information properly, and when no results are returned, does not PROPERLY identify this.

        Why was the ip blocked? Too many connections, which means your plugin was not caching things properly. Better yet, your plugin did not NOTIFY individuals of this problem, merely threw out a php error which kills the page itself.

        Learn to program properly, NEVER assume anything is given, and ALWAYS give an error if something doesn’t exist, INSTEAD of forcing php to kill the page!




      • I never wrote that because I couldn’t reproduce the error, there was no error. I wrote I don’t have time to “go into debug process”.

        If you are not pleased with my plugin, I don’t give a shit, that’s something I mainly develop for myself, and certainly not to get that kind of rude comment.

        Delete my plugin from you blog and never come again. Thanks.




  2. Hi, I’m trying to call the function into my side bar and all that I get is:
    Fatal error: Call to a member function imdbid() on a non-object in /home/…/wp-content/plugins/imdb-link-transformer/inc/imdb-movie.inc.php on line 52
    (i just replaced here the full path with “…”)
    I use
    or – in both ways I get the same error message. My function file is a bit strange to me but as I am not familiar with php, here it is the whole file:
    post->ID;
    $imdballmeta = get_post_meta($filmid, ‘imdb-movie-widget-bymid’, false);
    echo “”;
    include (‘wp-content/plugins/imdb-link-transformer/inc/imdb-movie.inc.php’);
    echo “”;
    }

    I also tried adding “?>” at the end of the file but this didn’t change the message. I tried calling the function in the sidebar file and in the single post file – the same message.

    Thank you.




    • I realise that no all of the lines appear in my previous post however, the error message text that I get is full. if you need more, please let me know.
      The function file looks like:
      << ? php (here i put some extra space and post->ID;
      $imdballmeta = get_post_meta($filmid, ‘imdb-movie-widget-bymid’, false);
      echo “”;
      include (‘wp-content/plugins/imdb-link-transformer/inc/imdb-movie.inc.php’);
      echo “”; (also extra space but i remove it in the file)
      }




      • i will try again:
        after the opening post->ID;
        $imdballmeta = get_post_meta($filmid, ‘imdb-movie-widget-bymid’, false);
        echo “”;
        include (‘wp-content/plugins/imdb-link-transformer/inc/imdb-movie.inc.php’);
        echo “”;
        }




    • for calling the functiion I used :
      external_imdb (); or imdb_external_call();
      in php tag




  3. anyway to use your shortcode withing a template?




    • What exactly do you mean by within a template?

      The plugin can be included both in sidebar and a post. This latter is achieved by including the movie’s name [ imdblt][ /imdblt] tags.

      Let me know if it fullfills your needs.




      • Well if you check out jeffwithag.com/misc/ you will see Movies and Movie Library. Movies is a page with me manually including each movie surrounded by shortcodes < ! --imdb--> and < ! --/imdb-->. Works as expected. Movie Library is a template which queries my database and automatically outputs the movie titles. I am trying to add your shortcodes around the move title value, but so far no success.

        I believe I either need to know what function to call or I need to know the format of your plugin within a “do_shortcode(’shortcodename’)” call.

        To clarify, I just want to surround each movie name queried with your plugin shortcode so that any movie in the list can be clicked and a popup would be shown.

        Any direction would be appreciated.

        Thanks,
        Geoff




      • Clarification:

        I’ve utilize the following imdb shortcodes for awhile now.

        < ! --imdb--> and < ! --imdb-->

        via a manually updated page. http://jeffwithag.com/misc/my-movies/

        It works perfectly!

        Now recently I’ve decided to move my movie list into the database and query them. To query them I created a new template page and than wrote the logic to query and display them. http://jeffwithag.com/misc/movie-library/

        It works perfectly!

        Next, I tried inserting the imdb shortcode (for the popup windows) around my extracted moviename from the database, so that the movies listed on that second url will support your imdb popups like the movies listed on the first url does.

        No such luck. See link for more details.

        http://wordpress.org/support/topic/341295?replies=8

        Hope that better explains my scenario.

        Thanks,
        Geoff




      • I’ve not very much time to put in that, but had you checked the result for “$mymovie->name” ? Because the name is not the right parameter, instead it is the imdb ID number.

        Also, you shouldn’t call (if I remember right) imdb_external_call with an “echo”; it should display by itself data.

        To help you more deeply, I should go into a debugging process, which I cannot go through right now… :/




      • Yeah, I haven’t had much time to look through this either. Work and Christmas has been keeping me busy.

        You stated,

        but had you checked the result for “$mymovie->name” ? Because the name is not the right parameter, instead it is the imdb ID number.

        Your shortcode takes the movie name given correct? And then somehow finds the imdb movie id number, to pull up all the related info? I mean your shortcode works fine in a post or page when I use it to surround a movie name. But outside of a page/post content (in a template) I believe I need to call the function directly. I mean I think I need to locate your shortcode assignment, and call the function it references. Again, these are just assumptions, this is new territory to me. When I get more time I’ll take another look and if I figure it out, I’ll post my solution.

        Thanks and Happy Holidays!
        Geoff




  4. Actually, it looks like a bit more than just the plot is missing from the thing when using proper formatting (again, popups not proper format):

    * Quote(s):
    * Plot(s):
    * Goof(s):
    * Tagline(s):




  5. This is an absolutely great plugin, but with a few problems.
    Firstly, this does not get the ‘plot’ from IMDB at all (yes, it’s enabled, and yes, I’ve cleared the cache), regardless of whether the movie (or show) has a plot in it. Instead it just returns “Plot(s):”, nothing more.
    Secondly, an air date (or release date) would be great to add to this plugin.
    Everything else looks great, but that first problem is pretty bad.




    • The plot is actually working; I still have checked, it does work! Please check on imdb website if there is a plot available for movie(s) you want to display plots’. If it is the case, please give me the movies’ names, I’ll try on my own.

      Air date? Why not, I’ll think about it :)




    • Well, can’t reproduce your issue on my own.

      Regarding “The Vampire Diaries”, there is no issue at all; if you check imdb website, you’ll see there isn’t any plot summary. IMDb link transformer cannot get what doesn’t exist.

      But regarding “Transformers: Revenge of the Fallen”, a plot exists, as weel as quotes, goofs, taglines. Since then, it should actually display these informations… and it certainly does :
      http://www.ikiru.ch/blog/wp-content/files/imdblt-testplot.jpg

      What IMDb plugin release do you use? How do you display your movie (I mean, what name do you enter exactly inside (imdblt)(/imdblt) tags)? When you write you cleared the cache, did you clear the entire cache, or only part of it?

      I don’t think it could be a plugin collision issue (since parts of information is displayed), I hardly see what it could be… except for movies which doesn’t provide information you want, it should display them!


Leave a reply