Add headshot to member options

Discussion in 'Customization & add-ons' started by mav2u, Sep 29, 2010.

  1. mav2u

    mav2u New Member

    Joined:
    Oct 8, 2008
    Messages:
    31
    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?
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Sure this is possible as customization. Contact us in helpdesk we will provide a quote.
  3. mav2u

    mav2u New Member

    Joined:
    Oct 8, 2008
    Messages:
    31
    Thanks, I will submit a ticket.
  4. glrfcentral

    glrfcentral New Member

    Joined:
    Mar 19, 2007
    Messages:
    27
    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
  5. erwinvdb

    erwinvdb aMember Pro Customer

    Joined:
    Aug 30, 2007
    Messages:
    264
    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">
  6. wapor

    wapor New Member

    Joined:
    Sep 23, 2010
    Messages:
    2
    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
  7. erwinvdb

    erwinvdb aMember Pro Customer

    Joined:
    Aug 30, 2007
    Messages:
    264
    Check your email :)

Share This Page