WP-PostRatings 1.20
Installation Instructions
1. Open wp-content/plugins Folder
2. Put:
Folder: postratings
3. Activate WP-PostRatings Plugin
4. Refer To Usage For Further Instructions
Upgrade Instructions
From v1.0x To v1.20
1. Deactivate WP-PostRatings Plugin
2. Open wp-content/plugins Folder
3. Overwrite:
Folder: postratings
4. Delete these file if exists:
File: wp-content/plugins/postratings/postratings-js.js
5. Activate WP-PostRatings Plugin
6. Go to ‘WP-Admin -> Ratings -> Ratings Options’ and restore all the template variables to Default
7. Refer To Usage For Further Instructions
Usage Instructions
General Usage
1. Open wp-content/themes//index.php
You may place it in single.php, post.php or page.php also.
2. Find:
3. Add Anywhere Below It (The Place You Want The Ratings To Show):
If you DO NOT want the ratings to appear in every post/page, DO NOT use the code above. Just type in 



(1 votes, average: 4 out of 5)
Loading ...
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 



(1 votes, average: 4 out of 5)
Loading ...
, 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_results=1], where 1 is the ID of the post/page ratings resilts that you want to display.
Note
* Note: In IE, some of the post ratings’ text may appear jagged (this is normal in IE). To solve this issue,
1. Open postratings-css.css
2. Find:
/* background-color: #ffffff; */
3. Replace:
background-color: #ffffff;
Where #ffffff should be your background color for the poll.
Ratings Stats (With Widgets)
1. Activate WP-PostRatings Widget Plugin
2. Go to ‘WP-Admin -> Presentation -> Widgets’
3. To Display Highest Rated Post
4. Drag the Highest Rated Widget to your sidebar
5. You can configure the Highest Rated Widget by clicking on the configure icon
6. To Display Most Rated Post
7. Drag the Most Rated Widget to your sidebar
8. You can configure the Most Rated Widget by clicking on the configure icon
9. Click ‘Save changes’
Ratings Stats (Outside WP Loop)
* To Display Highest Rated Post
* Use:
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 Highest Rated Post In A Category
* Use:
Default: get_highest_rated_category(0, ‘both’, 10)
The value 0 will display highest rated post from category id 0.
You can define multiple categories by replacing 0 with array(1,2,3). This will include ratings from category 1, 2 and 3.
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:
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.
» Usage Instructions
General Usage
1. Open wp-content/themes//index.php
You may place it in single.php, post.php or page.php also.
2. Find:
3. Add Anywhere Below It (The Place You Want The Ratings To Show):
If you DO NOT want the ratings to appear in every post/page, DO NOT use the code above. Just type in 



(1 votes, average: 4 out of 5)
Loading ...
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 



(1 votes, average: 4 out of 5)
Loading ...
, 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_results=1], where 1 is the ID of the post/page ratings resilts that you want to display.
Note
* Note: In IE, some of the post ratings’ text may appear jagged (this is normal in IE). To solve this issue,
1. Open postratings-css.css
2. Find:
/* background-color: #ffffff; */
3. Replace:
background-color: #ffffff;
Where #ffffff should be your background color for the poll.
Ratings Stats (With Widgets)
1. Activate WP-PostRatings Widget Plugin
2. Go to ‘WP-Admin -> Presentation -> Widgets’
3. To Display Highest Rated Post
4. Drag the Highest Rated Widget to your sidebar
5. You can configure the Highest Rated Widget by clicking on the configure icon
6. To Display Most Rated Post
7. Drag the Most Rated Widget to your sidebar
8. You can configure the Most Rated Widget by clicking on the configure icon
9. Click ‘Save changes’
Ratings Stats (Outside WP Loop)
* To Display Highest Rated Post
* Use:
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 Highest Rated Post In A Category
* Use:
Default: get_highest_rated_category(0, ‘both’, 10)
The value 0 will display highest rated post from category id 0.
You can define multiple categories by replacing 0 with array(1,2,3). This will include ratings from category 1, 2 and 3.
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:
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.
ランキングに参加しています。

↑宜しければ、クリックお願いします。m(_ _)m
それから、↓でこの記事に対する投票も出来ます。

Loading ...
written by 教師@イギリスの田舎