0

I want to display nodes upvoted by user in userprofile page in a view. I have number up/down rate widget with nodes, and user can take back votes by clicking on vote arrows.

I tried this:

Relationship:

  • node:votes
  • node: vote results

Contexual Filters

  • votes:user = -node-votes(user)

Filter criteria

  • (Vote results) Vote results: Value (> 0)

Problem

first problem is, whenever a user take an upvote back, and upvote again on same node, it duplicates on view result.

second problem = absolute value of vote result in field criteria is greater than 0. and this also brings downvoted posts on this view.

enter image description here

1 Answer 1

2

Hi Please check the data filters and widget type, for more details read readme file of module, there is (Views integration section)

enter image description here

enter image description here

enter image description here

Its working great if you configure according to documentation. Thanks!

2
  • thanks. i did like in the first image at it worked. but what is the second image for?
    – weboloper
    Sep 18, 2015 at 10:44
  • Its for view Filed in expanded form (Voting result ) you can select widget as per requirement. I have added more image in answer for convenience.
    – jas
    Sep 18, 2015 at 11:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.