Is there any way to create a list of the "top ranked" nodes?

enthusaroo - May 31, 2007 - 18:35
Project:userreview
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

#1

gerd riesselmann - June 26, 2007 - 11:44

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"

#2

gerd riesselmann - June 26, 2007 - 14:35
Category:feature request» support request
Priority:critical» normal
Status:active» fixed

#3

csc4 - July 3, 2007 - 15:42

Shouldn't the view have some fields?

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

#4

gerd riesselmann - July 16, 2007 - 17:28

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

#5

Anonymous - July 30, 2007 - 18:20
Status:fixed» closed

#6

jaks1970 - December 12, 2007 - 10:50

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

#7

tseven - December 15, 2007 - 04:08

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

#8

enthusaroo - December 19, 2007 - 06:45
Status:closed» active

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

#9

trenchard - December 19, 2007 - 08:21

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?

#10

Summit - December 26, 2007 - 10:18

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

#11

panatlantica - January 19, 2008 - 13:25

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...

 
 

Drupal is a registered trademark of Dries Buytaert.