AVeryNiceWeb

How To Disable Profile Photo Uploading

Here we discuss Ultimate Member ("UM") and any problems with it only. Support is provided up to version 1.0.72
Forum rules
We can provide customization or technical support at the lowest cost for your Ultimate Member WordPress site. Register at:
ucp.php?mode=register and create a new topic down below with any request you might have.

Attention: we are not the developers of this plugin. For support questions go to the Free UM support forum at:
https://wordpress.org/support/plugin/ultimate-member/ .

How To Disable Profile Photo Uploading

Postby admin » Fri May 19, 2017 5:25 pm

Go to /wp-content/plugins/ultimate-member/core/um-actions-profile.php

Remove this code:
Code: Select all
               if ( !isset( $ultimatemember->user->cannot_edit ) ) {
               
                  $ultimatemember->fields->add_hidden_field( 'profile_photo' );
                  
                  if ( !um_profile('profile_photo') ) { // has profile photo
                  
                     $items = array(
                        '<a href="#" class="um-manual-trigger" data-parent=".um-profile-photo" data-child=".um-btn-auto-width">'.__('Upload photo','ultimatemember').'</a>',
                        '<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimatemember').'</a>',
                     );
                     
                     echo $ultimatemember->menu->new_ui( 'bc', 'div.um-profile-photo', 'click', $items );
                     
                  } else if ( $ultimatemember->fields->editing == true ) {
                  
                     $items = array(
                        '<a href="#" class="um-manual-trigger" data-parent=".um-profile-photo" data-child=".um-btn-auto-width">'.__('Change photo','ultimatemember').'</a>',
                        '<a href="#" class="um-reset-profile-photo" data-user_id="'.um_profile_id().'" data-default_src="'.um_get_default_avatar_uri().'">'.__('Remove photo','ultimatemember').'</a>',
                        '<a href="#" class="um-dropdown-hide">'.__('Cancel','ultimatemember').'</a>',
                     );
                     
                     echo $ultimatemember->menu->new_ui( 'bc', 'div.um-profile-photo', 'click', $items );
                     
                  }
}
The AVNW Support Team
http://www.AVeryNiceWeb.com

If you wish to add visual documentation (screenshots), make a donation and we'll let you know when the post has been updated


And, if our post has provided you with great information, there are a few ways you can show your appreciation:
  1. Like us on Facebook.- Our account had recently a hacking problem on FB and we were forced to create a new one. We lost all our posts & likes. :(
  2. Send us a testimonial.- Testimonials thanking for our good team work can be valuable to us and may encourage others to seek our support.
  3. Post a review.- Posting a good review about this site could also compel others to seek our advice & support.

Thank You!
User avatar
admin
Site Admin
 
Posts: 427
Joined: Mon Jan 13, 2014 3:18 am
Location: New York City

Return to Ultimate Member

Who is online

Users browsing this forum: No registered users and 0 guests