As it turns out, Helen wanted to be able to be able to place the avatar in the "FORUMHOME" template herself, as she might change things up from time to time. So, I told her the following (I am posting this for the benefit of others):
----------------------------------------------------------------------
Okay, first create the following plugin:
Product: vBulletin
Hook Location: forumhome_complete
Title: Send Avatar HTML To FORUMHOME Template
Execution Order: 5
Plugin PHP Code:
PHP Code:
if ($show['member'])
{
require_once('./includes/functions_user.php');
$avatar_url = fetch_avatar_url($vbulletin->userinfo['userid']);
$avatar = $avatar_url[0];
if (!$avatar)
{
$avatar = $vbulletin->stylevars['imgdir_misc']['imagedir'] . '/unknown.gif';
}
$username = $vbulletin->userinfo['username'];
}
else
{
$avatar = $vbulletin->stylevars['imgdir_misc']['imagedir'] . '/unknown.gif';
$username = 'Guest';
}
$avatar = '<img src="' . $avatar . '" title="' . $username . '\'s Avatar" style="max-height: 90px; width: auto;" />';
vB_Template::preRegister('FORUMHOME',array('avatar' => $avatar));
Plugin is Active: Yes
Click "Save".
Now, wherever you wish for the user or guest's avatar to display, place the following code into you "FORUMHOME" template at the location you desire:
HTML Code:
{vb:raw avatar}