| 1 |
December 2006.
|
| 2 |
|
| 3 |
This module was created by Alf Eaton <alf@hubmed.org>.
|
| 4 |
Development was sponsored by Nature Publishing Group and Jason Bahn.
|
| 5 |
|
| 6 |
It uses some code from
|
| 7 |
* http://drupal.org/project/voting
|
| 8 |
* http://sandbox.wilstuckey.com/jquery-ratings/js/jquery.rating.js
|
| 9 |
* http://jquery.com/dev/svn/trunk/plugins/form/form.js
|
| 10 |
|
| 11 |
The requirements for this module are
|
| 12 |
* http://drupal.org/project/votingapi
|
| 13 |
|
| 14 |
and optionally
|
| 15 |
* http://drupal.org/project/views
|
| 16 |
|
| 17 |
A patch has been submitted to the votingapi module, but for now you need to replace modules/views/votingapi/votingapi_views.inc with the enclosed votingapi_views.inc
|
| 18 |
A default view will be created at rating/nodes.
|
| 19 |
|
| 20 |
Usage:
|
| 21 |
1) Install the module.
|
| 22 |
2) In admin/settings/content-types configure whether the rating form should be displayed for each content type.
|
| 23 |
3) In admin/access set which roles should be allowed to rate content.
|
| 24 |
4) In admin/settings/rating set whether the rating form should be displayed for teasers, whether it should be displayed for anonymous users, and whether to display the average rating.
|
| 25 |
|
| 26 |
If you want the rating form to appear in CCK nodes, print $node->jrating_html in your theme.
|