zikula-modules / Avatar

A Zikula module to organize users avatars, incl. support for Gravatar
https://zikula.de
13 stars 5 forks source link

Avatar doesn't show the current avatar. #10

Closed hvorragend closed 11 years ago

hvorragend commented 13 years ago

The problem is caused by the $core variable. (see Avatar/templates/Avatar_user_header.htm ).

So maybe it's related to http://code.zikula.org/avatar/ticket/30.

I have solved the problem with a workaround. If you get the avatar path directly from the objectdata_attributes table it works:

$table = DBUtil::getTables(); $datacolumn = $table['objectdata_attributes_column']; $where = "WHERE " . $datacolumn['attribute_name'] . " = 'avatar' AND " . $datacolumn['object_id'] . " = " . $uid; $avatar = DBUtil::selectObjectArray ('objectdata_attributes', $where ); $path = $avatar[0]['object_id'];

But it's just a workaround.

Portugao commented 11 years ago

This issue is gone with zik 135. I close, feel free to reopen.