Forums

User Photo
Upload form on a diffierent page than "Your Profile" (4 posts)

  1. khaxan
    Member
    Posted 1 year ago #

    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

  2. meloniq
    Member
    Posted 1 year ago #

    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.

  3. radiourionline
    Member
    Posted 1 year ago #

    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.

  4. meloniq
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags