• Hi, my WP is set up so that on comments a default avtar is displayed unless they have a gravtar account.

    Can i modify this so that they can change the default dependant upon there gender, i.e a male mystery man and a female mystery man avatar.. or even so that the user can choose from about 5 avatars?

    Or is it possible so that users can upload there own avatar to my site, or link to one and it will appear in the gravatar box?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter xdesi

    (@xdesi)

    OK as an update..

    I now have set it up so that my user can choose from a list of avatars.

    Now it would be great if I could edit the Gravatar to say:

    IF User has gravatar use it
    ELSE do blah blah

    My PHP isn’t great, all I have is this that submits the gravatar but have no idea how to check if the user has one and shove it inside an IF Statement.

    <?php echo get_avatar( $id_or_email, $size = '50'); ?>

    Check out this plugin https://www.ads-software.com/extend/plugins/wavatars/

    You can either use this or see how they coded what you are trying to do.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can People upload there own avatar’ is closed to new replies.