Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2008 at 17:39 UTC
Updated:
14 Apr 2009 at 13:46 UTC
Hello,
I miss a last thing to do exactly what I want, and I think it's very important for those who want to use Votingapi with a nodereference:
I would like to put in "argument" the user who cast the vote (using the votingapi of the nodereference).
If I can't select that, my table view will displaying all the user who cast a vote...
If I choose "Current user only"... it's good but I need to display the view for each user into their profiles and that everbody could see it. User A could see the View of user B into the profile of User B.
Thanks :)
Comments
Comment #1
junro commentedOups, It was not exactly what I want to do, sorry, I had to write this when I was very tired...
So I'm going to try again...
I want to display only the vote of the node author... I don't know exactly how to do...
I can have what I want like this:
Relationship:
Content : Node reference: Link my-node-type (field_link_my-node-type)
(field_link_my-node-type_nid) Node : Individual votes
Arguments:
User : Name
Filters:
(votingapi result) Voting API votes : User = name
Well If i put as argument user=Nicolas and in filters the voting results user=Nicolas, It's working
I have the display of Nodes B created by Nicolas linked to Nodes A (node reference) with the Voting results of Nicolas (from the node A).
This it not simple but it's working ^^.
The problem is I don't want to have to choose a user name in arguments and filters.
I want user = uid , each user could see their own view and see views of other users (going to their profiles).
Anybody understand what I'm saying? soory my english...
Comment #2
junro commenteduser = uid will not working anyway I think,
User = user profile.. something like that... I don't know
Comment #3
sapark commentedAre you saying a view of user 1's content in his profile, that everyone can see? and same for user 2's, etc...?
I have a similar thing and here's what I used:
--created a table view with the fields I wanted as a block
--added User: Uid argument to the view and selected 'Provide default argument' and 'PHP code' then added
if (arg(0) == 'user' && is_numeric(arg(1)) && arg(2) != 'edit') {
return array(arg(1));
}
The code says the url needs to say 'user' and a user id and not say 'edit', so that the view shows up on http://www.example.com/user/1
and not on http://www.example.com/user/1/edit
Did that help?
Comment #4
junro commentedI'm going to check this soon ^^
Thanks
Comment #5
domesticat commentedClosed while closing all Views support requests with no activity for 6 months. If you still need help, you may re-open this issue at any time.