Skip to:
Content
Pages
Categories
Search
Top
Bottom

Register/change buddypress avatar for user

  • Avatar of webdice
    webdice
    Participant

    @webdice

    I’m currently working on a custom registration form where i want to apply an image upload as the users “avatar”. Registering it to a new meta key is piece of cake, the hard part is, how do i overwrite the “buddypress” avatar? The one that’s available from Profile -> Change Avatar?

    I’ve searched the entire web for this and the only thing i find is how to change “default avatar” for all users. I want to register this for the current user only!

    How are buddypress avatars saved when processing the “change avatar” action in profile->Change avatar ? Is there a meta key of some sort where i can save an image dir to?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of webdice
    webdice
    Participant

    @webdice

    Hello?

    Avatar of webdice
    webdice
    Participant

    @webdice

    Can someone reply i’m freaking out!!! Can’t find the solution anywhere!!!

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Avatar information is not stored in the database, but rather in the filesystem.

    Check your WP uploads folder, followed by another folder called “avatars”.

    Avatars use a hash followed by a suffix to denote the type of avatar.

    eg.

    `/wp-content/uploads/avatars/USER_ID/dfjkljlksjdflksjdklf-bpfull.jpg` -for full-size avatar
    `/wp-content/uploads/avatars/USER_ID/dfjkljlksjdflksjdklf-bpthumb.jpg` -for thumbnail avatar

    You could, in theory, use anything for the filename of the avatar.  Just make sure the suffix is there.

    Give that a shot.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.