I'm using the voting Rate module. Is there a way for me to create a page that lists all of the nodes a user has rated?

Comments

spovlot’s picture

The Rating module has Views integration. You should be able to create such a listing with Views.

rathin2j’s picture

hi,
please correct me if i m wrong but i tried creating a list using nodes which are been rated but no, i have not been able to find any type of integration in it?? so can u tell me how it is done??

spovlot’s picture

In Views, you need to add a Relationship (under Advanced) to Content: Vote Results. I suggest that you require the relationship.

After that, you can filter and/or add specific fields for voting results such as function (average,count) and value.

From the Field selection panel under Vote results:

Vote results: Function
     The aggregate function used to calculate the result.
Vote results: Tag
     An optional tag to group multi-criteria results.
Vote results: Timestamp
     The time the results were calculated.
Vote results: Value
     The value of an individual cast vote.
Vote results: Value type
     The nature of the results in question (points, percentage, etc).

This might also help:
http://www.lullabot.com/videos/building-views-fivestar-and-votingapi

rathin2j’s picture

hello sir,
thank u VERY MUCH for the support, i tried and it works, but it is now showing stars,is it possible to show rating in form of a star? rather this procedure shows the value, but i want to show stars given by users!! and apart from it,as i configured the way u told,my page is showing errors.!!and they are almost of 6 screens !!

Strict warning: Declaration of votingapi_views_handler_field_value::element_type() should be compatible with that of views_handler_field::element_type() in require_once() (line 8 of D:\xampp\htdocs\drupal7\sites\all\modules\votingapi\views\votingapi_views_handler_field_value.inc).
Strict warning: Declaration of votingapi_views_handler_field_value::element_type() should be compatible with that of views_handler_field::element_type() in require_once() (line 8 of D:\xampp\htdocs\drupal7\sites\all\modules\votingapi\views\votingapi_views_handler_field_value.inc).
Notice: Undefined variable: value_type in rate_views_widget() (line 876 of D:\xampp\htdocs\drupal7\sites\all\modules\rate\rate.module).
Notice: Undefined variable: value_type in rate_views_widget() (line 876 of D:\xampp\htdocs\drupal7\sites\all\modules\rate\rate.module).
Notice: Undefined variable: value_type in rate_views_widget() (line 876 of D:\xampp\htdocs\drupal7\sites\all\modules\rate\rate.module).
Notice: Undefined variable: value_type in rate_views_widget() (line 876 of D:\xampp\htdocs\drupal7\sites\all\modules\rate\rate.module).
Notice: Undefined variable: value_type in rate_views_widget() (line 876 of D:\xampp\htdocs\drupal7\sites\all\modules\rate\rate.module).
Notice: Undefined variable: value_type in rate_views_widget() (line 876 of D:\xampp\htdocs\drupal7\sites\all\modules\rate\rate.module).
Notice: Undefined variable: value_type in rate_views_widget() (line 876 of D:\xampp\htdocs\drupal7\sites\all\modules\rate\rate.module).

is it a bug or i have dont something wrong!!??

spovlot’s picture

What versions of Views, Rating and VotingAPI are you using?

rathin2j’s picture

i m using
views 7.x-3.0-rc1
rating - 7.x-2.0-alpha13
voting API- 7.x-2.6

spovlot’s picture

I would suggest using Views 7.x-3.3 which is the latest version.

I am using the Rate module (http://drupal.org/project/rate) version 7.x-1.3. Not sure where 7.x-2.0-alpha13 comes from.

rathin2j’s picture

hi,
i updated the views, and sry the version of Rate was 1.3 only...but unfortunately the problem still persists, the views are not showing stars ,neither those 5 screens of error as i mentioned above along with that a new error is appearing on performance page when i try to clear cache

Strict warning: Declaration of votingapi_views_handler_field_value::element_type() should be compatible with that of views_handler_field::element_type() in require_once() (line 8 of D:\xampp\htdocs\drupal7\sites\all\modules\votingapi\views\votingapi_views_handler_field_value.inc).

spovlot’s picture

You might try recreating the view since you created the original from the early version of Views. I have the module versions listed above working with no problems.

Otherwise, you might want to create an issue in the VotingAPI queue (http://drupal.org/project/issues/votingapi?categories=All) with the error you mention above.

rathin2j’s picture

hi,
ya it might b a case, will do that and will let u know.. thanks..

EDIT:-
I tried but no success :( SAME ERROR.. and actually, because of this now my site is broken, i m not able to import the database on other pc...

spovlot’s picture

Well, I am not sure why your site is broken because of a single view. You should be able to disable the view.

Otherwise, please open an issue in the VotingAPI project queue.