Support » Plugin: BuddyPress First Letter Avatar » Use with social login plugins

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author


    Hi there!
    The best and fastest help would be if you created a pull request for my plugin on GitHub + describe the specific use case, so I could test it –

    If you do not think this is possible, could you please tell me how are you detecting whether the user is using default avatar? What plugins are you using for the social login features?



    Thanks for the quick answer. I’m not sure what you want me to do on GitHub, sorry.

    The way I detect avatar is (for example for Google):

    define( 'LS4S_GOOGLE_MYSTERY_AVATAR', '-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M'); // Google default avatar id
    function ls4s_member_has_true_avatar( $userid = false )
            return false !== strpos ( get_avatar( $userid ), LS4S_GOOGLE_MYSTERY_AVATAR ) ? false : true ;

    What I would like to do is to use your First Letter avatars in Buddypress when this function returns false, for example.

    I use OneAll Social Plugin but I don’t think there is anything to to with the plugin: Rather that it’s all about the image which is drawn from the social network which is a mystery man default image.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use with social login plugins’ is closed to new replies.