WP Movie Ratings is a WordPress plugin perfect for movie fans who like to let the world know their opinion on what they’ve been watching. At its core is a bookmarklet, which combined with Internet Movie Database and a little bit of AJAX magic lets you rate movies with just one click. Also, there is no need to write the title of the movie as it is automatically fetched from imdb. Optionally, you can also write a short review for each movie. The output from this plugin is a list of recently watched movies, which you can put anywhere you want (it is a WordPress widget). Check out the live demo.
The published movie reviews are hReview compliant.
Latest stable version (for WordPress 2.8+): 1.8 (tar.gz, zip) (2019-10-13).
The current development version can be found at github.
Screenshots
Recently watched movies list:
Bookmarklet in action (one click movie rating):
Requirements
- WordPress 2.8+
- FTP, SSH or SCP access to your wordpress blog (so you can upload this plugin).
Installation
- Download the plugin.
- Extract the contents of the .tar.gz/.zip file into the WordPress plugins directory (usually
wp-content/plugins
). Alternatively you can upload them using ftp. You should have a new directory there called wp_movie_ratings (just along the akismet directory). - Activate the plugin by going into your administration panel and selecting Plugins from the menu and clicking the Activate button for the WP Movie Ratings.
- Go to the Manage section in the administration panel and see the new Movies menu option there (you’ll find the bookmarklet there too). Rate at least one movie (using the bookmarklet or the administration page).
- Go to the settings section in the administration panel and under the Movies tab customize this plugin’s options.
- Customize your theme by adding a new Widget to its sidebar called “Movie Ratings”.
- Make a new page listing all your movie reviews by adding a new page in WordPress with this as its content:
[[ wp_movie_ratings_page]]
. - Go to your blog and see the movie ratings! :)
Upgrading
- Download the newest version of the plugin.
- Go to the Plugins section of the administration panel and deactivate the WP Movie Ratings plugin. Don’t worry as it will never ever delete any movie ratings.
- Go to the wp_movie_ratings plugins directory and delete all of the plugin files (should be
wp-content/plugins/wp_movie_ratings
). It will not delete any movie ratings (those are saved in the database). Be aware though, that if you’ve made any changes to the plugin, you might consider doing a backup. - Extract the contents of the .tar.gz/.zip file into the wp_movie_ratings directory (
wp-content/plugins/wp_movie_ratings
). - Go to the Plugins section of the administration panel and activate the WP Movie Ratings plugin (notice that higher version number of the plugin). The deactivation/activation cycle is required because of the new options that need to be written into the wordpress database (during activation).
- Enjoy life with the newest version of the WP Movie Ratings plugin!
FAQ
How can I have the ratings box displayed right after the first post?
Assuming you want to have movie ratings displayed on the front page of your blog, edit the index.php
file. Find the line similar to this one:
<?php while (have_posts()) : the_post(); ?>
Change it so it looks like this:
<?php $first_post = true; ?> <?php while (have_posts()) : the_post(); ?>
And then, inside the while
loop find this line:
<?php endwhile; ?>
and make it look like this:
<?php if ($first_post) wp_movie_ratings_show(); $first_post = false; ?> <?php endwhile; ?>
And that should do it.
How can I create a separate page listing all of my movie reviews?
Create new WordPress page by selecting Write Page in the Write menu option of the administration panel and put this line as the page content:
[[ wp_movie_ratings_page]]
How to I make the imdb link open in a new window?
Open movie.class.php
and change this line:
$o .= "<a class=\"url fn\" href=\"";
to
$o .= "<a class=\"url fn\" target=\"_blank\" href=\"";
What to do when the rating box is too wide?
Wrap the plugin function call in a fixed width <div>
, like that:
<div style="width: 200px"> <?php wp_movie_ratings_show(); ?> </div>
Your plugin is not working! All I get are (EmptyReference!)
errors!
Stop using Adobe GoLive! as it is utter evil.
The bookmarklet is not working! Help!
Currently the bookmarklet works in Mozilla Firefox, Camino and WebKit. No IE, sorry.
Check if your blog’s home address is the same as your wordpress installation. If it is not (for instance when your website’s address is example.com and there sits your wordpress installation, but your blog is located at blog.example.com), then using this bookmarklet is not possible as that kind of AJAX calls are regarded as XSS and are blocked by Firefox (by default). You need to mess with your wordpress installation for it to work.
I’m using the Markdown plugin and I cannot create a movie ratings page!
Instead of writing:
[[ wp_movie_ratings_page]]
try
<!--wp_movie_ratings_page-->
and if that still does not work for you, wrap the call in a <p>
tag, like this:
<p><!--wp_movie_ratings_page--></p>
or like this:
<p>[[ wp_movie_ratings_page]]</p>
How can I have the reviews shown when in page mode but hidden while in sidebar mode?
Go into settings in the administration panel and set all of the settings you want to have for the page mode. For the sidebar mode execute the following php code:
<?php wp_movie_ratings_show(6, array("sidebar_mode" => "yes", "include_review" => "no")); ?>
The first parameter of the wp_movie_ratings_show()
function is the number of latest movie reviews to show. The second is the array of additional display options (all are optional). Here is the list of all the options you can set (hash array):
text_ratings
– text ratings (like 5/10) instead of the stars,include_review
– include review with each movie rating,expand_review
– initially display expanded reviews when in page mode,sidebar_mode
– compact view for sidebar mode,five_stars_ratings
– display movie ratings using 5 stars instead of 10,highlight
– will highlight the stars of top rated movies,page_mode
– display all movie ratings on a separate page,page_url
– link to the movie reviews page,char_limit
– will cut any character in the title after this number,only_not_rated
– will select only not yet rated movies (‘yes’/’no’),only_rated
– will select only already rated movies (‘yes’/’no’),order_by
– default sort (valid only when used with combination of either ‘only_rated’ or ‘only_not_rated’) (‘title’/’rating’/’watched_on’),order_direction
– default sort direction (valid only when used with combination of either ‘only_rated’ or ‘only_not_rated’) (‘ASC’/’DESC’).
Other questions?
Just ask.
License
Released and available under the GNU General Public License (GPL) version 2 or later.
Known bugs
- Bugs? What bugs?
TODO
v2.0 plans:
- Convert movie ratings from separate database table to normal posts and assign custom tag to hide them from normal content (similarly to the sideblog plugin). Doing this will give us: integrated search for already rated movies, RSS feeds, comments under reviews, permalinks to each review.
- Automatically fetch movie covers from amazon, fetch director, cast, rating, movie language from imdb (when adding a new review).
- Automatic updates through the WordPress plugin administration panel.
Post v2.0 plans:
- Use static methods of Movie class, like Movie::get_watched_movies_count() instead of what I’m doing currently (tested; works in PHP 4.4.x).
- Different color schemes/images for different blog backgrounds (white/black/transparent) using different CSS selectable via panel option.
- Dynamic graph chart showing the votes breakdown.
- Automatic voting on imdb.
- Amazon links ($$).
- Bookmarklet working in Internet Explorer.
- Implement vote history import from imdb.com (and somehow solve the watched_on problem as imdb doesn’t tell when the movie was rated).
- Expand on the concept of this plugin being a general rating plugin, which will let you rate books and music too.
- Implement multiple users ratings (for multi-author websites).
- Automatically collect the movies you saw each month/week and post them on the blog.
Changelog
2015-11-19
- full compatibility with WordPress 4.4+.
- widgetization: added possiblity to display ‘Recent ratings’ in a widget
- fetch original movie titles from IMDb (ie: use akas.imdb.com instead of just imdb.com) and display links to akas.imdb.com (instead of imdb.com)
- fixed: make movies page pagination links XHTML standards compliant (& => &)
- compatibility/deprecation fixes (some of them at least…)
- release 1.7.
2010-10-14
- full compatibility with WordPress 2.7.*, 2.8.*, 2.9.* and 3.0.*.
- fixed: when ‘only_rated’ or ‘only_unrated’ option was used the ‘count’ argument the for wp_movie_ratings_show() function was ignored.
- removed automatic pingerati.net pinging (pingerati.net is AWOL).
- fixed: fetching movie title from IMDb (after IMDb has changed their website).
- release 1.6.
2008-05-18
- added option to add movies without rating them (only through the administration panel) (to create a list of owned just not yet seen dvds, for example).
- added option to select all ‘only_rated’ or ‘only_not_rated’ movies using the wp_movie_ratings_show() function call.
- char_limit option can now be passed as a parameter to the wp_movie_ratings_show() function call.
- fixed problems making the movie reviews pages non XHTML compliant.
- fixed error which prevented certain users from activating the plugin (the database table was not created).
- fixed XHTML validation error in the bookmarklet.
- release 1.5.
2006-11-18
- fixed lots of rendering issues (problems in IE, Blue-k2 theme, Golden Gray theme, reviews not expanding, etc.).
- completely rewritten encoding module, so now international characters as well as HTML should work correctly.
- fix for Markdown markup – you can now use the alternate tag:
<!--wp_movie_ratings_page-->
to create a movie ratings page. - new feature: if no imdb link is given, the plugin will not look for the movie’s title on imdb. As a drawback, there can be now movies without imdb links (and without titles…).
- new feature: ability to edit imdb links for already rated movies.
- new feature: added pagination in page mode (so movie reviews can now span among several pages).
- added option to disable pingerati.net pinging.
- added option to highlight top rated movies.
- added link from the recently rated movies list to the page with all movie ratings.
- movies are now grouped together by month when sorting by view date in page mode.
- added default movies sorting options for page mode.
- added a new database field with optional link that is used instead of imdb.
- added option to initially display expanded reviews in page mode.
- added ability to edit movies directly from the displayed ratings list (in page mode too).
- release 1.4.
For previous changes check out the changelog
file within the plugin’s archive.
Art -> It’s hidden by default. If it shows it means that either 1) you’ve messed something up (like disabling plugin’s stylesheet) or 2) your theme messed my plugin up (that requires a manual fix on my or your theme’s author part).
If it’s the latter, send me an url to your blog and the theme theme you’re using (via email).
Hi, I’m using the latest version and WP is still telling me that the database tabes are not installed. Any suggestions?
Matt -> First, you need to be running v2.04 or later and second, you must follow the installation instructions carefully.
Feature request: add an option to display reviews in the sidebar as tooltips (when you hover over the title).
emre -> that’s a good idea for current version, although I’m more thinking about v2.0 now and in 2.0 that would be both kind of not that needed and kind of hard to do…
This plugin is awesome!! I really love it!
How can I add the link to the “Movie ratings archive »” below the “Movies I’ve watched recently” table, like in your live-demo example? Where exactly do I have to put the link?
thanks
I have found the solution in the tab options ;)
Wouldn’t it great to have opportunity integrate a thumb from IMBD if there is one? Thats something I would appreciate for a future version.
lausse -> movie thumbnails will probably make their way to v2.0 (or some future update).
Anyone else having trouble with WP 2.1, and this plugin?
All movie related fields in the relevant admin pages are displaying html code.
Great plugin. I love it. I was curious if there were any plans to add functionality that changes the appearance of the output – such as different stars, colors, etc.
Im not sure if this is working for 2.1 I had alot of errors and everything was fine when I deleted your plugin from my folder. I love this one though!! Any word on an update??
I’m using it with WP2.1 and it’s working fine so far.
Clean install on WP2.1 results in the following screenshots:
http://img260.imageshack.us/img260/4820/moviereviewerrorsbz7.png
and
http://img72.imageshack.us/my.php?image=moviereviewerrors2wx1.png
So something is off….
Apparently there are some issues with my plugin and WordPress v2.1. I was so happy when first reports came saying there are no problems with v2.1… Damn. I’ll have a look at it in a day or two, so you can expect a new release which will fix those… Sorry for the inconvenience.
UPDATE: I’ve looked into WordPress v2.1 and done both upgrading and clean install on my development machine. I have found no problems whatsoever. Willem -> drop me an email with your configuration details (PHP version, Apache version, list of installed plugins, Operating system).
UPDATE 2: I’ve updated this very blog to v2.1 and there are no problems either.
UPDATE 3: The problem you’ve described is based on the fact that you have
short_open_tag
set tooff
. I’ve made it so that my plugin does not depend on this setting.It runs fine on my WP 2.1 install too. No problems at all.
Thanks Paul for fixing my problem.
Great service for this even greater plugin. Thumbs up on this one
hello, something like list x top movies in x time feature would be nice…
so best 10 movies in 2006, would be automated, and i think it’s not much job in sorting things!
as always i can beta test! :D
task -> Yes, more detailed statistics is the one thing I’m after too. Now top10 of 2006 is hard, simply because there can be 20 or any number of movies rated 10/10. But yes, the best of 2006 is definitely possible. It would just not be a top 10 .)
I did a clean install of WP 2.1 and activeated your plugin, and BAM! It fixed! Thanks for the wonderful plugin and looking forward to future updates.
Hi Paul: there is something wrong with this plug-in running on my blog…wordpress2.1…after I clear all the old database of WP2.1 ,reinstalled it, the “WP Movie Ratings” plug-in always said “database wrong”.but it did work well before I reinstalled the WP! (here is the screenshot: http://photo1.bababian.com/20070205/6730335713918A47B09CDFB1C347E454.jpg)
I’ve tried to deactivate it-activate it ,delete it and upload the files again, but it seems no use….give me some advice, so many thanks : (
Joycapri: I’ve just did yet another clean install of WP2.1 and WP Movie Ratings 1.4 and it WFM. It is clear, however, that my plugin activation script does not work for you and I really suspect it’s your wordpress installation/config that’s the culprit. One strange thing about your errors is the “inside_” table prefix.
Do you have it set up like that in the
wp-config.php
file (variable$table_prefix
) and do all of your wordpress database tables have this prefix?Paul,thanx for your reply.when i install the WP,i set the table prefix as”inside_” indeed…..maybe that’s why my movie-rating-plugin cannot be installed….but things didnt happen when I installed the plugin….so strange….okok,let me try to take it , thanks for your help and opinion~~!
Hi!
I really liked the plugin!
BUT, i’m here to ask if its possible to add a new feature! To display the movie poster!!!
Hi! i’m here to ask another thing
is there a way to posts a specific review on the post? not only the newest???
Chris -> I’m not quite sure I follow you, but you cannot have my movie plugin instance in every post and you cannot use my plugin to show just one specific review. At least not yet. 2.0 will bring that (no ETA). Same goes for posters.
Hello Paul, it is possible to limit the characters on the sidebar, but show full name in paged list?
task -> yes. I’ve updated the FAQ to include this option too. First, you need to go into options and set the character limit for page mode and then execute the plugin on the homepage like this:
I try to install this great plugin, but I can’t get it to add the table to the databease for some reason. Im pretty sure my WP installation is ok. Could you maybe put an file here on the page with the databaseinfo that I can import manually via phpMyAdmin? I really wanna use this plugin!
Jompa -> Try looking into the source code. File:
wp_movie_ratings.php
, functionwp_movie_ratings_install()
. You need more than just a new table in the database, though. Drop me an email with the exact error that you get (+screenshot).Excellent plugin, just wanted to say thanks! :-)
Great plugin! Easy to use and easy to install. No problems with it so far. Cheers!
Just want to share a tip for peaople who also want an image to their films.
In the wp_movie_ratings-folder open add_movie.html
Change the textareathing at row 26 to:
<textarea name="review" id="review" cols="20" rows="3"> <img style="margin-right: 8px; margin-bottom: 2px" src="xxxx" width="65" /> </textarea>
Next time you use the bookmark – there will be a small textsnippet at top in the textarea. Now you just find a pic – and paste in the URL where it says xxx
That is one dirty hack :)
hello paul, any new beta for testing since last one?! :D
looking over there i found this:
http://komodomedia.com/blog/index.php/2007/01/20/css-star-rating-redux/
and i thinked maybe it would be a nice way of adding ratings… it’s more graphical than numbers… and it’s more comprehensive…
keep up the excellent work on this plugin!! maybe a coming features spoiler?
I’ve had those CSS stars (not redux, though) in the bookmarklet from the very beginning. The thing is that adding movies through the wordpress admin panel is so tiresome that I don’t use it. Ever. Unless I edit some rating/review, which happens very rarely. That’s why the UI there is so old-school. And it will stay this way as I want it to be as simple and as much wordpress alike as possible (so for example, when wordpress changes panel styles, just like they did in v2.1, my admin page will change too, without the need to update the plugin).
Version 1.5 (coming in a few weeks) of my plugin will feature the ability to add movies without rating, so you can, for example, have two lists – one listing movies that you want to see and the other for those that you’ve seen. And that’s basically it. The next step is v2.0, which is still only a concept rather than code (details about 2.0 are in the TODO).
Hey, I’ve got the plugin to work now.. I have no idea what the problem was, but anyway.. how do I localize this plugin? I’ve been searching the php-files for something to translate, but I only find text related to the options page, any help would be appreciated! Thanks!
Glad to hear that it works now :) As for the translation, there isn’t much to translate, but if you insist, you should look into movie.class.php first.
Thanx Paul, I found what I was looking for.. the only thing left to translate is the date. Look at http://www.grymfilm.com/index.php/snabbrecensioner/ to see what I mean.. ‘March, 2007’ should be ‘Mars, 2007’. I suspect this is related to PHP, but how do I get it to show the date in my language? The rest of my blog uses swedish dates btw..