Avatars plugin v2.2.7

THE DEFAULT METHOD

function display_avatar( array(
            'type' => 'user',        // Avatar type.
            
'id' => '',              // Optional ID. Example: 'id' => 3,
                                     // to display avatar of user/post/category/blog #3

            
'before' => '<div>',     // Before image block.
            
'after' => '</div>',     // After image block.
            
'style' => '',           // Image style e.g. margin:5px.
        ));

So to use that look below

To include the CURRENT USER avatar use:

Put this code in any place
if ( isset($GLOBALS['avatars_Plugin']) )
{
    
$GLOBALS['avatars_Plugin']->display_avatar( array(
            
'type' => 'user',
        ));
}

To include the POST AUTHOR avatar use:

Put this code in posts loop, usually in index.main.php or posts.main.php or single.main.php
if ( isset($GLOBALS['avatars_Plugin']) )
{
    $GLOBALS['avatars_Plugin']->display_avatar( array(
            
'type' => 'post_author',
        ));
}

To include the COMMENT AUTHOR avatar use:

Put this code in comments loop, usually in _item_comment.inc.php
if ( isset($GLOBALS['avatars_Plugin']) )
{
    $GLOBALS['avatars_Plugin']->display_avatar( array(
            'type' => 'comment_author',
            
'comment' => $Comment,
        ));
    
    
// You can add optional paramethers to control gravatars and other visitor avatar types
    // Example:
    // 'default' => 'http://img_url.jpg',
    // 'size' => '',
    // 'rating' => '',
}

To include the POST avatar use:

Put this code in posts loop, usually in index.main.php or posts.main.php or single.main.php
if ( isset($GLOBALS['avatars_Plugin']) )
{
    $GLOBALS['avatars_Plugin']->display_avatar( array(
            
'type' => 'post',
        ));
}

To include the CATEGORY avatar of the current post use:

Put this code in posts loop, usually in index.main.php or posts.main.php or single.main.php
if ( isset($GLOBALS['avatars_Plugin']) )
{
    $GLOBALS['avatars_Plugin']->display_avatar( array(
            
'type' => 'category',
        ));
}

To include the BLOG avatar use:

Put this code in any place
if ( isset($GLOBALS['avatars_Plugin']) )
{
    $GLOBALS['avatars_Plugin']->display_avatar( array(
            
'type' => 'blog',
        ));
}