Avatar update
-
Plugin : Wp user avatar
Hi,
I use wp user avatar. It’s allows the user to change their avatar.
But they can change their avatar only on the wordpress edit profile.
I want that they change their avatar on the theme edit profile page.So, i use this code :
That i find on the author site.
There is other code but i think the most important is this :<?php do_action('edit_user_avatar', $current_user); ?> <div id="my-avatar"> <input type="hidden" name="wp-user-avatar" id="wp-user-avatar" value="{attachmentID}" /> <p id="wpua-add-button"> <button type="button" class="button" id="wpua-add" name="wpua-add">Edit Image</button> </p> <p id="wpua-preview"> <img src="{imageURL}" alt="" /> <span class="description">Original Size</span> </p> <p id="wpua-thumbnail"> <img src="{imageURL}" alt="" /> <span class="description">Thumbnail</span> </p> <p id="wpua-remove-button"> <button type="button" class="button" id="wpua-remove" name="wpua-remove">Default Avatar</button> </p> <p id="wpua-undo-button"> <button type="button" class="button" id="wpua-undo" name="wpua-undo">Undo</button> </p> </div>It works. The new picture appear.
But i can’t save the change.
When i click on another page, the avatar is not change…How can i do that?
Someone could help?
Thanks in advance.
Kniool
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Avatar update’ is closed to new replies.