Rate-in-Place 1.0
June 5th, 2006Now 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:
- Unzip/upload to /plugins directory.
- Activate via WordPress Plugins tab.
- 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); - 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; - 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:
- 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. - 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: WordPress Plugins














June 8th, 2006 at 15:10 PM
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.
June 24th, 2006 at 18:31 PM
Awesome widget thx man.
June 26th, 2006 at 23:46 PM
[...] 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. [...]
October 26th, 2006 at 15:59 PM
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
May 20th, 2007 at 07:55 AM
[...] Visit [...]
June 11th, 2007 at 23:39 PM
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. :)
June 11th, 2007 at 23:40 PM
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.
July 13th, 2007 at 08:48 AM
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.
August 28th, 2007 at 13:33 PM
Sweet plugin, good job !!!
November 7th, 2007 at 20:57 PM
Thought I`d chex out your heritage
February 1st, 2008 at 00:43 AM
Thanks for plugin.. Great site.
February 5th, 2008 at 08:09 AM
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
Post new comment