Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Ultimate Member

    (@ultimatemember)

    Not at the moment. What happens when you activate UM? Do those users not have profile pic?

    Thread Starter KTS915

    (@kts915)

    Exactly. The avatar they have uploaded does not show. Instead, they get the Mystery Man.

    Is there, perhaps, a way of turning off UM’s profile picture function, so that it does not block avatars that have already been uploaded from being displayed?

    Thread Starter KTS915

    (@kts915)

    It looks like I just have to comment out line 125 of /ultimate-member/um-init.php (i.e. require_once um_path . 'core/um-filters-avatars.php';) and then I get the avatars back and displaying in the user’s profile.

    Obviously, this is not ideal, because I’ll have to keep doing this for every plugin update, but it should do for now.

    Thread Starter KTS915

    (@kts915)

    Having looked at the code a little more closely, it seems that the issue is caused by the priority level of the filter set in /core/um-filters-avatars.php

    I wonder if it would be possible to include an option to change the priority level of the filter? The developer of the WP First Letter Avatar plugin recently added this option, and it’s really useful.

    Thread Starter KTS915

    (@kts915)

    Well, it turns out that it’s quite simple to turn off Ultimate Member’s avatars filter by adding the following to the theme’s functions.php file (or you could add it as an mu-plugin):

    /***** REMOVE ULTIMATE MEMBER AVATARS *****/
    function remove_um_avatars($avatar_defaults) {
    	remove_filter('get_avatar', 'um_get_avatar', 99999, 5);
    	return $avatar_defaults;
    }
    add_filter('init', 'remove_um_avatars', 99999);
    Plugin Author Ultimate Member

    (@ultimatemember)

    Thanks for posting this tip

    Sorry to bump but I would like to thank you for posting this tip! That helpep me a lot.

    Thread Starter KTS915

    (@kts915)

    @rodrigosl,

    Glad it helped! Thanks for posting!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Import avatars?’ is closed to new replies.