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 1: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

We also have great domain names for your next website. Go through the list and make an offer now!

Shopping for a new website? See our design deals.

How much is your website worth? Get a free estimate.

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
  2. Post a review.- Posting a good review about this site could help us provide improved support.

Thank You!
User avatar
admin
Site Admin
 
Posts: 466
Joined: Sun Jan 12, 2014 11:18 pm
Location: New York City

Return to Ultimate Member

Who is online

Users browsing this forum: No registered users and 0 guests

cron