Advice regarding profile photo and change-avatar.php
-
Hi,
On our site we have a default image that is used instead of the the user’s normal gravatar, until they set their profile photo. In my functions.php I’ve disabled the standard gravatar upload with
add_filter('bp_core_fetch_avatar_no_grav', '__return_true');
and substituted our image with:
function bp_set_avatar_constants() { define( 'BP_AVATAR_DEFAULT', site_url('/wp-content/uploads/default.png') ); define( 'BP_AVATAR_DEFAULT_THUMB', site_url('/wp-content/uploads/default.png') ); } add_action('bp_init', 'bp_set_avatar_constants', 2);
Now the only issue I have is that when you go to upload your photo there is the message “Your profile photo will be used on your profile and throughout the site. If there is a Gravatar associated with your account email we will use that, or you can upload an image from your computer.”
It would be nice if I could change this to eliminate the part about the Gravatar. I believe this is in: members/single/profile/change-avatar.php
Do I have any option other than to edit that file directly? Just looking for some guidance here about what is the right thing to do. FWIW, I’m pretty much of a novice with WP in general and certainly with BuddyPress.
- You must be logged in to reply to this topic.