{"id":11358,"date":"2010-11-30T06:17:33","date_gmt":"2010-11-30T06:17:33","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/rate\/"},"modified":"2015-07-30T21:33:42","modified_gmt":"2015-07-30T21:33:42","slug":"rate","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/rate\/","author":7345614,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.4","stable_tag":"0.4","tested":"3.0.5","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Rate","header_author":"Scott Taylor","header_description":"","assets_banners_color":"","last_updated":"2015-07-30 21:33:42","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/tsunamiorigami.com","rating":4.3,"author_block_rating":0,"active_installs":40,"downloads":23348,"num_ratings":6,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":0,"5":"5"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.1.1","0.1.2","0.1.3","0.1.4","0.2","0.2.1","0.2.1.1","0.3","0.4"],"block_files":[],"assets_screenshots":{"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1538941","resolution":"4","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1538941","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1538941","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1538941","resolution":"1","location":"plugin"}},"screenshots":{"1":"<p>The top rating is an average of all of the comment ratings<\/p>","2":"<p>You can add the_rating() anywhere that has comments attached to it using the Theme editor<\/p>","3":"<p>You can add ratings to comments in the Twenty Ten or any other Theme by adding the_comment_rating() to the custom comment callback located in functions.php using the Theme Editor<\/p>","4":"<p>You can edit the CSS for Rate right in the Plugin Editor. Choose \"Rate\" from the dropdown, then select rate\/css\/rate.css to edit the styles right in the Editor<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[107,243,166,2294,8203],"plugin_category":[44,53],"plugin_contributors":[80257],"plugin_business_model":[],"class_list":["post-11358","plugin","type-plugin","status-publish","hentry","plugin_tags-comments","plugin_tags-pages","plugin_tags-posts","plugin_tags-rate","plugin_tags-ratings","plugin_category-discussion-and-community","plugin_category-ratings-and-reviews","plugin_contributors-wonderboymusic","plugin_committers-wonderboymusic"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/rate.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/rate\/trunk\/screenshot-1.png?rev=1538941","caption":"<p>The top rating is an average of all of the comment ratings<\/p>"},{"src":"https:\/\/ps.w.org\/rate\/trunk\/screenshot-2.png?rev=1538941","caption":"<p>You can add the_rating() anywhere that has comments attached to it using the Theme editor<\/p>"},{"src":"https:\/\/ps.w.org\/rate\/trunk\/screenshot-3.png?rev=1538941","caption":"<p>You can add ratings to comments in the Twenty Ten or any other Theme by adding the_comment_rating() to the custom comment callback located in functions.php using the Theme Editor<\/p>"},{"src":"https:\/\/ps.w.org\/rate\/trunk\/screenshot-4.png?rev=1538941","caption":"<p>You can edit the CSS for Rate right in the Plugin Editor. Choose \"Rate\" from the dropdown, then select rate\/css\/rate.css to edit the styles right in the Editor<\/p>"}],"raw_content":"<!--section=description-->\n<p>Most ratings plugins contain too much code: inline JavaScript, messy markup, weird CSS. Rate is simple, hardly intrusive, and completely overridable.<\/p>\n\n<p>A Post\/Page\/Custom Post Type's rating is the average of all comment ratings. A user can leave a rating when commenting, and change that rating inline after leaving a comment (if logged-in or Cookie'd).<\/p>\n\n<p>Don't be afraid to play around and extend the code: drop a <code>rate.css<\/code> file in your theme directory and mine won't even load (by default, Rate stars are transparent with a white border, so you can use <code>background-color<\/code> to set your stars' colors)!<\/p>\n\n<pre><code>&lt;?php \n\/\/ in this version, you need to insert these functions into your theme for ratings to appear\n\/\/ you don't have to use the_rating(), the comment_rating() will work by itself, but the_rating() will not\n\n\/\/ for a Post, Page, or Custom Post Type (average of all comment ratings)\nthe_rating();\n\n\/\/ for a comment\nthe_comment_rating();\n?&gt;\n<\/code><\/pre>\n\n<p>Read More: http:\/\/scottctaylor.wordpress.com\/2010\/11\/30\/new-plugin-rate\/<\/p>\n\n<!--section=changelog-->\n<h4>0.3<\/h4>\n\n<ul>\n<li>Added jQuery as a required script - Whoops!<\/li>\n<\/ul>\n\n<h4>0.2.1.1<\/h4>\n\n<ul>\n<li>Whoops, adds second argument to <code>rate_calculate($id = 0, $is_comment = false)<\/code> for internal purposes<\/li>\n<\/ul>\n\n<h4>0.2.1<\/h4>\n\n<ul>\n<li><code>the_rating()<\/code> now excludes ratings from comments that are awaiting moderation. <code>the_rating($id = 0)<\/code> will not take an argument of ID. Use it to show a rating anywhere.<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>User can leave a rating while commenting now, can still edit rating inline after comment is posted<\/li>\n<\/ul>\n\n<h4>0.1.4<\/h4>\n\n<ul>\n<li>I broke the rate.css path, oops!<\/li>\n<\/ul>\n\n<h4>0.1.2<\/h4>\n\n<ul>\n<li>Got rid of Divide by Zero warning that PHP was throwing<\/li>\n<li>Does not count ratings of Zero or non-ratings in the Average Rating displayed by the_rating()<\/li>\n<li>Added screenshots to the Plugin page at WordPress.org<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Most ratings plugins contain too much code: inline JavaScript, messy markup, weird CSS. Rate is simple, hardly intrusive, and completely overridable.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/11358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=11358"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wonderboymusic"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=11358"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=11358"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=11358"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=11358"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=11358"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=11358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}