MyBB Community Forums
How to hide blank avatar field is user hasnt added one - 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 hide blank avatar field is user hasnt added one (/thread-188799.html)



How to hide blank avatar field is user hasnt added one - maintainin - 2016-02-07

Hi all,

I recently updated to 1.8.6 from 1.6.14. In my old version if a member hadn't uploaded an avatar there was simply no avatar field. In 1.8.6 there is a facebookesque blank avatar field like below:


   


Is there a way to turn this off so it doesnt show if the member hasn't uploaded an avatar? Thanks


RE: How to hide blank avatar field is user hasnt added one - .m. - 2016-02-07

you can try this simple css method : add below code at the bottom of global.css
img[SRC*="default_avatar.png"] {display: none !important;}
edit global.css through admin panel & edit in advanced mode.
hard refresh (eg. press CTRL + F5) browser on a topic page after saving changes to global.css


RE: How to hide blank avatar field is user hasnt added one - maintainin - 2016-02-07

Excellent sir! Worked like a charm!