How can I disable or remove gravatar?


(Tyler Oakson) #1

I’m running discourse (bitnami install) and was wondering how I can disable gravatars? Or which line of code to remove to prevent gravatars from popping up, trying to keep it at system default only.


(Felix Freiberger) #2

Search for automatically download gravatars in site settings.


(Tyler Oakson) #3

Thats turned off, however it still lets people set a gravatar.


(Tyler Oakson) #4

Been a couple of hours so I’m initiating an emergency bump.


(Régis Hanol) #5

Disabling gravatar is not available. You could potentially hide it via CSS, but that will only “disable” it in the UI. If you want to disable in the code too, you’ll have to write a plugin.


(Tyler Oakson) #6

Which is the css value? I’m not sure where to get it :confused:


(Mittineague) #7

Try your browser dev tools, IMHO a good tool to have !

For example, this

div.avatar-selector div div div:nth-of-type(2n) { background-color: #0ff; }

does this


(Tyler Oakson) #8

I set custom pictures to false, so if I click the change avatar button on preferences it automatically goes to gravatar without a popup, so I can’t get the div id for the button, due to its generic button.


(Kane York) #9

Wait, so what are the avatars that people have? If custom avatars are disallowed and gravatar is disallowed, what are the avatars?


(Jeff Wong) #10

I guess he just wants all users for his installation to have the A-Z default system profiles, so it’s kinda like running in a ‘no avatars’ mode?

Dunno what the impulse is though; I’m quite fond of avatars in any community site myself.


(Tyler Oakson) #11

I edited the A-Z avatars to use an API that gets avatars from another game based on username, however If they use gravatar it would ruin the entire purpose


(Kane York) #12

Ah, so you replaced the “system avatar” functionality with a Minecraft avatar service using external_system_avatars_url, right?, and would like to force everyone onto that. I think that might be a valid usecase.


(Tyler Oakson) #13

Its not minecraft, but yes it used a 3rd party API to get in-game player images