MyBB Community Forums

Full Version: Show default or blank avatar?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I have this side panel that is essentially the bar with the admincp, modcp, usercp and welcome message. I also have the users avatar displayed there. But if they don't have an avatar, it doesn't show the default avatar (or any avatar in that case) like it would on their profile. Any reason why?
Are you using a plugin to add the sidebar?
In 1.8 there is a format_avatar function which is what really should be used anytime you are dealing with avatars. This also implements the default avatar if the user does not have one. The first parameter is the avatar url and the second is the dimensions.