WordPress.org

Ready to get started?Download WordPress

Forums

WP User Avatar
[resolved] Buddypress support (10 posts)

  1. umeaz
    Member
    Posted 1 year ago #

    This plugin doesnt seem to be work on buddypress profiles. Any workarounds available?

    http://wordpress.org/extend/plugins/wp-user-avatar/

  2. Bangbay Siboliban
    Member
    Posted 1 year ago #

    I haven't tried to use WP User Avatar with BuddyPress. I believe BuddyPress has its own custom avatar function, but you'll have to make sure it's enabled.

  3. umeaz
    Member
    Posted 1 year ago #

    I have enabled it but can't make it happen. Any sort of help would be greatly appreciated as I am newbie at web designing.

  4. Bangbay Siboliban
    Member
    Posted 1 year ago #

    I installed BuddyPress on a new copy of WordPress, copied over the bd-default theme and activated it. Then, I went to http://{yoursite}/wp-admin/admin.php?page=bp-settings and made sure "Allow registered members to upload avatars" was checked. Then I went to http://{yoursite}/members/{yourusername}/profile/change-avatar/ and was able to upload a new avatar. Are these the steps you've done? If you have and it still isn't working, you might find an answer for why in the BuddyPress forum.

    You're correct that WP User Avatar doesn't work with BuddyPress, and since it has its own function, I don't think it's necessary to use my plugin.

  5. umeaz
    Member
    Posted 1 year ago #

    Have already done all that. Actually i wanted to change the default avatar to a custom image. Anyways, the help is highly appreciated.
    If and when you plan to come up with such a plugin, I will be really grateful.

  6. Bangbay Siboliban
    Member
    Posted 1 year ago #

    If that's the only function you need, you can try this other plugin and see if it works for you: http://wordpress.org/extend/plugins/add-new-default-avatar/

    If not, it's a relatively simple function to set your default avatar. I can help you with that if the other plugin doesn't work out for you.

  7. umeaz
    Member
    Posted 1 year ago #

    This one also doesn't work with buddypress. My bad!!

  8. Bangbay Siboliban
    Member
    Posted 1 year ago #

    This is a simple function that should work for you:

    function add_custom_default_avatar($avatar_defaults){
      $custom_avatar = 'http://{imageURL}';
      $avatar_defaults[$custom_avatar] = 'Custom Avatar';
      return $avatar_defaults;
    }
    add_filter('avatar_defaults', 'add_custom_default_avatar');

    You would paste this into the functions.php file in your theme folder. You can paste it at the very bottom of the file, or if there is a ?> at the bottom, paste the code just right before that.

    Replace the {imageURL} with the URL of the image you want to use. The avatar should appear in your Discussions settings now, and you can switch the Default Avatar to it.

  9. umeaz
    Member
    Posted 1 year ago #

    This works till the point you said i.e. it shows up in the discussion settings. But even after I set it as the default avatar, it doesnt show up on the frontend.

  10. Bangbay Siboliban
    Member
    Posted 1 year ago #

    Can you create a user with a fake e-mail address? Use something that couldn't possibly exist. For that user, can you see your custom avatar or do you still see an image from Gravatar?

    I am wondering if what you're seeing is users that already have a Gravatar (even if it looks like the default avatar), which means your custom avatar wouldn't override them.

    If this doesn't work, then I'm not sure what else there is. Perhaps it is a BuddyPress issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags