By huangweiqiu on
Please could anyone tell me which module can do that : User can upload a image and the image will show on user's account page,I also want Views support that I can use Views to get the image into block. Thanks!
Please could anyone tell me which module can do that : User can upload a image and the image will show on user's account page,I also want Views support that I can use Views to get the image into block. Thanks!
Comments
CCK/Imagefield, and Views with a user argument
Make (or use an existing) node type for the image, and add an Image Field to it. Have the user create this node with their image. Create a view which lists this type of node and limit the view to display 1 result only, and add the Image Field to the view. Then add an argument to the view and choose User: Uid. For the argument settings, choose the "Provide default argument" option, and for the argument type choose "User ID from URL". Save the View, then go to your Blocks admin page and set it to display only on your user profile path (usually you would put
user/*orusers/*depending on how you have set up your user paths). Now the block should come up on each user profile, showing each specific user's image on their own profile.thanks very much!
thanks very much!