» Index
Plugin Information
Author
» Lester 'GaMerZ' Chan
EMail:
»
Website:
» http://www.lesterchan.net/
Demo:
» http://www.lesterchan.net/blogs
Documentation:
» http://dev.wp-plugins.org/wiki/wp-postratings
Development:
» http://dev.wp-plugins.org/browser/wp-postratings/
Support Forums:
» http://forums.lesterchan.net/index.php?board=17.0
Updated:
» 2nd January 2007
Changelog
-
Version 1.05 (02-01-2007)
- NEW: Added The Ability For Each Rating Star To Have Its Own Text
- NEW: Highest Rated Post Is Now In The Templates For Easy Modification
- NEW: Usage Instructions Is Also Included Within The Plugin Itself
- NEW: Able To Delete Ratings Logs And Data By Post IDs
- NEW: Able To Uninstall WP-PostRatings
- NEW: Localization WP-PostRatings
- FIXED: snippet_text() Function Missing
- FIXED: AJAX Not Working On Servers Running On PHP CGI
- FIXED: Highest Rated Post Is Now Based On The Ratings Followed By The Number Of Votes
- FIXED: Added Some Default Styles To postratings-css.css To Ensure That WP-PostRatings Does Not Break
-
Version 1.04 (01-10-2006)
- NEW: Ability To Logged By UserName
- NEW: get_highest_rated_sidebar(); To Display The Highest Rated Post On The Sidebar
- NEW: Added CSS Class 'post-ratings-image' To All IMG Tags
- FIXED: If Site URL Doesn't Match WP Option's Site URL, WP-PostRatings Will Not Work
-
Version 1.03 (01-07-2006)
- NEW: Total Rating Votes Stats And Total Rating Users Stats Function Added
- FIXED: Ratings Not Working On Physical Pages That Is Integrated Into WordPress
- FIXED: Modified Get Most/Highest Rated Post Function
- FIXED: Search Bots Unable To Index Site
-
Version 1.02a (07-06-2006)
- FIXED: AJAX Not Working In Opera Browser
-
Version 1.02 (01-06-2006)
- NEW: Fading In/Put Effect After You Rate A Post
- NEW: Rating Voting And Rating Results Are On The Same Image
- NEW: Added Rating Option For Logging Method
- NEW: Added Rating Option For Who Can Rate
- NEW: Added Rating Results Image To Get Highest Rated Stats
- NEW: Rating Administration Panel And The Code That WP-PostRatings Generated Is XHTML 1.0 Transitional
-
Version 1.01 (01-04-2006)
- NEW: AJAX Voting
- FIXED: Block Search Bots From Voting
- FIXED: Hard Coded Table Name In Ratings Stats
-
Version 1.00 (01-03-2006)
» Installation Instructions
-
Open wp-content/plugins Folder
-
Put:
Folder: postratings
-
Activate WP-PostRatings Plugin
-
Refer To Usage For Further Instructions
» Upgrade Instructions
From v1.0x To v1.05
-
Deactivate WP-PostRatings Plugin
-
Open wp-content/plugins Folder
-
Overwrite:
Folder: postratings
-
Activate WP-PostRatings Plugin
-
Go to 'WP-Admin -> Ratings -> Ratings Options' and restore all the template variables to Default
» Usage Instructions
General Usage
-
Open wp-content/themes/<YOUR THEME NAME>/index.php
You may place it in single.php, post.php or page.php also.
-
Find:
<?php while (have_posts()) : the_post(); ?>
-
Add Anywhere Below It (The Place You Want The Ratings To Show):
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
If you DO NOT want the ratings to appear in every post, DO NOT use the code above. Just type in [ratings] into the selected post content and it will embed ratings into that post only.
Note
-
Note: In IE, some of the post ratings' text may appear jagged (this is normal in IE). To solve this issue,
-
Open postratings-css.css
-
Find:
/* background-color: #ffffff; */
-
Replace:
background-color: #ffffff;
Where #ffffff should be your background color for the poll.
-
The AJAX feature might not work if your blog homepage directory is different from the directory you installed WordPress in. To solve this issue,
-
Open postratings.php
-
Find:
echo "\t".'var ratings_ajax_url = \''.$ratings_ajax_url.'/wp-content/plugins/postratings/postratings.php\';'."\n";
-
Replace:
echo "\t".'var ratings_ajax_url = \''.$ratings_ajax_url.'/WORDPRESS_DIRECTORY/wp-content/plugins/postratings/postratings.php\';'."\n";
Where WORDPRESS_DIRECTORY should be the directory name which you installed WordPress in. Note the backslash after your WordPress Directory, you need that.
Ratings Stats (Outside WP Loop)
-
To Display Highest Rated Post
-
Use:
<?php if (function_exists('get_highest_rated')): ?>
<ul>
<?php get_highest_rated(); ?>
</ul>
<?php endif; ?>
Default: get_highest_rated('both', 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 10 will display only the top 10 highest rated posts/pages.
-
To Display Most Rated Post
-
Use:
<?php if (function_exists('get_most_rated')): ?>
<ul>
<?php get_most_rated(); ?>
</ul>
<?php endif; ?>
Default: get_most_rated('both', 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 10 will display only the top 10 most rated posts/pages.