Community Documentation

Set up fivestar widget for User/Author rating with comment on any content type. 7X

Last updated February 25, 2013. Created by Energyblazar on May 25, 2012.
Edited by stieglitz, johnhorning. Log in to edit this page.

Also see http://drupal.org/node/1308114

Part I

Go to configuration > People > Account Settings > Manage Fields.

Add new field select “Fivestar Rating” & in widget select “Stars (rated while viewing).

Add Lable and Field name (must not be in caps and use_ ) of your choice and save.

Select Voting Tag (once data saved can’t be changed later) and Save Field Settings.

Note: This is important step to change the voting tag from “vote”, to some other tag created by you, using the select-box and save settings (Assuming you select “comment ratings” which is custom tag created by you we proceed.) [Read Setting up voting tags to know how to set custom tags]

Check the following whether the field is “Required Field”, “Number of Stars”, and “Allow users to
cancel their Ratings” and then save settings.

Note: To know how to disable voting here read “Changing Star Display options, Value to display as Stars & Text to Display Under Stars.”

Part II

Assuming content type “EnergyBlazar” already created, the steps are as follows

Go to Structure > Content Types > EnergyBlazar > Manage Fields > Comment Fields.

Add Existing field created above, but in widget select “Stars (rated while editing).

Add Lable and Field name (must not be in caps and use_ ) of your choice and save.

Select Voting Tag (once data saved can’t be changed later) and Save Field Settings.

Note: Voting tag selected must be same as above.( Thus the tag we selected earlier “comment ratings” must be selected here too.)

Check the following whether the field is “Required Field”, “Number of Stars”, and “Allow users to
cancel their Ratings”.

Now here you must select Voting Target as Parent Node and then save settings and your done.

To know how to changing star display options, value to display as stars & text to display under stars read “Changing Star Display options, Value to display as Stars & Text to Display Under Stars”.

Page status

Needs technical review

Log in to edit this page

About this page

Drupal version
Drupal 7.x
Level
Beginner
Audience
Site builders
Keywords
fivestar

Site Building Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here