WordPress.org

Ready to get started?Download WordPress

Forums

Simple Local Avatars
Working script uploading avatar in front end page (5 posts)

  1. Hellnik
    Member
    Posted 1 year ago #

    I read the threads and long agonized how to make the download.
    Generally try, though, and the new version, but still ...

    <?php
    global $user_ID;
    if ($user_ID) {
    	$user_info = get_userdata($user_ID);
    	$id = $user_info->ID;
    }
    
    if(isset($_POST['user_avatar_edit_submit'])) {
    	do_action('edit_user_profile_update', $id);
    }
    ?>
    <form id="your-profile" method="post" action="" enctype="multipart/form-data">
    <?php
    $myAv = new simple_local_avatars();
    $myAv->edit_user_profile($user_info);
    ?>
    
    <input type="submit" name="user_avatar_edit_submit" id="user_avatar_edit_submit" value="UpDaTe AvAtAr" />
    </form>

    http://wordpress.org/plugins/simple-local-avatars/

  2. FreeWPress
    Member
    Posted 1 year ago #

    It don't work with Theme My Login... :(

  3. newintown
    Member
    Posted 11 months ago #

    AWESOME! For all future searchers, this code works!

  4. raulpmaciel
    Member
    Posted 4 months ago #

    Where should I put this code ?

  5. Hellnik
    Member
    Posted 3 months ago #

    Where should I put this code ?

    I put this code in my page(front-end) "Edit Profile" boot problems was not.
    Tested:
    Simple Local Avatars 1.3.1

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic