Hi dear theme designers
some of you use the avatar image source code {$mybb->user['avatar']} in a user header menu, but there is no image when user has the default MyBB avatar.
Here are two ways how you can fix it.
1.) Download my "MyBB Default Avatar Fix" plugin from here and include it into your theme package.
or
2.) Include the small function into your own theme plugin:
Thank you all for your amazing themes and keep on styling!
some of you use the avatar image source code {$mybb->user['avatar']} in a user header menu, but there is no image when user has the default MyBB avatar.
Here are two ways how you can fix it.
1.) Download my "MyBB Default Avatar Fix" plugin from here and include it into your theme package.
or
2.) Include the small function into your own theme plugin:
// defaultavatarfix function by SvePu (http://community.mybb.com/user-91011.html) //
function defaultavatarfix()
{
global $mybb;
if(!$mybb->user['avatar'] && !empty($mybb->settings['useravatar']))
{
$mybb->user['avatar'] = $mybb->settings['useravatar'];
}
}
$plugins->add_hook("global_intermediate", "defaultavatarfix");
Thank you all for your amazing themes and keep on styling!