Rate-in-Place 1.0

June 5th, 2006

Now you can not only display a rating for each one of the Links in your Blogroll, but you can update the rating right from the front page (logged-in with editing privledges, of course) with AJAX!

Current Version:

Rate-in-Place, Version 1.0
Designed for WordPress 2.0.3

Demo:

I install most of the plugins I create on my own blog. In this case, you can see the rating below each link in my blogroll, but you'd have to be an admin to see rating it in action!

Features:

  • rate links without refreshing or leaving the page
  • works in current versions of Firefox, Internet Explorer, Opera, Netscape, and Safari.

Recommendations:

  • perfectly compliments the feedwordpress feed aggregator plugin.

License:

No license; just trying to help out the WordPress community. Feel free to implement for smooth AJAX link rating functionality via Prototype whenever you like. All I ask is that you leave a comment/trackback here so others can see your implementation.


Download:

.ZIP package: rate-in-place-1.0.zip

Plugin Installation:

  1. Unzip/upload to /plugins directory.
  2. Activate via WordPress Plugins tab.
  3. open /wp-includes/links.php and insert the following code at line 255: if ($show_rating) $output .= rip_link_rating($row->link_ID, $row->link_rating);
  4. in the same file, on line 194, change this code: $sql = "SELECT link_url, link_name, link_image, link_target, link_description, link_rating, link_rel $length $recently_updated_test $get_updated FROM $wpdb->links WHERE link_visible = 'Y' " . $category_query; to this: $sql = "SELECT link_ID, link_url, link_name, link_image, link_target, link_description, link_rating, link_rel $length $recently_updated_test $get_updated FROM $wpdb->links WHERE link_visible = 'Y' " . $category_query;
  5. OPTIONAL: Each of your Link Categories have a setting whether to Show Rating or not, which can be modified from inside the WordPress Links > Link Categories tab. This is checked by default so most of the time you won't have to worry about it.

Prototype Installation:

  1. Download/unzip/upload the latest version of Script.aculo.us (currently 1.6.1) to /wp-includes/js/scriptaculous
    make sure prototype.js (comes with Script.aculo.us) is in there, as well.
  2. Include prototype.js in your theme's header.php, like so: <script type="text/javascript" src="/wp-includes/js/scriptaculous/prototype.js"></script>

Posted in:

12 Responses to “Rate-in-Place 1.0”

  1. Jordy (not verified) Says:

    Looks cool, Mike. It sounds like one of my favorite features of Netflix, being able to rate movies right on the page by clicking on the star you want. I think you should also adapt it so that blog readers can rate comments (ala slashdot or digg), then set a viewing threshold. That would be huge, IMHO. Good stuff man.

  2. Ken Savage (not verified) Says:

    Awesome widget thx man.

  3. WordPress Widgets &raquo; Blog Archive &raquo; Rate-In-Place (not verified) Says:

    [...] Mike Smullin’s Rate-In-Place widget provides an interface for the blog admin to rate blogroll links right on the front page. This is a nice way to bring back this little-used WordPress feature. [...]

  4. Robert (not verified) Says:

    Hi there, nice plugin, easy to install, great work! Just one thing, when implementing this thing it came out that the green rating things... whatever you call them... are slightly off the positioning and shifted a bit to the bottom... Maybe you can have a look at betabranding.com (not yet ready, still installing the 320th plugin before going to the graphics work) and give me some ideas? Thanks, best regards, Robert

  5. WP Plugins DB &raquo; Blog Archive &raquo; Rate-in-Place (not verified) Says:

    [...] Visit [...]

  6. Jenna (not verified) Says:

    I don't have a link.php file but I do have a link-template.php file which I'm going to try and add this too. :)

  7. Jenna (not verified) Says:

    Actually I take that back because my line 194 doesn't match yours. I'll have to look further into this because this plug-in is exactly what I'm looking for.

  8. Jason (not verified) Says:

    I don't seem to have a the flile links.php in my wp-includes dir. Is that a pre 2.2 file? I have link-template.php, is that the same thing.

  9. David Parkour France (not verified) Says:

    Sweet plugin, good job !!!

  10. Bob Smullin (not verified) Says:

    Thought I`d chex out your heritage

  11. Estetik cerrahi (not verified) Says:

    Thanks for plugin.. Great site.

  12. Emmett (not verified) Says:

    Hi,

    I don't have that "links.php" file either... I just upgraded to the newest Wordpress. Is that file now called something else? link-template.php seems completely different. I would really like to install this but can't get past this step - please help!

    Thanks

  13. Post new comment

    Please type the letters you see in the picture below.

    Image CAPTCHA