Post Avatar 1.2.3

A couple of minor bugfixes and a few new features, namely:

  • Avatar selection rights for Authors, Editors and Administrators only. Use the role manager plugin to customize access rights. If you already have Post Avatar installed, deactivate and reactivate the plugin to update user rights
  • Customize HTML and CSS within the options page. Dominik added this to make it easier to change the styling of avatars. It will work with both the template tag and the automatic avatar display
  • Automatic avatar display for post excerpts is now included
  • I fixed the bug where avatars where showing up in feeds

Download now or visit the plugin page

UPDATE (Oct. 9, 2007): Discovered a bug (Thanks Paul!) – automatic avatar display causes the image to appear twice when using the_excerpt. Download the updated zip file or if you’re feeling adventurous:

Open up gkl-postavatar.php and look for this code at the end of
// Display avatar without template tag
if ($gkl_ShowInContent == 1){
add_filter('the_content', 'gkl_postavatar_filter');
add_filter('the_excerpt', 'gkl_postavatar_filter');
add_filter('wp_head', 'gkl_postavatar_showcss');
}

Just comment out or remove “add_filter(‘the_excerpt’, ‘gkl_postavatar_filter’);”.

It should look something like this:
// Display avatar without template tag
if ($gkl_ShowInContent == 1){
add_filter('the_content', 'gkl_postavatar_filter');
add_filter('wp_head', 'gkl_postavatar_showcss');
}

26 thoughts on “Post Avatar 1.2.3”

  1. nice site, quick question though, is it possible that an author can upload an image they like? or remote link to another image? or is it just limited to the selection of images the member can choose from?

  2. quick question.

    is it possible that an author can upload a usericon/avatar they like, or remotely link to an image? Is it just limited to the selection the administrator uploads?

  3. How can we control who uses the Avatars. I don’t see any options to do it, and I don’t know how to add this functionality into Role Manager.

    Any help would be greatly appreciated

  4. I wanted to add your Plugin to my theme (I am the author of the dkret2 theme).
    In the event calendar plugin you can add code in the head of the page to suppress the plugin from adding any css.

    nocss=true; ?>

    I would like to be able to do something like this with your plugin, to prevent it from automatically adding any avatar at all. I know that a user can disable the automatic avatar BUT normally users just activate plugins without changing options.

    Then they will ask in my forum why there are to avatars displayed.

    Hope you see what I meant (horrible english, sorry).

    Jörn

  5. It would be helpful if NO inline styles would be added to the img tag if the user adds a class to the img tag.
    If a user does it he does it with the purpose of adding own styles in an external stylesheet (e.g. style.css).

  6. @takuhii: If you’re using the Role Manager plugin you will see the capability “Post Avatar” listed under Users >> Roles. If there is a tick mark beside “Post Avatar” then all users in that group can post avatars. Otherwise you will see a red x.

    If you want to give a specific user the ability to post avatars, you have to go edit his/her profile.

  7. @Kretzschmar: To override the automatic display you need to include this bit of code in your theme, preferably inside functions.php

    if (function_exists('gkl_postavatar')) {
    // Override automatic display
    remove_filter('the_content','gkl_postavatar_filter'); ?>

    As for removing the inline styles, it would be better to create your own custom display function (I’ve sent it in my e-mail to you).

    I think I should make a guide for further customizations.

  8. I downloaded the plugin last week. Anyway, it didn’t at first but now it’s adding an image to my newsletter form.

    http://rhubarbzoo.com/index.php see, the right hand side on the sidebar, it has the event icon next to my search form!!

    Other than that, cool plugin 🙂

  9. Sorry I removed the avatar from the post, thereby eliminating the problem, don’t ask me why it was for one post. However letting you know about the problem, and I’ll post again if adding a new post also adds the icon to the sidebar.

  10. Hey there, love the plugin! I’ve been using it for about 4 months now. I have a suggestion for a future version. Could you add the option of uploading directly from the “write post” page rather than just uploading via FTP? I use a different avatar for every single post and I just think that having an upload function via the “write post” page would save a lot of time.

    Just a suggestion, but other than that, great plugin!

  11. Nothing all that major, but I think I’m missing something — Is it possible to have this plugin automatically display an avatar (ie: a default avatar) if no one is specifically chosen?

    I’ve recently discovered Live Writer and have been having fun, but the only snag is that I’m still having to into “edit” each post to include my avatar — and I’ve only got one.

    I think I’m just being dumb =/

  12. I didn’t consider the avatar on feeds a bug at all. As a matter of fact, I *want* them to show up on my feeds as they’re an integral part of most posts.

    Is there a piece of code I can delete to retain this functionality? Or should I just not upgrade the plugin?

  13. I like the plugin, but it’s seems to have a bug. It shows the avator nicely at the front page and in the posts, but when I acces the post throug the category it shows up twice i have tried to make some changes in the gkl-postavatar.php as suggested above but it doesn’t seem to work, any advices?

  14. Greetings,
    this is a fantastic plug in. I’ve been using it for a while, quite practical when I need country’s flags in different post on my travel website.

    Do you know how can I switch and add the “post avatar” right after the h2 title? is this possible? Right now the avatar goes right glued to the post left upper corner and I would like it to come attached to the post / page h2 title.

    Thank you again

  15. Hello, I love this plugin and have been using it for ages. I have a suggestion, though it might make the plugin increasingly more complicated — but is there a way you can add “keywords” or some such to the icons so that you can select from that instead of going by the image name?

    It gets a little tiring having to flip through all the icons to find the one you want just because you don’t remember what its name is.

  16. I have a pretty wild idea I want to attempt with this plugin, but I need to know if there’s a way to define the icons by author.

    I want to set it up so that artists can create icons of the two authors of this site. There are only two of them. I also want to have a page that will display all of their avatars with links to the artists that created them.

    So is it possible to add that kind of functionality?

Comments are closed.