We already employ the ability to use a member headshot with a coding addition we use based of naming the headshot off of the username of the client. What we would really like to do instead of having to manually rename, crop, and upload the headshots to the folder every week is if the customer could do it themselves or we could do it as we add the customer. What we would like to happen is in the user information have a field to upload a photo, that photo no matter what size would be cropped down to 120px by 150px in jpg and file sized around 30-50kb in size and placed in the folder specified on the server and the file renamed to that users username.jpg. This way it they can update when ever they wish to update their headshot and we don't have to worry about it anymore. If they upload a new one, it over writes the old image. Anyone here done that?
Alex, I would be very interested in using this as a plugin or customization as well. We use aMember to provide SSO to wordpress mu (buddypress) and Invision Board. Both components have avatars and images. It would be great to develop a customization that lets our members upload their photos on our main landing page and then pass that field (with the avatar) to both IP Board and to Buddypress [and possibly 4images too ...] Thanks, Brian
You can use the gravatar plugin for smarty. Implementation is pretty easy. Full source code can be found here. Create a file /amember/smart/plugins/function.gravatar.php. Copy-paste full source code from above page to the file. Add the following to your member.html template: Code: <img alt="" src="{gravatar email=$user.email|escape rating="G" size="48" default="./images/default_gravatar.gif"}" class="gravatar">
Erwin, Can you contact me please about how to get member photos to work? We have tried what you suggested and it isn't working for us. pburner at slidearts dot com Thanks