• Hi, my current theme (Responsive Premium Press) uses this code snippet below to integrate the plugin “User Photo” (http://wordpress.org/extend/plugins/user-photo/) in the account settings for each user. How do I replace this snippet to work with the plugin “Wp User Avatar”?

    <?php // USER PHOTO INTEGRATION
                    if(function_exists('userphoto')){ ?>
    
                    <div class="col-md-12" style="margin-top:20px;">
                    <style>#userphoto th { display:none; } .field-hint { font-size:11px; }</style>
                    <?php
                    userphoto_display_selector_fieldset();
                    userphoto_thumbnail($userdata->ID);
    				echo '<label><input type="checkbox" name="userphoto_delete" id="userphoto_delete" onclick="userphoto_onclick()"> Delete Photo?</label> </div>';
                    }
                ?>

    https://wordpress.org/plugins/wp-user-avatar/

Viewing 1 replies (of 1 total)
  • Hello,

    To display user image –

    <?php
    
    echo do_shortcode("[avatar user=$userdata->ID]");
    
    ?>

    To display upload button –

    <?php
    
    echo do_shortcode("[avatar_upload user=$userdata->ID]");
    
    ?>

    I hope it helps you. Please don’t hesitate if you have more question.

Viewing 1 replies (of 1 total)
  • The topic ‘Integrate avatar upload to user account template’ is closed to new replies.