Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change Avatar programatically?

  • @vimes1984

    Participant

    How do i go about setting a image url to a profile avatar programatically?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @shanebp

    Moderator

    @vimes1984

    Participant

    yeah I don’t won’t to disable it I just want to import a bunch of users and I have everything done bar the avatars, I just need to be able to pass a url to the avatar image something like this: xprofile_set_field_data('Profile Photo', $user_id, 'http://example.com/IMAGEURL.png' );

    @shanebp

    Moderator

    You could set the xprofile field and then use the stackexchange.com example to swap in that url on a per user basis.

    @vimes1984

    Participant

    that is a genius idea!
    Thank mate I’ll do just that I suppose I just assumed there would be a method somewhere..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change Avatar programatically?’ is closed to new replies.
Skip to toolbar