Closed (fixed)
Project:
Vote Up/Down
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2010 at 04:02 UTC
Updated:
11 Oct 2010 at 04:21 UTC
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
Comment #1
marvil07 commentedAdd 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)
Comment #3
madjr commentedthis 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...
Comment #4
madjr commentedok 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)
Comment #5
marvil07 commentedmadjr: 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.
Comment #6
madjr commentedok, 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.