hi - i'm using the latest version of imagecache on a new site. It is handling user profile image resizing to 3 sizes among other things. I'm getting the classic bug where a user can never truly replace their profile image. If they delete their user profile image and then update it with a new image the correct image shows in user/xx/edit but any cached renderings of it are still pulling the first image loaded.
So this call in a theme, will always only get the first image ever loaded - users can't change their avatar.
print theme('imagecache', 'profile-main', $profuser->picture, $profuser->name, $profuser->name );
I tried simply hacking user.module _user_edit_submit function with this
imagecache_image_flush('pictures'.strrchr( $user->picture, '/' ) );
That did locate and flush the specific users image, but once I load a new image instead of it coming up it actually is still trying to get the old flushed image and comes up as the alt text since it can't find the image anymore.
I also downloaded and installed the imagecache_profiles module to see if that would help - but I think their pathing needs to be updated to match the new imagecache module, and really all that I think I need is the one line above.
Anyway, thoughts on a good fix here?
Thanks
-Greg
Comments
Comment #1
dopry commentedsee the ImageCache Profiles modules.... http://drupal.org/project/imagecache_profiles
Comment #2
dopry commentedComment #3
fishguyjoe commentedwas this ever resolved? I'm having the same problem and for the life of me can't figure out how to fix it.
Thx.