MyBB Community Forums
[How To?] Remove default avatar if there is none. - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] Remove default avatar if there is none. (/thread-206090.html)



Remove default avatar if there is none. - hideme - 11-23-2016

Hi.

I wanna remove avatars on posts if the user have not uploaded one. How can I do this?

Thank you.

Anyone?


RE: Remove default avatar if there is none. - hideme - 11-28-2016

Please help.


RE: Remove default avatar if there is none. - .m. - 11-28-2016

you can try adding below style rule at the bottom of global.css of the theme
img[src*="default_avatar.png"] {display: none;}

global.css should be edited through forum admin panel & it needs to be edited in advanced mode
remember hard refreshing your browser [eg. press CTRL + F5] on a thread page after saving changes to the stylesheet


RE: Remove default avatar if there is none. - The Switch Club - 11-28-2016

You may also be able to just remove default_avatar.png from your server.


RE: Remove default avatar if there is none. - .m. - 11-28-2016

^ removing image file doesn't help much and that would cause some other troubles !