Add the following plugin:
Product: vBulletin
Hook Location: parse_templates
Title: Show Browsing Member's Avatar Under Navbar
Execution Order: 5
Plugin PHP Code:
PHP Code:
if (THIS_SCRIPT === 'index')
{
require_once('./includes/functions_user.php');
$avatar_url = fetch_avatar_url($vbulletin->userinfo['userid']);
$avatar = $avatar_url[0];
if ($avatar)
{
$template_name = 'navbar';
$hook_name = 'below_navbar';
$find = '<div class="body_wrapper">';
$replace = '\' . $template_hook[\'below_navbar\'] . \'' . $find;
if (isset($vbulletin->templatecache[$template_name]))
{
$t_temp = $vbulletin->templatecache[$template_name];
$t_temp = str_replace($find, $replace, $t_temp);
$vbulletin->templatecache[$template_name] = $t_temp;
}
$template_hook[$hook_name] .= '<img src="' . $avatar . '" title="' . $vbulletin->userinfo['username'] . '\'s Avatar" style="margin-bottom: 10px; max-height: 90px; width: auto;" />';
}
}
Plugin is Active: Yes
Click "Save".
As you can see, I have given the avatar image a maximum height of 90px...you should adjust that to suit your needs, or if you want the avatar to display full size, then remove the inline CSS "max-height: 90px; width: auto;" from the img tag altogether.
Please let me know if there are any changes you would like.