Custom User Profiles

aug - January 5, 2009 - 15:10
Project:ImageCache Profiles
Version:5.x-1.4
Component:Code
Category:task
Priority:normal
Assigned:aug
Status:active
Description

I'm working on a custom user_profile.tpl.php file, however I noticed two things.

I'm using views to set which user's blog post should be called into their personal profile - using the print $picture on the node.tpl.php works with the (thumbnail or small) picture imagecache settings, however once they are called into the custom profile the avatar reverts to the larger profile image.

Also, which is really getting me - i'm using the following code (from another tutorial suggestion) to call the larger imagecache settings for the main profile picture: phptemplate_user_picture($user); - i do have a default image running in case somebody doesn't supply a profile picture - this code does display their profile picture when its supplied but if the person tries to change it again later it doesn't change to the new picture it reverts to the default image.

however, I noticed that once they try to supply an image - their supplied picture doesn't change for their public profile - it does however, use the new picture in the blog postings and shows in their edit profile tab.

#1

aug - January 6, 2009 - 09:06

Hold up I've got it fixed - I should have done this from the get go - but i read the imagecache profiles module file and found what I should do i used the following code and it automatically flushed used the custom user submitted avatars and flushed the default out

here's the code to help anybody else out using these modules and creating a custom user_profile.tpl.php file

print phptemplate_user_picture($account);

cheers,

:)

 
 

Drupal is a registered trademark of Dries Buytaert.