First you need to install references module 7x version from http://drupal.org/project/references, or Entity Reference module from here version 7x http://drupal.org/project/entityreference.
For using node reference install the patch given in here ------”please add the link if you know”-------,while for user reference patch given here is required http://drupal.org/node/1300766, and for entity reference install the patch in here http://drupal.org/node/1488914.
For help with installing patches in drupal visit the links in the answer (comment) http://drupal.stackexchange.com/questions/23347/how-do-i-apply-a-patch-file.
Assuming content type “EnergyBlazar” already created, the steps are as follows
Go to Structure > Content Types > EnergyBlazar > Manage Fields > Comment Fields.
Add New or Existing field, and in widget select “Stars (rated while editing/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.
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 node/user/entity reference field you created (“user reference:field_user_ref” in my case) and then save settings and your done.