• Hello,
    Your plugin looks greats but I can’t benefit of it since I exclusively use social logins for my users. Therefore, new users always come with an avatar – which may be some kind of “mystery man” avatar, would they come from Google, Facebook or other social networks.

    Hence my question: is there a way to force using your nice First Letter avatars instead of the default mystery man avatars coming from these social logins?

    Maybe to make it clearer: I am able to detect that a given user has a default avatar (such as the Google Mystery Man avatar for example, whose url is known). Thus, is there some hook in you plugin that I could use to make a test on the user avatar and force the usage of First Letter Avatar if such a default avatar is detected?

    I could develop some specific code for that if you give me some tips…

    Thanks in advance,
    Yves.

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

    (@dev49net)

    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 – https://github.com/dev49net/buddypress-first-letter-avatar

    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?

    DW

    Thread Starter ypeynaud

    (@ypeynaud)

    Hello,

    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.

    Thanks,
    Yves

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