Greetings,
I am trying to setup a view that will return all of a users 'votes'. Ideally this would be a tab when viewing the user profile and would change with the specified user profile you are currently viewing.
I've got everything setup however, the part where I am faulting, which is the most critical part to getting this working correctly is the arguments.
Currently, it does not seem that the voting API provides any argument types to views. That being said, is there any way to achieve this?
I posted an issue in the views issue queue to see if it would be possible to use the argument handling code section of the views module to maybe create an argument that will filter results based on the user profile you are looking at (I have seen this done before in block form but not as a tab in the user profile).
Any help would be much appreciated!
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | votingapi-DRUPAL-5.argument.patch | 1.94 KB | sun |
| #4 | votingapi_views.argument.patch | 2.11 KB | sun |
Comments
Comment #1
peterdeitz commentedI'm looking for this feature as well.
Comment #2
seanrSame problem here. This is a highly useful feature, marking up to normal.
Comment #3
sun#217815: Filter Votes by user on profile page has been marked as duplicate of this issue.
I'll try to come up with a patch shortly.
Comment #4
sunHere we go.
Comment #5
sunNew one, allows to enter a voting axis into the Views option field in favor of selecting between "has/has not voted on".
Comment #6
dwwThis should definitely go in ASAP. I just found myself needing exactly this, the patch applies without offset, the code is clean and good, and the patch works as advertised.
Thanks!
Comment #7
sunThe problem with this patch is that VotingAPI/Views suddenly starts to use different table aliases for the votingapi_vote table when using percentage voting field (f.e. Fivestar) in the same view. This screws up the INNER JOIN this patch is using.
We tried to find a solution for this for several hours, but finally went with a custom implementation of this argument.
Our custom implementation for reference:
Comment #8
joachim commented+1
This is an essential feature for votes.
Comment #9
themosttogain commentedI'm new to this but desperately desperately need this feature...where do i need to put the script that Sun has suggested? I've tired putting it into votingapi.views.inc but I can't see any new arguments or anything added in Views. Am I being dumb? I should mention i'm using Drupal 6.x not 5.x!
Thanks in advance to anyone who offers help!
Comment #10
eaton commentedSupport for the 5.x branch of VotingAPI has ended with the release of Drupal 7 and the upcoming release of VotingAPI 7.x-2.4.
Comment #11
Anonymous (not verified) commented