News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Change file format for default avatar from png to svg

Started by Julius_2000, November 19, 2022, 06:44:04 PM

Previous topic - Next topic

Julius_2000

Hi folks,

how can I change the default avatar's file format from png to svg (or any other format for that matter)? I've skimmed through some possible php files in Sources but wasn't able to track it down.

Thank you so much!

Julius_2000

Sorry I have to bump this. Does anyone know where to make this edit?

Sir Osis of Liver

Load.php -


        // Right... no avatar... use our default image.
        else
            $image = $modSettings['avatar_url'] . '/default.png';


script.js -


function avatar_fallback(e) {
    var e = window.e || e;
    var default_url = smf_avatars_url + '/default.png';

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Julius_2000

Wonderful, thank you so much and bottoms up, Sir Osis!

Advertisement: