3

I want to add the player's photo shown in the user profile, in a view that shows the following data.

enter image description here

The view shows a list of nodes. The "Player Name" field shows the author of the node.

How can I achieve this?

| improve this question | | | | |
8

You can try using a relationship in your view.

Under advanced in your view -> Relationships -> add and choose Content: Author. You should then have the option to add the user picture in your Fields section.

| improve this answer | | | | |
  • Thx a lot , i fixed my problem. it's working – cobenash Jul 3 '12 at 4:36
0

@Q10 absolutely right,

Relationships
Content: Author
(author) User: Profile

but there is another way by hooking user profile to show each and every individual fields
user-profile.tpl.php
For printing fields
Condition: if((arg(0)=='user') && is_numeric(arg(1)))
{
render your fields
}

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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