By igorik on
Hi!
I have user avatars enabled, but because I have it in node/teaser for authors of those nodes,
I set it for 70*70 px as you can see on
somvprahe.sk
But I like to have big avatar on user profile page (aprox 300px*300px).
Is it possible?
I can set avatar size as 300px*300px, but how to show it in nodes for node authors with size only 70px*70px asi it is now?
Thanks for your help
Igor
P.S. Is it possible to have more then one avatar per user? - User can upload more photos into his/her profile...
Comments
image field?
You should be able to add an image field to the user profile. We've done the same on a site so have the avatar (head shot), action shot, and lifestyle shot. So users can upload up to three photos for their profile. Then they can have their own gallery also for more photos.
Details in the Profile Handbook.
J
Image field
Image field does not show up in the available custom fields for Profile. I have the imagefield CCK but no idea how to enable it in the Profile.
I'm now trying it with CSS
I'm now trying it with CSS and for the first look it seems to work.
Avatar is atomatically in div's with .picture class assigned.
Add to your theme style.css
this will scale picture in nodes but keep original in profile.
=-=
not a particularily good way to do it with css, here's why:
The image isn't really scaled. its just cropped by css. Thus the original image is actually loaded and crammed within the css dimensions. Which basicallly means the entire original image is still being loaded.
an image with a weight of 200kbs , is still 200kbs with the css method, thus using bandwidth that isn't necessary.
The imagefield & imagecache modules use two completely seperate files. The original & a truly scaled version. lullabot.com has a tutorial on how to accomplish this.
There is a solution over at
There is a solution over at http://agaricdesign.com/note/theming-user-profile-pictures-drupal
Override theme_user_profile() in your template.php to use imagecache.
node profile
thanks, I did it in summer using node profile, node family and user node.
and now better with image cache too.
here is example: http://www.somvprahe.sk/user/shakira
Igor
Igorik
www.somvprahe.sk
please explain how you did it
Hi Igor, I am looking to do the exact same thing. Can you please explain to me in detail how you did this? I also want the image scaled small in the comments.
THNX