Hi !
In my front page I want to give users choice to see highest pointed nodes and lowers pointed nodes descending with exposed filter. Is it possible to do it with vote up and down?

I would appreciate some feedback

Comments

marvil07’s picture

Category: task » support
Status: Active » Fixed

Add Node: Vote results to relations using points, normal votes and total score; then add the sort criteria Vote results: Function.

About using one view to do both things you want(ascending/descending on a filter) the recommended way is using two tabs ;-) with different displays, one ascending, and one descending(merlinofcahos suggestion in another issue at views queue)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

madjr’s picture

Status: Closed (fixed) » Needs work

this does not work: "sort criteria Vote results: Function"

for a small views block i made that shows only the top voted (positive values), instead of all, i used a filter on vote results. But am still hoping to add the sort by vote directly on the comments.

there's another discussion (on votingapi and like 5 more places..) with probably a few hacks/workarounds:
http://drupal.org/node/346708

is simple... the issue is just that nodes/comments with 0 votes, have a NULL value instead of 0, which messes any attempt to sort asc/desc

the biggest problem that am seeing is that neither votingapi or up/down guys want to implement a fix, because each one thinks is the others fault... (huh?! :/)

guys cant you work together?
if you keep pointing fingers instead of communicating, you'll never get things done and in time create an avalanche of bugs..

i would expect this to happen in other low quality cms communities, but here...

madjr’s picture

ok guys, after lots of testing, the problem is indeed with Vote Up/Down

to my surprise the issue went away, after i enabled the UPDOWN module
http://drupal.org/project/updown

i almost gave up on this till i gave a last try and enabled that module, took almost a day testing different workarounds.. but this did the trick without having to keep hacking

UpDown and Vud are supposed to getting merge soon, so i hope Vud's maintainer can check this out and use the available codes/workarounds from UpDown so that views sorting by votes works successfully.

i hope to see this in the dev versions soon, thanks!

clarification: UpDown and UpDown comments 1.0, only needs to be enabled in the modules page. Then Vud will work correctly and sorting by votes with views will also now behave like it was supposed to in the first place (but only NEW comments will be assigned 0 instead of NULL)

marvil07’s picture

Status: Needs work » Closed (fixed)

madjr: hi, please do ot hijack issues. this was about how to rceate the view.

In the other side, for the thing you mention, you only have to enable the "require this relation" on the relationship configuration.

As an advice, please avoid making personal comments, I mean, let's talk about software here, and keep the discussion on the topic of the issue.

BTW take a look to the documentation about how to assing a status to an issue.

madjr’s picture

ok, the problem is this:

2
1
-1
0
0

nodes with 0 are not sorted properly and show up under the negatives, because they have no value (null)

this thread is a little different to the problem, so i'll open another issue regarding it.