Forums

[Plugin: Post Avatar] Missing several simple features (5 posts)

  1. Jehy
    Member
    Posted 4 years ago #

    It's really a great plugin. For long time I wanted livejournal-like post userpics, but I was too lazy to write plugin myself ^_^'
    Thank you very much.

    However, I'd like to ask you for two simple features:
    1) Default avatar option (avatar which is shown if no avatar for post defined) - neccessary since all my old posts are left without avatar, and it's not cute ^_^
    By the way, it would be absilutely wonderful if there were options:
    - use avatar *textarea with URL* as default.
    - use gravatar if no avatar defined.

    2) Web interface avatar upload - I don't really want to go to my ftp every time I find a cool pic.

    Thank you very much, I hope you'll integrate those features, it won't take you more then 20 minutes :)

    http://wordpress.org/extend/plugins/post-avatar/

  2. Jehy
    Member
    Posted 4 years ago #

    Hmmm...
    For myself, I corrected this with code

    <?php
    $showav=0;
    if(function_exists(gkl_get_postavatar))
    {
    $data=gkl_get_postavatar();
    if($data['avatar_url'])
    	gkl_postavatar('avatar avatar-100');
    else $showav=1;
    }
    if(function_exists("get_avatar")&&($showav==1)) echo get_avatar(get_the_author_email(), 100); ?>

    Gravatar is shown if there's no avatar defined for post.
    I think you should add this little piece of code to FAQ or manual =)

  3. Jehy
    Member
    Posted 4 years ago #

    Even more comfortable:

    function true_avatar()
    {
    $showav=0;
    if(function_exists(gkl_get_postavatar))
    {
    $data=gkl_get_postavatar();
    if($data['avatar_url'])
    	gkl_postavatar('avatar avatar-100');
    else $showav=1;
    }
    if(function_exists("get_avatar")&&($showav==1)) echo get_avatar(get_the_author_email(), 100);
    }
  4. Vicky Arulsingam
    Member
    Posted 4 years ago #

    Hey Jehy, thanks for the feedback.

    I've been debating with myself on the best way to include a default image - it'll probably be available in the next release.

    - use avatar *textarea with URL* as default.

    Can you please explain what you mean by this?

    As for a web upload - I'm planning on integrating that functionality through the use of WordPress media uploads.

  5. Jehy
    Member
    Posted 4 years ago #

    Oh, sorry for my english :))
    I just meant that it would be wonderful, if you could choose default avatar either from Post Avatar's set or gravatar.

    Now I think that instead of gravatar option, there should be just a plain URL - I think that many users would like to use avatars from their social services as default.

Topic Closed

This topic has been closed to new replies.

About this Topic