I'm running into an issue where the avatar image is showing up twice on my profile page. I'm not sure if this is a bug, module incompatibility, or I'm simply using it wrong.
I have the acquia_prosper (http://drupal.org/project/acquia_prosper) 6.x-1.0-beta4 theme installed. I'm using the content profile (http://drupal.org/project/content_profile) 6.x-1.0 module and this module. I created an imagefield file field on the profile content type then when to user settings and enabled user pictures and selected field_profile_avatar as the image to use.
I uploaded an image to my profile which produced the result displayed in the attached image (profile.png). The profile appears to be displaying the imagecached version of the image based on my profile content type display settings. The profile is also displaying the full size image I uploaded.
I looked at the source html generated and noticed it displaying the image twice.
<div class="profile">
<div class="picture">
<a href="/users/admin" title="View user profile." class="active"><img src="http://tgs.portaldna.com/sites/tgs.portaldna.com/files/avatars/1.gangstakermit.jpg" alt="admin's picture" title="admin's picture" /></a>
</div>
<p id="content-profile-view"><h3 class="content-profile-title" id="content-profile-title-profile">Profile</h3>
<div class="content-profile-display" id="content-profile-display-profile">
<div id="node-3" class="node odd full-node node-type-profile">
<div class="inner">
<div class="content clearfix">
<div class="field field-type-filefield field-field-profile-avatar">
<div class="field-label">Avatar:
</div>
<div class="field-items">
<div class="field-item odd">
<img src="http://tgs.portaldna.com/sites/tgs.portaldna.com/files/imagecache/profile_avatar_profile/avatars/1.gangstakermit.jpg" alt="" title="" class="imagecache imagecache-profile_avatar_profile imagecache-default imagecache-profile_avatar_profile_default" width="147" height="150" />
</div>
</div>
</div>
<p>Another attempt at creating my profile.</p>
</div>
On a similar note, I also noticed that new content I created after enabling / configure this module I'm not seeing the avatar on the node pages.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | profile.png | 439.46 KB | caschbre |
Comments
Comment #1
caschbre commentedSorry... looks like my attachments didn't work on the op.
Comment #2
caschbre commentedAfter further research this issue appears to be with content profile and not with imagefield_avatar.
Comment #3
caschbre commentedAppears to be user error. :-)
What I found was I needed to go to the content type display settings and set the node display to hidden. This removed the image from the node but continued to use the theme's picture/avatar display.
I also used imagecache_profile to resize user pictures with imagecache.