WordPress.org

Support

Support » Plugins and Hacks » Simple Local Avatars » Working script uploading avatar in front end page

Working script uploading avatar in front end page

  • 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/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Working script uploading avatar in front end page’ is closed to new replies.
Skip to toolbar