MyBB Community Forums

Full Version: Removing default avatar?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible for a user to have absolutely no avatar when they sign up? The only solution I came up with is to set a 1x1 image as default_avatar.png, but even then it inflates the avatar box in postbit so it looks like the whole thing has been indented.

Deleting the image it works for postbit but on User CP overview (and specifically my theme welcome menu) the not found frame shows.

Any suggestions?  Huh
Nobody? Could really use some help here!
Not sure why you'd remove the default avatar, but it's not easy. You can reupload the 1x1 image, find all:
	<script type="text/javascript">
		$(".author_avatar img").error(function () {
			$(this).unbind("error").closest('.author_avatar').remove();
		});
	</script>
and similar scripts and change them to something like:
	<script type="text/javascript">
		$(".author_avatar img").on('error', function () {
			$(this).unbind("error").closest('.author_avatar').remove();
		}).on('load', function () {
			if($(this).width() == 1)
				$(this).closest('.author_avatar').remove();
		});
	</script>
Thanks very much for your answer, Destroy! It was exactly what I was looking for. Solved Smile
You can run a simple a query to delete avatars
(2016-01-16, 06:58 PM)Alizke Wrote: [ -> ]You can run a simple a query to delete avatars

I wasn't looking to delete the avatars completely. I wanted no avatar by default, not even an area for it on postbit. The user would have to set one manually.

Destroy666 solved but thanks your answer Alizke. Smile