2014-09-20, 09:37 AM
2014-09-20, 10:08 AM
This is not a bug. format_avatar() function is responsible for showing the default avatar, that variable never was intended to do so.
2014-09-20, 10:53 AM
So what variable or code should I use to show the default avatar?
2014-09-20, 09:22 PM
https://github.com/mybb/mybb/blob/featur....php#L2710
Of course you can't do that in templates (unless you're using Template Conditionals or PHP in Templates), you need to create a simple plugin or edit the core files.
$formatted_avatar = format_avatar($mybb->user['avatar']);
Then you can use the result to output the default/custom image with correct dimensions.Of course you can't do that in templates (unless you're using Template Conditionals or PHP in Templates), you need to create a simple plugin or edit the core files.