Hi,

I created a view to be used in the user profile so that when user A goes to user B's profile, user A should be able to see user B's content in the view, not A's own content.

But, the problem is that there is no filter to do this job as far as I see. There are filters like "Author is Current User", or "Current user authored, or commented", but they don't do the job. If I use "Author is Current User" filter, when user A goes to user B's profile, user A sees its own content rather than user B's since user A is being the current user, not the owner of current profile.

So, in this regard, I was wondering if there is anybody, who could help me out. I appreciate any help and advice.

Comments

merlinofchaos’s picture

Status: Postponed (maintainer needs more info) » Fixed

To set this up as a tab on a user's profile, do this:

set the path to user/$arg/content

Tell it to provide a menu item as a tab. There's no need for a tab parent, so don't check those boxes.

Add "Argument: User ID"

Set the rest of the view up to display the content however you like.

trainspotting’s picture

Thanks for your help, Earl.

It did really work! and I am thankful to you for it.

-dogu

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

cratos’s picture

I'm also trying this in Views 6.x-2.0-rc4.

I'm creating a Views for a Block with the same functionality that dogu wanted.

I've added the "Argument >> user id", didnt set any title. But the behavior of the view remains as if no argument was set.

Also defined a title for the argument and then added a filter and tried to filter the User ID by the title of the argument. Didnt work:(.

I feel like something is missing... Can someone help me?

Thanks

PS: Dont Know if i should post this as a new issue???

cratos’s picture

Found the answer in http://drupal.org/node/239573. DAMN.

Looks like i'm going to dive in PHP...

jumoke’s picture

subscribing to this thread.