Hi,

I am currently using Drupal 6 and discovered that pictures in "Who's new Avatar" and "Who's online Avatar" profile pictures wouldn't change after you upload a new profile picture.

So, what I tried is to upgrade Unique Avatar module for my Drupal 6 system, using Deadwood module but I'm stuck with all the "TODO" tasks in Goodwood...

If someone could provide a Unique Avatar module for Drupal 6 (or any solution to fix this problem), I would greatly appreciate!

Thank you
Thomas

CommentFileSizeAuthor
#3 unique_avatar.zip9.18 KBslarosa

Comments

jscheel’s picture

Category: support » feature

I'm planning on doing this, I just have to find the time :P

totodetokyo’s picture

Thanks a lot for your reply!
I'm glad to hear you are planning to add this unique avatar option for Drupal 6.
Good luck!

slarosa’s picture

Category: feature » support
StatusFileSize
new9.18 KB

Hi,

I used the fantastic "coder" module in order to inspect the unique avatar module and tried to follow the upgrade instructions in order to convert it to 6.x.

I think it works but probably the code can be improved. However, I am submitting the related archive to you in order to make you evaluate my small patch and - meanwhile - try to support everybody is actually managing avatars on a D6 site

Best regards,

Salvatore

batbug2’s picture

i tried this 6.x version, seems to be working ok, thought I'm not sure about the validators part, it wasn't there in 5x version.

    $validators = array(
      'file_validate_is_image' => array(),
      'file_validate_image_resolution' => array('85x85'),
      'file_validate_size' => array(30 * 1024),
    );

i have commented out the resolution and size lines, because I have different settings on my website.

But still, thank you for converting this must-have-baby!

off’s picture

Is somebody tests this patch?

batbug2’s picture

I tested it (#3), seems to be working fine.

HS’s picture

subscribing. Any plans for an official release for D6?

HS’s picture

Status: Active » Needs review

I gave it a try and it's working ok. The module appended a heap of numbers to the end of the image thus giving it each image a unique ID to by pass caching issues. Thanks slarosa.

jscheel’s picture

Ok, ok, I've finally gotten around to this. First off, thanks for your work slarosa! I have looked over everything, including the way d6 handles user picture uploads. I think the best thing to do right now is to get rid of the hook_user implementation and to instead go with overriding the validator that handles the picture upload in the first place. That being said, I have created a d6 release using this method.

HS’s picture

Status: Needs review » Fixed

Thanks Ya'll!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.