Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Any way to change generated avatars from Gravatar to a locally hosted pool of avatars?


javy
Member

@javiermatosdes

I think I need to correct myself in my first post, it seems that I was mistakenly calling wavatars gravatars. Oops! Wavatars are the randomly generated ones, right?

I had a revelation after realizing this though. I don’t want to stop people from getting their Gravatar if they have one, I just want to replace the Wavatars with my own images. So Im thinking I’m going to set the Default User Avatar to “Mystery Man”, then in the following line in /bp-core/bp-core-avatars.php

` if ( !defined( ‘BP_AVATAR_DEFAULT’ ) )
define( ‘BP_AVATAR_DEFAULT’, BP_PLUGIN_URL . ‘/bp-core/images/mystery-man.jpg’ );

if ( !defined( ‘BP_AVATAR_DEFAULT_THUMB’ ) )
define( ‘BP_AVATAR_DEFAULT_THUMB’, BP_PLUGIN_URL . ‘/bp-core/images/mystery-man-50.jpg’ );
}`

I was going to change images/mystery-man.jpg into `images/.jpg` and upload my 14 avatars (with filenames 1 through 14) into that images folder.

My issue is, if i was to do that, I’d somehow need to get the same image in the ‘-50’ version in the line below. And it also appears in bp-core-admin.php and bp-core-templatetags.php so I’m not sure what I’d do with them there. I was hoping this would be an easier solution. Any ideas?

Skip to toolbar