Can I use views2 to do the following:

1. Create a page that displays users as a links.
2. When I click on a user link, I want to be taken to a second page that displays that users comments, stories, pages, albums, etc.
3. When clicking on a users comment, story, album, etc, I want to view them.

If this can be done, can someone please explain the steps necessary to accomplish this in views2.

Thank you!

Comments

gustavson’s picture

Forgot to say that in step 2 above, I want the user comments, stories, pages, albums, etc to be listed as links.

zilla’s picture

okay, core already provides a 'per user' tracker - click on my profile here on drupal and click 'track' and you'll see everything that i've done on the site going back for years...every comment, node, whatever...clickin on one will take you to it...

core also already lets you list all users and in turn click on any user to go to the same profile that offers this 'track' button...

so what exactly are you after? something more visually interesting? you could create an "all site activity" view that's like a river of news for the front page but in (for example) a big table format with alternating rows showing from left to right (for example):

username, userpicture, title of (whatever), content type (story/poll/etc), date, #comments etc...

you could also make each and every one of those fields clickable to the source (user, node, comment on node, etc) AND you can also make each or all items at top of columns sortable - so one might sort by content type to scan all 'blogs' or 'polls' or sort by whatever else...

...views is quite powerful, you may want to spend some time reading up on the documentation as it will likely answer some very basic questions for you...it comes with a number of default views that you can modify quite a bit without knowing how to write arguments and all of that stuff...

if you were to use "content profile" module and turn profiles into full fledged drupal 'nodes' then views is very useful for really manipulating what you're doing - as you could then create a custom view of user profiles, pull an image from an imagefield (cck) and link to some other destination page, like the activity thing i'm talking about above...

oh, also - take a look at the activity module - it does quite a bit of this as well, and the defaults are quite useful (my activity, all activity - and if you're using "user relationships" a new tab for 'my friends activity')
........................................................................
i love to waste time: http://twitter.com/passingnotes

masood_mj’s picture

I want to use views 2 to create a list of users (with pictures) and a number which shows the number of comments he/she posted for a specific node type. When the user clicked on the user pic it should shows a list of user comments.
I have created a view on comment type with comment author username as argument which shows summery + entry counts if argument was empty. However, I cannot add user picture in the argument summery page.
I think its solution is creating another view for step 1 list other than step 2. However, I cannot figure out the view should be run on which type. I selected User type but it doesn't have relation to nodes that have been written by the user. I used Node type but it cannot aggregate number of comments per user.

masood_mj’s picture

I have installed the views_group by module and the problem solved. try it.