Author:
» Lester 'GaMerZ' Chan
Website:
» http://lesterchan.net/
Features:
» Adds an AJAX rating system for your WordPress blog's post/page.
Download:
» WP-PostRatings 1.31 For WordPress 2.5.x And 2.6.x
» WP-PostRatings 1.20 For WordPress 2.3.x
» WP-PostRatings 1.11 For WordPress 2.1.x And 2.2.x
» WP-PostRatings 1.05 For WordPress 2.0.x
» WP-PostRatings 1.03 For WordPress 1.5.2
Screenshots:
» http://lesterchan.net/wordpress/screenshots/browse/wp-postratings/
Demo:
» http://lesterchan.net/wordpress/
Development:
» http://dev.wp-plugins.org/browser/wp-postratings/
Translations:
» http://dev.wp-plugins.org/browser/wp-postratings/i18n/
Support Forums:
» http://forums.lesterchan.net/index.php?board=17.0
Credits:
» Icons courtesy of FamFamFam and Everaldo.
» __ngetext() by Anna Ozeritskaya.
Note:
» The Changelog, Installation, Upgrade, Usage Tab at the top of the page.
Donations:
» I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks as my school allowance, I will really appericiate it. If not feel free to use it without any obligations. Thank You. My Paypal account is
Folder: wp-postratings
Folder: wp-postratings
Folder: postratings
File: postratings-admin-js.php
File: postratings-js.php
You may place it in single.php, post.php or page.php also.
<?php while (have_posts()) : the_post(); ?>
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
If you DO NOT want the ratings to appear in every post/page, DO NOT use the code above. Just type in [ratings] into the selected post/page content and it will embed ratings into that post/page only.
If you want to embed other post ratings, use [ratings id="1"], where 1 is the ID of the post/page ratings that you want to display.
If you want to embed other post ratings results, use [ratings id="1" results="true"], where 1 is the ID of the post/page ratings resilts that you want to display.
<?php comment_author_ratings(); ?>
/* background-color: #ffffff; */
background-color: #ffffff;
Where #ffffff should be your background color for the poll.
<?php if (function_exists('get_lowest_rated')): ?>
<ul>
<?php get_lowest_rated(); ?>
</ul>
<?php endif; ?>
Default: get_lowest_rated('both', 0, 10)
The value 'both' will display both the lowest rated posts and pages.
If you want to display the lowest rated posts only, replace 'both' with 'post'.
If you want to display the lowest rated pages only, replace 'both' with 'page'.
The value 0 refers to the minimum votes required before the post get shown.
The value 10 will display only the top 10 lowest rated posts/pages.
<?php if (function_exists('get_lowest_rated_category')): ?>
<ul>
<?php get_lowest_rated_category(CATEGORY_ID); ?>
</ul>
<?php endif; ?>
Default: get_lowest_rated_category(CATEGORY_ID, 'both', 0, 10)
Replace CATEGORY_ID will your category ID. If you want it to span several categories, replace CATEGORY_ID with array(1, 2) where 1 and 2 are your categories ID.
The value 'both' will display both the lowest rated posts and pages.
If you want to display the lowest rated posts only, replace 'both' with 'post'.
If you want to display the lowest rated pages only, replace 'both' with 'page'.
The value 0 refers to the minimum votes required before the post get shown.
The value 10 will display only the top 10 lowest rated posts/pages.
<?php if (function_exists('get_highest_rated')): ?>
<ul>
<?php get_highest_rated(); ?>
</ul>
<?php endif; ?>
Default: get_highest_rated('both', 0, 10)
The value 'both' will display both the highest rated posts and pages.
If you want to display the highest rated posts only, replace 'both' with 'post'.
If you want to display the highest rated pages only, replace 'both' with 'page'.
The value 0 refers to the minimum votes required before the post get shown.
The value 10 will display only the top 10 highest rated posts/pages.
<?php if (function_exists('get_highest_rated_category')): ?>
<ul>
<?php get_highest_rated_category(CATEGORY_ID); ?>
</ul>
<?php endif; ?>
Default: get_highest_rated_category(CATEGORY_ID, 'both', 0, 10)
Replace CATEGORY_ID will your category ID. If you want it to span several categories, replace CATEGORY_ID with array(1, 2) where 1 and 2 are your categories ID.
The value 'both' will display both the highest rated posts and pages.
If you want to display the highest rated posts only, replace 'both' with 'post'.
If you want to display the highest rated pages only, replace 'both' with 'page'.
The value 0 refers to the minimum votes required before the post get shown.
The value 10 will display only the top 10 highest rated posts/pages.
<?php if (function_exists('get_highest_rated_range')): ?>
<ul>
<?php get_highest_rated_range('1 day'); ?>
</ul>
<?php endif; ?>
Default: get_highest_rated_range('1 day', 'both', 10)
The value '1 day' will be the range that you want. You can use '2 days', '1 month', etc.
The value 'both' will display both the most rated posts and pages.
If you want to display the most rated posts only, replace 'both' with 'post'.
If you want to display the most rated pages only, replace 'both' with 'page'.
The value 10 will display only the top 10 most rated posts/pages.
<?php if (function_exists('get_most_rated')): ?>
<ul>
<?php get_most_rated(); ?>
</ul>
<?php endif; ?>
Default: get_most_rated('both', 0, 10)
The value 'both' will display both the most rated posts and pages.
If you want to display the most rated posts only, replace 'both' with 'post'.
If you want to display the most rated pages only, replace 'both' with 'page'.
The value 0 refers to the minimum votes required before the post get shown.
The value 10 will display only the top 10 most rated posts/pages.
<?php if (function_exists('get_most_rated_category')): ?>
<ul>
<?php get_most_rated_category(CATEGORY_ID); ?>
</ul>
<?php endif; ?>
Default: get_most_rated_category(CATEGORY_ID, 'both', 0, 10)
Replace CATEGORY_ID will your category ID. If you want it to span several categories, replace CATEGORY_ID with array(1, 2) where 1 and 2 are your categories ID.
The value 'both' will display both the most rated posts and pages.
If you want to display the most rated posts only, replace 'both' with 'post'.
If you want to display the most rated pages only, replace 'both' with 'page'.
The value 0 refers to the minimum votes required before the post get shown.
The value 10 will display only the top 10 most rated posts/pages.
<?php if (function_exists('get_most_rated_range')): ?>
<ul>
<?php get_most_rated_range('1 day'); ?>
</ul>
<?php endif; ?>
Default: get_most_rated_range('1 day', 'both', 10)
The value '1 day' will be the range that you want. You can use '2 days', '1 month', etc.
The value 'both' will display both the most rated posts and pages.
If you want to display the most rated posts only, replace 'both' with 'post'.
If you want to display the most rated pages only, replace 'both' with 'page'.
The value 10 will display only the top 10 most rated posts/pages.
<?php query_posts('r_sortby=highest_rated&r_orderby=desc') ?>
Or pass in the variables to the URL:
http://yoursite.com/?r_sortby=highest_rated&r_orderby=desc
You can replace desc with asc if you want the lowest rated posts.
<?php query_posts('r_sortby=most_rated&r_orderby=desc') ?>
Or pass in the variables to the URL:
http://yoursite.com/?r_sortby=most_rated&r_orderby=desc
You can replace desc with asc if you want the least rated posts.
WP-PostRatings 1.31
Copyright © 2008 Lester 'GaMerZ' Chan. All Rights Reserved.