• Hi,

    Your plugin is really great. However, most of my users don’t upload their photos just because they can’t find the upload field. It is hard to find it because of its location at the bottom of “Your Profile” page. Is there any way to have a different page just for the uploading the photo?

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    You may create User Edit Template and associate it with page to edit user profile on Frontside of Your blog, without visiting by user Backside/administrative panel.

    You may create User Edit Template and associate it with page to edit user profile on Frontside of Your blog, without visiting by user Backside/administrative panel.

    How can I do this? I have a custom my-profile.php template page with different form fields (name, age, city) and I would like to add the upload form for the picture.

    If You already have got Edit User template which working with updating user fields, perhaps You will need just small portion of code…

    to show current avatar:

    <?php
    if(function_exists('userphoto_exists')) {
    if(userphoto_exists($userdata->ID)){ userphoto_thumbnail($userdata->ID);
    }else{ echo get_avatar($userdata->user_email, 96); }
    }
    ?>

    and to upload or delete avatar:

    <?php if($userdata->userphoto_image_file){ ?>
    <input type="checkbox" name="userphoto_delete" id="userphoto_delete" /> Delete existing photo?
    <?php }else{ ?>
    <input type="file" id="userphoto_image_file" name="userphoto_image_file">
    <?php } ?>

    P.S. Hope it will help You

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: User Photo] Upload form on a diffierent page than "Your Profile"’ is closed to new replies.