WordPress.org

Ready to get started?Download WordPress

Forums

Can People upload there own avatar (3 posts)

  1. xdesi
    Member
    Posted 5 years ago #

    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?

  2. xdesi
    Member
    Posted 5 years ago #

    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'); ?>

  3. Ripose
    Member
    Posted 5 years ago #

    Check out this plugin http://wordpress.org/extend/plugins/wavatars/

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

Topic Closed

This topic has been closed to new replies.

About this Topic