Hi everyone,

I'm using the userreview module for my web site. Thank you so much for this great module. I'm just curious is there any way to create a list of the "top ranked" nodes, e.g: The nodes with the most "10" ratings OR perhaps a listing of all nodes given a certain rating like "10". Is there any php snippet I can use to generate such a "top" list?

Please let me know. I really need an option like this for my web site to show the top rated poems.

Comments

gerd riesselmann’s picture

Here is like I do it:

  • Create a new view and give it a speaking name, e.g. "top_20"
  • Configure the basics: Access rights, description etc.
  • In section "Page" :
    • Enable "Provide Page View"
    • Assign an url ("top20", e.g.).
    • Set "Teaser List" as view type
    • Give it a good title.
    • Enable "Use Pager"
  • In section "Filters":
    • Add filter for "Node: Type" and set it to the type(s) of the reviewed node(s)
    • Add filter for "Node: Published" and set it to "Yes"
    • Add filter for "Votingapi: Result Function" and set it to "Average vote value"
  • In section "Sort Criteria":
    • Add criteria "Voting API: Voting result" and set it to "Descending"
gerd riesselmann’s picture

Category: feature » support
Priority: Critical » Normal
Status: Active » Fixed
csc4’s picture

Shouldn't the view have some fields?

Also my VotingAPI option is 'VotingAPI: Average vote' I don't seem to have the option listed?

gerd riesselmann’s picture

Views of type "Teaser List" don't need fields, and in which section exactly you don't find the fields I mentioned?

Anonymous’s picture

Status: Fixed » Closed (fixed)
jaks1970’s picture

Is there a way to assign numbers to nodes using views? So that when you have your top or whatever list it says #1 next to the top result #2 next to the second best etc.....

I realize this thread is old but it's the closest to what I have already done on my site.

Thanks in advance
Jon

tseven’s picture

This is killing me :(

I have configured Userreview with the view setup you suggested for the "top20" list and everything is fine, EXCEPT sorting.

It would appear that views does not have access to the voting data. Even when selecting "list" or "table" view, it will only display node fields.

The only way I can get the vote info to show up is by using the Teaser or fullnode view.

I have tried every possible combination of sorting values, ascending/descending but it does not respond, as I mentioned, it seems views does not have access to this data.

I have created a new data type called "Review" and everything seems to work fine until I try customizing the view.

Any advice or suggestions would be greatly appreciated.

Thanks

enthusaroo’s picture

Status: Closed (fixed) » Active

Reopening the issue for jaks1970, tseven. I am still looking for solutions to their questions too.

trenchard’s picture

This does not work.

The field and options do not show up.

This kind of view needs to work to create topX blocks. What is the fix?

summit’s picture

Hi,
Anyone for an answer.
I want the same functionality and am not getting it to work also.
Do you use 5.*.dev version? Is there a 5.1 release on the way?

This module really looks promissing!

greetings,
Martijn

gateone’s picture

Interesting observation by now: it seems to be working, the list gets ordered in a "top 10" style - but only right after setting it up in views. After the next cron run, the ordering of the view seems to snap back at its default...

pomliane’s picture

Status: Active » Closed (won't fix)

This version of userreview is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.