http://english.cutenews.ru/cuteru/example/
Features:
- Ajax based
- Different stars in short and full story
- Prevent multiple votes by IP and/or cookie
- Select the number of stars via the template (2 - 10 stars)
- Select the size of the stars via the template
Installation:
1. Copy rating.ini to the inc/lang/en/plugins/ folder.
2. Copy rating.php and the rating/ folder to the plugins/ folder.
3. Activate the plugin and go to Options -> News ratings to create the new database table.
4. Put this between the <head> tags of your news page (head.php must be included before):
- Code: Select all
<script type="text/javascript" src="<?=$config_http_script_dir; ?>/plugins/rating/star.js"></script>
<link href="<?=$config_http_script_dir; ?>/plugins/rating/star.css" rel="stylesheet" type="text/css" media="screen" />
5. Put this in your template to show the rating:
- Code: Select all
<div id="ratingform{id}">{rating:5:25}</div>
(5 is the number of stars (2-10), 25 is the size of the stars (10, 25, 30))
6. Put this in your template to show the average rating:
- Code: Select all
<div id="rating_middle{id}">{rating-middle}</div>
7. Put this in your template to show the total votes:
- Code: Select all
<div id="rating_total{id}">{rating-total}</div>
